2017-12-26 05:55:50 +00:00
|
|
|
/dts-v1/;
|
2018-05-29 02:53:41 +00:00
|
|
|
|
2017-12-26 05:55:50 +00:00
|
|
|
/ {
|
2018-09-26 13:55:18 +00:00
|
|
|
#address-cells = <2>;
|
|
|
|
#size-cells = <2>;
|
|
|
|
compatible = "andestech,ax25";
|
|
|
|
model = "andestech,ax25";
|
2017-12-26 05:55:50 +00:00
|
|
|
|
|
|
|
aliases {
|
|
|
|
uart0 = &serial0;
|
|
|
|
spi0 = &spi;
|
2018-09-26 13:55:18 +00:00
|
|
|
};
|
2017-12-26 05:55:50 +00:00
|
|
|
|
|
|
|
chosen {
|
|
|
|
bootargs = "console=ttyS0,38400n8 earlyprintk=uart8250-32bit,0xf0300000 debug loglevel=7";
|
|
|
|
stdout-path = "uart0:38400n8";
|
2018-09-26 13:55:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cpus {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
timebase-frequency = <10000000>;
|
|
|
|
|
|
|
|
CPU0: cpu@0 {
|
|
|
|
device_type = "cpu";
|
|
|
|
reg = <0>;
|
|
|
|
status = "okay";
|
|
|
|
compatible = "riscv";
|
|
|
|
riscv,isa = "rv64imafdc";
|
|
|
|
mmu-type = "riscv,sv39";
|
|
|
|
clock-frequency = <60000000>;
|
|
|
|
|
|
|
|
CPU0_intc: interrupt-controller {
|
|
|
|
#interrupt-cells = <1>;
|
|
|
|
interrupt-controller;
|
|
|
|
compatible = "riscv,cpu-intc";
|
|
|
|
};
|
|
|
|
};
|
2017-12-26 05:55:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
memory@0 {
|
|
|
|
device_type = "memory";
|
2018-09-26 13:55:18 +00:00
|
|
|
reg = <0x0 0x00000000 0x0 0x40000000>;
|
2017-12-26 05:55:50 +00:00
|
|
|
};
|
|
|
|
|
2018-09-26 13:55:18 +00:00
|
|
|
soc {
|
|
|
|
#address-cells = <2>;
|
|
|
|
#size-cells = <2>;
|
|
|
|
compatible = "andestech,riscv-ae350-soc";
|
|
|
|
ranges;
|
2017-12-26 05:55:50 +00:00
|
|
|
};
|
|
|
|
|
2018-09-26 13:55:18 +00:00
|
|
|
plmt0@e6000000 {
|
|
|
|
compatible = "riscv,plmt0";
|
|
|
|
interrupts-extended = <&CPU0_intc 7>;
|
|
|
|
reg = <0x0 0xe6000000 0x0 0x100000>;
|
|
|
|
};
|
2018-05-29 02:53:41 +00:00
|
|
|
|
2018-09-26 13:55:18 +00:00
|
|
|
plic0: interrupt-controller@e4000000 {
|
|
|
|
compatible = "riscv,plic0";
|
|
|
|
#address-cells = <2>;
|
|
|
|
#interrupt-cells = <2>;
|
|
|
|
interrupt-controller;
|
|
|
|
reg = <0x0 0xe4000000 0x0 0x2000000>;
|
|
|
|
riscv,ndev=<31>;
|
|
|
|
interrupts-extended = <&CPU0_intc 11 &CPU0_intc 9>;
|
2017-12-26 05:55:50 +00:00
|
|
|
};
|
|
|
|
|
2018-09-26 13:55:18 +00:00
|
|
|
plic1: interrupt-controller@e6400000 {
|
|
|
|
compatible = "riscv,plic1";
|
|
|
|
#address-cells = <2>;
|
|
|
|
#interrupt-cells = <2>;
|
2017-12-26 05:55:50 +00:00
|
|
|
interrupt-controller;
|
2018-09-26 13:55:18 +00:00
|
|
|
reg = <0x0 0xe6400000 0x0 0x400000>;
|
|
|
|
riscv,ndev=<1>;
|
|
|
|
interrupts-extended = <&CPU0_intc 3>;
|
|
|
|
};
|
2018-05-29 02:53:41 +00:00
|
|
|
|
2018-09-26 13:55:18 +00:00
|
|
|
spiclk: virt_100mhz {
|
|
|
|
#clock-cells = <0>;
|
|
|
|
compatible = "fixed-clock";
|
|
|
|
clock-frequency = <100000000>;
|
|
|
|
};
|
2018-05-29 02:53:41 +00:00
|
|
|
|
2018-09-26 13:55:18 +00:00
|
|
|
timer0: timer@f0400000 {
|
|
|
|
compatible = "andestech,atcpit100";
|
|
|
|
reg = <0x0 0xf0400000 0x0 0x1000>;
|
|
|
|
clock-frequency = <40000000>;
|
|
|
|
interrupts = <3 4>;
|
|
|
|
interrupt-parent = <&plic0>;
|
2017-12-26 05:55:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
serial0: serial@f0300000 {
|
|
|
|
compatible = "andestech,uart16550", "ns16550a";
|
2018-09-26 13:55:18 +00:00
|
|
|
reg = <0x0 0xf0300000 0x0 0x1000>;
|
|
|
|
interrupts = <9 4>;
|
2017-12-26 05:55:50 +00:00
|
|
|
clock-frequency = <19660800>;
|
|
|
|
reg-shift = <2>;
|
|
|
|
reg-offset = <32>;
|
|
|
|
no-loopback-test = <1>;
|
2018-09-26 13:55:18 +00:00
|
|
|
interrupt-parent = <&plic0>;
|
2017-12-26 05:55:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
mac0: mac@e0100000 {
|
|
|
|
compatible = "andestech,atmac100";
|
2018-09-26 13:55:18 +00:00
|
|
|
reg = <0x0 0xe0100000 0x0 0x1000>;
|
|
|
|
interrupts = <19 4>;
|
|
|
|
interrupt-parent = <&plic0>;
|
2017-12-26 05:55:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
mmc0: mmc@f0e00000 {
|
2018-09-26 13:55:18 +00:00
|
|
|
compatible = "andestech,atfsdc010";
|
2017-12-26 05:55:50 +00:00
|
|
|
max-frequency = <100000000>;
|
2018-09-26 13:55:18 +00:00
|
|
|
clock-freq-min-max = <400000 100000000>;
|
2017-12-26 05:55:50 +00:00
|
|
|
fifo-depth = <0x10>;
|
2018-09-26 13:55:18 +00:00
|
|
|
reg = <0x0 0xf0e00000 0x0 0x1000>;
|
|
|
|
interrupts = <18 4>;
|
2017-12-25 09:05:39 +00:00
|
|
|
cap-sd-highspeed;
|
2018-09-26 13:55:18 +00:00
|
|
|
interrupt-parent = <&plic0>;
|
2017-12-26 05:55:50 +00:00
|
|
|
};
|
|
|
|
|
2018-09-26 13:55:18 +00:00
|
|
|
smc0: smc@e0400000 {
|
|
|
|
compatible = "andestech,atfsmc020";
|
|
|
|
reg = <0x0 0xe0400000 0x0 0x1000>;
|
|
|
|
};
|
2018-05-29 03:05:54 +00:00
|
|
|
|
2018-09-26 13:55:18 +00:00
|
|
|
nor@0,0 {
|
|
|
|
compatible = "cfi-flash";
|
|
|
|
reg = <0x0 0x88000000 0x0 0x1000>;
|
|
|
|
bank-width = <2>;
|
|
|
|
device-width = <1>;
|
|
|
|
};
|
2018-05-29 03:05:54 +00:00
|
|
|
|
2017-12-26 05:55:50 +00:00
|
|
|
spi: spi@f0b00000 {
|
|
|
|
compatible = "andestech,atcspi200";
|
2018-09-26 13:55:18 +00:00
|
|
|
reg = <0x0 0xf0b00000 0x0 0x1000>;
|
2017-12-26 05:55:50 +00:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
num-cs = <1>;
|
|
|
|
clocks = <&spiclk>;
|
|
|
|
interrupts = <3 4>;
|
2018-09-26 13:55:18 +00:00
|
|
|
interrupt-parent = <&plic0>;
|
|
|
|
|
|
|
|
flash@0 {
|
2017-12-26 05:55:50 +00:00
|
|
|
compatible = "spi-flash";
|
|
|
|
spi-max-frequency = <50000000>;
|
|
|
|
reg = <0>;
|
|
|
|
spi-cpol;
|
|
|
|
spi-cpha;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|