blob: 4717ae88bc0849efc316e11b9921acec16ef5933 [file] [log] [blame]
Rick Chen2e4fc1b2017-12-26 13:55:50 +08001/dts-v1/;
Rick Chenc7cccef2018-05-29 10:53:41 +08002
Rick Chen2e4fc1b2017-12-26 13:55:50 +08003/ {
Bin Meng6e1033f2018-09-26 06:55:18 -07004 #address-cells = <2>;
5 #size-cells = <2>;
6 compatible = "andestech,ax25";
7 model = "andestech,ax25";
Rick Chen2e4fc1b2017-12-26 13:55:50 +08008
9 aliases {
10 uart0 = &serial0;
Rick Chen2e4fc1b2017-12-26 13:55:50 +080011 spi0 = &spi;
Bin Meng6e1033f2018-09-26 06:55:18 -070012 };
Rick Chen2e4fc1b2017-12-26 13:55:50 +080013
14 chosen {
15 bootargs = "console=ttyS0,38400n8 earlyprintk=uart8250-32bit,0xf0300000 debug loglevel=7";
16 stdout-path = "uart0:38400n8";
Bin Meng6e1033f2018-09-26 06:55:18 -070017 };
18
19 cpus {
20 #address-cells = <1>;
21 #size-cells = <0>;
22 timebase-frequency = <10000000>;
23
24 CPU0: cpu@0 {
25 device_type = "cpu";
26 reg = <0>;
27 status = "okay";
28 compatible = "riscv";
29 riscv,isa = "rv64imafdc";
30 mmu-type = "riscv,sv39";
31 clock-frequency = <60000000>;
Rick Chenc7cccef2018-05-29 10:53:41 +080032
Bin Meng6e1033f2018-09-26 06:55:18 -070033 CPU0_intc: interrupt-controller {
34 #interrupt-cells = <1>;
35 interrupt-controller;
36 compatible = "riscv,cpu-intc";
37 };
38 };
Rick Chen2e4fc1b2017-12-26 13:55:50 +080039 };
40
41 memory@0 {
42 device_type = "memory";
Bin Meng6e1033f2018-09-26 06:55:18 -070043 reg = <0x0 0x00000000 0x0 0x40000000>;
Rick Chen2e4fc1b2017-12-26 13:55:50 +080044 };
45
Bin Meng6e1033f2018-09-26 06:55:18 -070046 soc {
47 #address-cells = <2>;
48 #size-cells = <2>;
49 compatible = "andestech,riscv-ae350-soc";
50 ranges;
Rick Chen2e4fc1b2017-12-26 13:55:50 +080051 };
52
Bin Meng6e1033f2018-09-26 06:55:18 -070053 plmt0@e6000000 {
54 compatible = "riscv,plmt0";
55 interrupts-extended = <&CPU0_intc 7>;
56 reg = <0x0 0xe6000000 0x0 0x100000>;
57 };
Rick Chenc7cccef2018-05-29 10:53:41 +080058
Bin Meng6e1033f2018-09-26 06:55:18 -070059 plic0: interrupt-controller@e4000000 {
60 compatible = "riscv,plic0";
61 #address-cells = <2>;
62 #interrupt-cells = <2>;
63 interrupt-controller;
64 reg = <0x0 0xe4000000 0x0 0x2000000>;
65 riscv,ndev=<31>;
66 interrupts-extended = <&CPU0_intc 11 &CPU0_intc 9>;
Rick Chen2e4fc1b2017-12-26 13:55:50 +080067 };
68
Bin Meng6e1033f2018-09-26 06:55:18 -070069 plic1: interrupt-controller@e6400000 {
70 compatible = "riscv,plic1";
71 #address-cells = <2>;
72 #interrupt-cells = <2>;
Rick Chen2e4fc1b2017-12-26 13:55:50 +080073 interrupt-controller;
Bin Meng6e1033f2018-09-26 06:55:18 -070074 reg = <0x0 0xe6400000 0x0 0x400000>;
75 riscv,ndev=<1>;
76 interrupts-extended = <&CPU0_intc 3>;
77 };
Rick Chenc7cccef2018-05-29 10:53:41 +080078
Bin Meng6e1033f2018-09-26 06:55:18 -070079 spiclk: virt_100mhz {
80 #clock-cells = <0>;
81 compatible = "fixed-clock";
82 clock-frequency = <100000000>;
83 };
Rick Chenc7cccef2018-05-29 10:53:41 +080084
Bin Meng6e1033f2018-09-26 06:55:18 -070085 timer0: timer@f0400000 {
86 compatible = "andestech,atcpit100";
87 reg = <0x0 0xf0400000 0x0 0x1000>;
88 clock-frequency = <40000000>;
89 interrupts = <3 4>;
90 interrupt-parent = <&plic0>;
Rick Chen2e4fc1b2017-12-26 13:55:50 +080091 };
92
93 serial0: serial@f0300000 {
94 compatible = "andestech,uart16550", "ns16550a";
Bin Meng6e1033f2018-09-26 06:55:18 -070095 reg = <0x0 0xf0300000 0x0 0x1000>;
96 interrupts = <9 4>;
Rick Chen2e4fc1b2017-12-26 13:55:50 +080097 clock-frequency = <19660800>;
98 reg-shift = <2>;
99 reg-offset = <32>;
100 no-loopback-test = <1>;
Bin Meng6e1033f2018-09-26 06:55:18 -0700101 interrupt-parent = <&plic0>;
Rick Chen2e4fc1b2017-12-26 13:55:50 +0800102 };
103
Rick Chen2e4fc1b2017-12-26 13:55:50 +0800104 mac0: mac@e0100000 {
105 compatible = "andestech,atmac100";
Bin Meng6e1033f2018-09-26 06:55:18 -0700106 reg = <0x0 0xe0100000 0x0 0x1000>;
107 interrupts = <19 4>;
108 interrupt-parent = <&plic0>;
Rick Chen2e4fc1b2017-12-26 13:55:50 +0800109 };
110
111 mmc0: mmc@f0e00000 {
Bin Meng6e1033f2018-09-26 06:55:18 -0700112 compatible = "andestech,atfsdc010";
Rick Chen2e4fc1b2017-12-26 13:55:50 +0800113 max-frequency = <100000000>;
Bin Meng6e1033f2018-09-26 06:55:18 -0700114 clock-freq-min-max = <400000 100000000>;
Rick Chen2e4fc1b2017-12-26 13:55:50 +0800115 fifo-depth = <0x10>;
Bin Meng6e1033f2018-09-26 06:55:18 -0700116 reg = <0x0 0xf0e00000 0x0 0x1000>;
117 interrupts = <18 4>;
Rick Chenef6b1962017-12-25 17:05:39 +0800118 cap-sd-highspeed;
Bin Meng6e1033f2018-09-26 06:55:18 -0700119 interrupt-parent = <&plic0>;
Rick Chen2e4fc1b2017-12-26 13:55:50 +0800120 };
121
Bin Meng6e1033f2018-09-26 06:55:18 -0700122 smc0: smc@e0400000 {
123 compatible = "andestech,atfsmc020";
124 reg = <0x0 0xe0400000 0x0 0x1000>;
125 };
Rick Chened4a3b32018-05-29 11:05:54 +0800126
Bin Meng6e1033f2018-09-26 06:55:18 -0700127 nor@0,0 {
128 compatible = "cfi-flash";
129 reg = <0x0 0x88000000 0x0 0x1000>;
130 bank-width = <2>;
131 device-width = <1>;
132 };
Rick Chened4a3b32018-05-29 11:05:54 +0800133
Rick Chen2e4fc1b2017-12-26 13:55:50 +0800134 spi: spi@f0b00000 {
135 compatible = "andestech,atcspi200";
Bin Meng6e1033f2018-09-26 06:55:18 -0700136 reg = <0x0 0xf0b00000 0x0 0x1000>;
Rick Chen2e4fc1b2017-12-26 13:55:50 +0800137 #address-cells = <1>;
138 #size-cells = <0>;
139 num-cs = <1>;
140 clocks = <&spiclk>;
141 interrupts = <3 4>;
Bin Meng6e1033f2018-09-26 06:55:18 -0700142 interrupt-parent = <&plic0>;
143
144 flash@0 {
Rick Chen2e4fc1b2017-12-26 13:55:50 +0800145 compatible = "spi-flash";
146 spi-max-frequency = <50000000>;
147 reg = <0>;
148 spi-cpol;
149 spi-cpha;
150 };
151 };
Rick Chen2e4fc1b2017-12-26 13:55:50 +0800152};