687db7cc61f2d9c6133e7d14ae529e9b45272f06
[openwrt/staging/mkresin.git] / target / linux / lantiq / files-4.14 / arch / mips / boot / dts / ar9.dtsi
1 #include <dt-bindings/gpio/gpio.h>
2
3 / {
4 #address-cells = <1>;
5 #size-cells = <1>;
6 compatible = "lantiq,xway", "lantiq,ar9";
7
8 aliases {
9 serial0 = &asc1;
10 };
11
12 chosen {
13 stdout-path = "serial0:115200n8";
14 };
15
16 cpus {
17 cpu@0 {
18 compatible = "mips,mips34K";
19 };
20 };
21
22 biu@1f800000 {
23 #address-cells = <1>;
24 #size-cells = <1>;
25 compatible = "lantiq,biu", "simple-bus";
26 reg = <0x1f800000 0x800000>;
27 ranges = <0x0 0x1f800000 0x7fffff>;
28
29 icu0: icu@80200 {
30 #interrupt-cells = <1>;
31 interrupt-controller;
32 compatible = "lantiq,icu";
33 reg = <0x80200 0x28
34 0x80228 0x28
35 0x80250 0x28
36 0x80278 0x28
37 0x802a0 0x28>;
38 };
39
40 watchdog@803f0 {
41 compatible = "lantiq,xrx100-wdt", "lantiq,xrx100-wdt";
42 reg = <0x803f0 0x10>;
43
44 regmap = <&rcu0>;
45 };
46 };
47
48 sram@1f000000 {
49 #address-cells = <1>;
50 #size-cells = <1>;
51 compatible = "lantiq,sram", "simple-bus";
52 reg = <0x1f000000 0x800000>;
53 ranges = <0x0 0x1f000000 0x7fffff>;
54
55 eiu0: eiu@101000 {
56 #interrupt-cells = <1>;
57 interrupt-controller;
58 compatible = "lantiq,eiu-xway";
59 reg = <0x101000 0x1000>;
60 interrupt-parent = <&icu0>;
61 lantiq,eiu-irqs = <166 135 66 40 41 42>;
62 };
63
64 pmu0: pmu@102000 {
65 compatible = "lantiq,pmu-xway";
66 reg = <0x102000 0x1000>;
67 };
68
69 cgu0: cgu@103000 {
70 compatible = "lantiq,cgu-xway";
71 reg = <0x103000 0x1000>;
72 #clock-cells = <1>;
73 };
74
75 rcu0: rcu@203000 {
76 compatible = "lantiq,xrx100-rcu", "simple-mfd", "syscon";
77 reg = <0x203000 0x1000>;
78 ranges = <0x0 0x203000 0x100>;
79 big-endian;
80
81 reset: reset-controller@10 {
82 compatible = "lantiq,xrx100-reset", "lantiq,danube-reset";
83 reg = <0x10 4>, <0x14 4>;
84
85 #reset-cells = <2>;
86 };
87
88 usb_phy0: usb2-phy@18 {
89 compatible = "lantiq,xrx100-usb2-phy";
90 reg = <0x18 4>;
91 status = "disabled";
92
93 resets = <&reset 4 4>;
94 reset-names = "ctrl";
95 #phy-cells = <0>;
96 };
97
98 usb_phy1: usb2-phy@34 {
99 compatible = "lantiq,xrx100-usb2-phy";
100 reg = <0x34 4>;
101 status = "disabled";
102
103 resets = <&reset 28 28>;
104 reset-names = "ctrl";
105 #phy-cells = <0>;
106 };
107
108 reboot@10 {
109 compatible = "syscon-reboot";
110 reg = <0x10 4>;
111
112 regmap = <&rcu0>;
113 offset = <0x10>;
114 mask = <0x40000000>;
115 };
116 };
117 };
118
119 fpi@10000000 {
120 #address-cells = <1>;
121 #size-cells = <1>;
122 compatible = "lantiq,fpi", "simple-bus";
123 ranges = <0x0 0x10000000 0xeefffff>;
124 reg = <0x10000000 0xef00000>;
125
126 localbus: localbus@0 {
127 #address-cells = <2>;
128 #size-cells = <1>;
129 ranges = <0 0 0x0 0x3ffffff /* addrsel0 */
130 1 0 0x4000000 0x4000010>; /* addsel1 */
131 compatible = "lantiq,localbus", "simple-bus";
132 };
133
134 gptu@e100a00 {
135 compatible = "lantiq,gptu-xway";
136 reg = <0xe100a00 0x100>;
137 interrupt-parent = <&icu0>;
138 interrupts = <126 127 128 129 130 131>;
139 };
140
141 asc0: serial@e100400 {
142 compatible = "lantiq,asc";
143 reg = <0xe100400 0x400>;
144 interrupt-parent = <&icu0>;
145 interrupts = <104 105 106>;
146 status = "disabled";
147 };
148
149 spi: spi@e100800 {
150 compatible = "lantiq,xrx100-spi";
151 reg = <0xe100800 0x100>;
152 interrupt-parent = <&icu0>;
153 interrupts = <22 23 24>;
154 interrupt-names = "spi_rx", "spi_tx", "spi_err",
155 "spi_frm";
156 #address-cells = <1>;
157 #size-cells = <1>;
158 status = "disabled";
159 };
160
161 gpio: pinmux@e100b10 {
162 compatible = "lantiq,xrx100-pinctrl";
163 #gpio-cells = <2>;
164 gpio-controller;
165 reg = <0xe100b10 0xa0>;
166 };
167
168 stp: stp@e100bb0 {
169 #gpio-cells = <2>;
170 compatible = "lantiq,gpio-stp-xway";
171 gpio-controller;
172 reg = <0xe100bb0 0x40>;
173 status = "disabled";
174 };
175
176 asc1: serial@e100c00 {
177 compatible = "lantiq,asc";
178 reg = <0xe100c00 0x400>;
179 interrupt-parent = <&icu0>;
180 interrupts = <112 113 114>;
181 };
182
183 usb0: usb@e101000 {
184 compatible = "lantiq,arx100-usb";
185 reg = <0xe101000 0x1000
186 0xe120000 0x3f000>;
187 interrupt-parent = <&icu0>;
188 interrupts = <62 91>;
189 dr_mode = "host";
190 phys = <&usb_phy0>;
191 phy-names = "usb2-phy";
192 status = "disabled";
193 };
194
195 usb1: usb@e106000 {
196 compatible = "lantiq,arx100-usb";
197 reg = <0xe106000 0x1000
198 0xe1e0000 0x3f000>;
199 interrupt-parent = <&icu0>;
200 interrupts = <91>;
201 dr_mode = "host";
202 phys = <&usb_phy1>;
203 phy-names = "usb2-phy";
204 status = "disabled";
205 };
206
207 deu@e103100 {
208 compatible = "lantiq,deu-arx100";
209 reg = <0xe103100 0xf00>;
210 };
211
212 dma0: dma@e104100 {
213 compatible = "lantiq,dma-xway";
214 reg = <0xe104100 0x800>;
215 };
216
217 ebu0: ebu@e105300 {
218 compatible = "lantiq,ebu-xway";
219 reg = <0xe105300 0x100>;
220 };
221
222 mei@e116000 {
223 compatible = "lantiq,mei-xway";
224 interrupt-parent = <&icu0>;
225 interrupts = <63>;
226 };
227
228 gsw: etop@e180000 {
229 compatible = "lantiq,etop-xway";
230 reg = <0xe180000 0x40000
231 0xe108000 0x200>;
232 interrupt-parent = <&icu0>;
233 interrupts = <73 72>;
234 mac-address = [ 00 11 22 33 44 55 ];
235 };
236
237 ppe@e234000 {
238 compatible = "lantiq,ppe-arx100";
239 interrupt-parent = <&icu0>;
240 interrupts = <96>;
241 };
242
243 pci0: pci@e105400 {
244 status = "disabled";
245 #address-cells = <3>;
246 #size-cells = <2>;
247 #interrupt-cells = <1>;
248 compatible = "lantiq,pci-xway";
249 bus-range = <0x0 0x0>;
250 ranges = <0x2000000 0 0x8000000 0x8000000 0 0x2000000 /* pci memory */
251 0x1000000 0 0x00000000 0xae00000 0 0x200000>; /* io space */
252 reg = <0x7000000 0x8000 /* config space */
253 0xe105400 0x400>; /* pci bridge */
254 lantiq,bus-clock = <33333333>;
255 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
256 interrupt-map = <0x7000 0 0 1 &icu0 30 1>;
257 req-mask = <0x1>;
258 };
259 };
260
261 adsl {
262 compatible = "lantiq,adsl-arx100";
263 };
264 };