blob: cf84640fc7b7454b165e4559f8b0c373936420a0 [file] [log] [blame]
Rick Chen039ed7c2017-12-26 13:55:50 +08001/dts-v1/;
Rick Chenc14e90e2018-05-29 10:53:41 +08002
Rick Chen039ed7c2017-12-26 13:55:50 +08003/ {
Rick Chenc14e90e2018-05-29 10:53:41 +08004 #address-cells = <2>;
5 #size-cells = <2>;
6 compatible = "andestech,ax25";
7 model = "andestech,ax25";
Rick Chen039ed7c2017-12-26 13:55:50 +08008
9 aliases {
10 uart0 = &serial0;
Rick Chen039ed7c2017-12-26 13:55:50 +080011 spi0 = &spi;
12 } ;
13
14 chosen {
15 bootargs = "console=ttyS0,38400n8 earlyprintk=uart8250-32bit,0xf0300000 debug loglevel=7";
16 stdout-path = "uart0:38400n8";
Rick Chenc14e90e2018-05-29 10:53:41 +080017 };
18
19 cpus {
20 #address-cells = <1>;
21 #size-cells = <0>;
22 timebase-frequency = <10000000>;
23 CPU0: cpu@0 {
24 device_type = "cpu";
25 reg = <0>;
26 status = "okay";
27 compatible = "riscv";
28 riscv,isa = "rv64imafdc";
29 mmu-type = "riscv,sv39";
30 clock-frequency = <60000000>;
31 CPU0_intc: interrupt-controller {
32 #interrupt-cells = <1>;
33 interrupt-controller;
34 compatible = "riscv,cpu-intc";
35 };
36 };
Rick Chen039ed7c2017-12-26 13:55:50 +080037 };
38
39 memory@0 {
40 device_type = "memory";
Rick Chenc14e90e2018-05-29 10:53:41 +080041 reg = <0x0 0x00000000 0x0 0x40000000>;
Rick Chen039ed7c2017-12-26 13:55:50 +080042 };
43
Rick Chenc14e90e2018-05-29 10:53:41 +080044 soc {
45 #address-cells = <2>;
46 #size-cells = <2>;
47 compatible = "andestech,riscv-ae350-soc";
48 ranges;
Rick Chen039ed7c2017-12-26 13:55:50 +080049 };
50
Rick Chenc14e90e2018-05-29 10:53:41 +080051 plmt0@e6000000 {
52 compatible = "riscv,plmt0";
53 interrupts-extended = <&CPU0_intc 7>;
54 reg = <0x0 0xe6000000 0x0 0x100000>;
Rick Chen039ed7c2017-12-26 13:55:50 +080055 };
Rick Chenc14e90e2018-05-29 10:53:41 +080056
57 plic0: interrupt-controller@e4000000 {
58 compatible = "riscv,plic0";
59 #address-cells = <2>;
60 #interrupt-cells = <2>;
61 interrupt-controller;
62 reg = <0x0 0xe4000000 0x0 0x2000000>;
63 riscv,ndev=<31>;
64 interrupts-extended = <&CPU0_intc 11 &CPU0_intc 9>;
Rick Chen039ed7c2017-12-26 13:55:50 +080065 };
66
Rick Chenc14e90e2018-05-29 10:53:41 +080067 plic1: interrupt-controller@e6400000 {
68 compatible = "riscv,plic1";
69 #address-cells = <2>;
70 #interrupt-cells = <2>;
Rick Chen039ed7c2017-12-26 13:55:50 +080071 interrupt-controller;
Rick Chenc14e90e2018-05-29 10:53:41 +080072 reg = <0x0 0xe6400000 0x0 0x400000>;
73 riscv,ndev=<1>;
74 interrupts-extended = <&CPU0_intc 3>;
75 };
76
77 spiclk: virt_100mhz {
78 #clock-cells = <0>;
79 compatible = "fixed-clock";
80 clock-frequency = <100000000>;
81 };
82
83 timer0: timer@f0400000 {
84 compatible = "andestech,atcpit100";
85 reg = <0x0 0xf0400000 0x0 0x1000>;
86 clock-frequency = <40000000>;
87 interrupts = <3 4>;
88 interrupt-parent = <&plic0>;
Rick Chen039ed7c2017-12-26 13:55:50 +080089 };
90
91 serial0: serial@f0300000 {
92 compatible = "andestech,uart16550", "ns16550a";
Rick Chenc14e90e2018-05-29 10:53:41 +080093 reg = <0x0 0xf0300000 0x0 0x1000>;
94 interrupts = <9 4>;
Rick Chen039ed7c2017-12-26 13:55:50 +080095 clock-frequency = <19660800>;
96 reg-shift = <2>;
97 reg-offset = <32>;
98 no-loopback-test = <1>;
Rick Chenc14e90e2018-05-29 10:53:41 +080099 interrupt-parent = <&plic0>;
Rick Chen039ed7c2017-12-26 13:55:50 +0800100 };
101
102 mac0: mac@e0100000 {
103 compatible = "andestech,atmac100";
Rick Chenc14e90e2018-05-29 10:53:41 +0800104 reg = <0x0 0xe0100000 0x0 0x1000>;
105 interrupts = <19 4>;
106 interrupt-parent = <&plic0>;
Rick Chen039ed7c2017-12-26 13:55:50 +0800107 };
108
109 mmc0: mmc@f0e00000 {
Rick Chenc14e90e2018-05-29 10:53:41 +0800110 compatible = "andestech,atfsdc010";
Rick Chen039ed7c2017-12-26 13:55:50 +0800111 max-frequency = <100000000>;
Rick Chenc14e90e2018-05-29 10:53:41 +0800112 clock-freq-min-max = <400000 100000000>;
Rick Chen039ed7c2017-12-26 13:55:50 +0800113 fifo-depth = <0x10>;
Rick Chenc14e90e2018-05-29 10:53:41 +0800114 reg = <0x0 0xf0e00000 0x0 0x1000>;
115 interrupts = <18 4>;
Rick Chen177c16c2017-12-25 17:05:39 +0800116 cap-sd-highspeed;
Rick Chenc14e90e2018-05-29 10:53:41 +0800117 interrupt-parent = <&plic0>;
Rick Chen039ed7c2017-12-26 13:55:50 +0800118 };
119
120 spi: spi@f0b00000 {
121 compatible = "andestech,atcspi200";
Rick Chenc14e90e2018-05-29 10:53:41 +0800122 reg = <0x0 0xf0b00000 0x0 0x1000>;
Rick Chen039ed7c2017-12-26 13:55:50 +0800123 #address-cells = <1>;
124 #size-cells = <0>;
125 num-cs = <1>;
126 clocks = <&spiclk>;
127 interrupts = <3 4>;
Rick Chenc14e90e2018-05-29 10:53:41 +0800128 interrupt-parent = <&plic0>;
Rick Chen039ed7c2017-12-26 13:55:50 +0800129 flash@0 {
130 compatible = "spi-flash";
131 spi-max-frequency = <50000000>;
132 reg = <0>;
133 spi-cpol;
134 spi-cpha;
135 };
136 };
Rick Chen039ed7c2017-12-26 13:55:50 +0800137};