bmips: document GPIO external interrupts
[openwrt/staging/dedeckeh.git] / target / linux / bmips / dts / bcm6358.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 /dts-v1/;
4
5 #include <dt-bindings/clock/bcm6358-clock.h>
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8 #include <dt-bindings/interrupt-controller/bcm6358-interrupt-controller.h>
9 #include <dt-bindings/interrupt-controller/irq.h>
10 #include <dt-bindings/reset/bcm6358-reset.h>
11
12 / {
13 #address-cells = <1>;
14 #size-cells = <1>;
15 compatible = "brcm,bcm6358";
16
17 aliases {
18 pflash = &pflash;
19 pinctrl = &pinctrl;
20 serial0 = &uart0;
21 serial1 = &uart1;
22 spi0 = &lsspi;
23 };
24
25 chosen {
26 bootargs = "earlycon";
27 stdout-path = "serial0:115200n8";
28 };
29
30 clocks {
31 periph_osc: periph-osc {
32 compatible = "fixed-clock";
33
34 #clock-cells = <0>;
35
36 clock-frequency = <50000000>;
37 clock-output-names = "periph";
38 };
39 };
40
41 cpus {
42 #address-cells = <1>;
43 #size-cells = <0>;
44 mips-hpt-frequency = <150000000>;
45
46 cpu@0 {
47 compatible = "brcm,bmips4350", "mips,mips4Kc";
48 device_type = "cpu";
49 reg = <0>;
50 };
51
52 cpu@1 {
53 compatible = "brcm,bmips4350", "mips,mips4Kc";
54 device_type = "cpu";
55 reg = <1>;
56 };
57 };
58
59 cpu_intc: interrupt-controller {
60 #address-cells = <0>;
61 compatible = "mti,cpu-interrupt-controller";
62
63 interrupt-controller;
64 #interrupt-cells = <1>;
65 };
66
67 memory@0 {
68 device_type = "memory";
69 reg = <0 0>;
70 };
71
72 pflash: nor@1e000000 {
73 #address-cells = <1>;
74 #size-cells = <1>;
75 compatible = "cfi-flash";
76 reg = <0x1e000000 0x2000000>;
77 bank-width = <2>;
78
79 status = "disabled";
80 };
81
82 ubus {
83 #address-cells = <1>;
84 #size-cells = <1>;
85
86 compatible = "simple-bus";
87 ranges;
88
89 periph_clk: clock-controller@fffe0004 {
90 compatible = "brcm,bcm6358-clocks";
91 reg = <0xfffe0004 0x4>;
92 #clock-cells = <1>;
93 };
94
95 pll_cntl: syscon@fffe0008 {
96 compatible = "syscon", "simple-mfd";
97 reg = <0xfffe0008 0x4>;
98 native-endian;
99
100 syscon-reboot {
101 compatible = "syscon-reboot";
102 offset = <0x0>;
103 mask = <0x1>;
104 };
105 };
106
107 periph_intc: interrupt-controller@fffe000c {
108 #address-cells = <1>;
109 compatible = "brcm,bcm6345-l1-intc";
110 reg = <0xfffe000c 0x8>,
111 <0xfffe0038 0x8>;
112
113 interrupt-controller;
114 #interrupt-cells = <1>;
115
116 interrupt-parent = <&cpu_intc>;
117 interrupts = <2>, <3>;
118 };
119
120 ext_intc0: interrupt-controller@fffe0014 {
121 #address-cells = <1>;
122 compatible = "brcm,bcm6345-ext-intc";
123 reg = <0xfffe0014 0x4>;
124
125 interrupt-controller;
126 #interrupt-cells = <2>;
127
128 interrupt-parent = <&periph_intc>;
129 interrupts = <BCM6358_IRQ_EXT0>,
130 <BCM6358_IRQ_EXT1>,
131 <BCM6358_IRQ_EXT2>,
132 <BCM6358_IRQ_EXT3>;
133 };
134
135 ext_intc1: interrupt-controller@fffe001c {
136 #address-cells = <1>;
137 compatible = "brcm,bcm6345-ext-intc";
138 reg = <0xfffe001c 0x4>;
139
140 interrupt-controller;
141 #interrupt-cells = <2>;
142
143 interrupt-parent = <&periph_intc>;
144 interrupts = <BCM6358_IRQ_EXT4>,
145 <BCM6358_IRQ_EXT5>;
146 };
147
148 periph_rst: reset-controller@fffe0034 {
149 compatible = "brcm,bcm6345-reset";
150 reg = <0xfffe0034 0x4>;
151 #reset-cells = <1>;
152 };
153
154 wdt: watchdog@fffe005c {
155 compatible = "brcm,bcm7038-wdt";
156 reg = <0xfffe005c 0xc>;
157
158 clocks = <&periph_osc>;
159
160 timeout-sec = <30>;
161 };
162
163 gpio_cntl: syscon@fffe0080 {
164 #address-cells = <1>;
165 #size-cells = <1>;
166 compatible = "brcm,bcm6358-gpio-sysctl",
167 "syscon", "simple-mfd";
168 reg = <0xfffe0080 0x50>;
169 ranges = <0 0xfffe0080 0x80>;
170 native-endian;
171
172 gpio: gpio@0 {
173 compatible = "brcm,bcm6358-gpio";
174 reg-names = "dirout", "dat";
175 reg = <0x0 0x8>, <0x8 0x8>;
176
177 gpio-controller;
178 gpio-ranges = <&pinctrl 0 0 40>;
179 #gpio-cells = <2>;
180 };
181
182 pinctrl: pinctrl@18 {
183 compatible = "brcm,bcm6358-pinctrl";
184 reg = <0x18 0x4>;
185
186 pinctrl_ebi_cs: ebi_cs-pins {
187 function = "ebi_cs";
188 groups = "ebi_cs_grp";
189 };
190
191 pinctrl_uart1: uart1-pins {
192 function = "uart1";
193 groups = "uart1_grp";
194 };
195
196 pinctrl_serial_led: serial_led-pins {
197 function = "serial_led";
198 groups = "serial_led_grp";
199 };
200
201 pinctrl_legacy_led: legacy_led-pins {
202 function = "legacy_led";
203 groups = "legacy_led_grp";
204 };
205
206 pinctrl_led: led-pins {
207 function = "led";
208 groups = "led_grp";
209 };
210
211 pinctrl_spi_cs_23: spi_cs-pins {
212 function = "spi_cs";
213 groups = "spi_cs_grp";
214 };
215
216 pinctrl_utopia: utopia-pins {
217 function = "utopia";
218 groups = "utopia_grp";
219 };
220
221 pinctrl_pwm_syn_clk: pwm_syn_clk-pins {
222 function = "pwm_syn_clk";
223 groups = "pwm_syn_clk_grp";
224 };
225
226 pinctrl_sys_irq: sys_irq-pins {
227 function = "sys_irq";
228 groups = "sys_irq_grp";
229 };
230 };
231 };
232
233 leds: led-controller@fffe00d0 {
234 #address-cells = <1>;
235 #size-cells = <0>;
236 compatible = "brcm,bcm6358-leds";
237 reg = <0xfffe00d0 0x8>;
238
239 status = "disabled";
240 };
241
242 uart0: serial@fffe0100 {
243 compatible = "brcm,bcm6345-uart";
244 reg = <0xfffe0100 0x18>;
245
246 interrupt-parent = <&periph_intc>;
247 interrupts = <BCM6358_IRQ_UART0>;
248
249 clocks = <&periph_osc>;
250 clock-names = "periph";
251
252 status = "disabled";
253 };
254
255 uart1: serial@fffe0120 {
256 compatible = "brcm,bcm6345-uart";
257 reg = <0xfffe0120 0x18>;
258
259 interrupt-parent = <&periph_intc>;
260 interrupts = <BCM6358_IRQ_UART1>;
261
262 clocks = <&periph_osc>;
263 clock-names = "periph";
264
265 status = "disabled";
266 };
267
268 lsspi: spi@fffe0800 {
269 #address-cells = <1>;
270 #size-cells = <0>;
271 compatible = "brcm,bcm6358-spi";
272 reg = <0xfffe0800 0x70c>;
273
274 interrupt-parent = <&periph_intc>;
275 interrupts = <BCM6358_IRQ_SPI>;
276
277 clocks = <&periph_clk BCM6358_CLK_SPI>;
278 clock-names = "spi";
279
280 resets = <&periph_rst BCM6358_RST_SPI>;
281
282 status = "disabled";
283 };
284
285 pci: pci@fffe1000 {
286 compatible = "brcm,bcm6348-pci";
287 reg = <0xfffe1000 0x200>;
288 #address-cells = <3>;
289 #size-cells = <2>;
290
291 device_type = "pci";
292 bus-range = <0x00 0x01>;
293 ranges = <0x2000000 0 0x30000000 0x30000000 0 0x8000000>,
294 <0x1000000 0 0x08000000 0x08000000 0 0x0010000>;
295 linux,pci-probe-only = <1>;
296
297 interrupt-parent = <&periph_intc>;
298 interrupts = <BCM6358_IRQ_MPI>;
299
300 resets = <&periph_rst BCM6358_RST_MPI>;
301 reset-names = "pci";
302
303 brcm,remap;
304
305 status = "disabled";
306 };
307
308 ehci: usb@fffe1300 {
309 compatible = "brcm,bcm6358-ehci", "generic-ehci";
310 reg = <0xfffe1300 0x100>;
311 big-endian;
312 spurious-oc;
313
314 interrupt-parent = <&periph_intc>;
315 interrupts = <BCM6358_IRQ_EHCI>;
316
317 phys = <&usbh 0>;
318 phy-names = "usb";
319
320 status = "disabled";
321 };
322
323 ohci: usb@fffe1400 {
324 compatible = "brcm,bcm6358-ohci", "generic-ohci";
325 reg = <0xfffe1400 0x100>;
326 big-endian;
327 no-big-frame-no;
328
329 interrupt-parent = <&periph_intc>;
330 interrupts = <BCM6358_IRQ_OHCI>;
331
332 phys = <&usbh 0>;
333 phy-names = "usb";
334
335 status = "disabled";
336 };
337
338 usbh: usb-phy@fffe1500 {
339 compatible = "brcm,bcm6358-usbh-phy";
340 reg = <0xfffe1500 0x38>;
341
342 #phy-cells = <1>;
343
344 resets = <&periph_rst BCM6358_RST_USBH>;
345
346 status = "disabled";
347 };
348
349 ethernet0: ethernet@fffe4000 {
350 compatible = "brcm,bcm6358-emac";
351 reg = <0xfffe4000 0x2dc>;
352
353 clocks = <&periph_clk BCM6358_CLK_ENET0>;
354
355 interrupt-parent = <&periph_intc>;
356 interrupts = <BCM6358_IRQ_EMAC0>,
357 <BCM6358_IRQ_EMAC0_RX_DMA>,
358 <BCM6358_IRQ_EMAC0_TX_DMA>;
359 interrupt-names = "emac",
360 "rx",
361 "tx";
362
363 brcm,iudma = <&iudma>;
364
365 dma-rx = <0>;
366 dma-tx = <1>;
367
368 status = "disabled";
369
370 mdio0: mdio {
371 #address-cells = <1>;
372 #size-cells = <0>;
373 };
374 };
375
376 ethernet1: ethernet@fffe4800 {
377 compatible = "brcm,bcm6358-emac";
378 reg = <0xfffe4800 0x2dc>;
379
380 clocks = <&periph_clk BCM6358_CLK_ENET1>;
381
382 interrupt-parent = <&periph_intc>;
383 interrupts = <BCM6358_IRQ_EMAC1>,
384 <BCM6358_IRQ_EMAC1_RX_DMA>,
385 <BCM6358_IRQ_EMAC1_TX_DMA>;
386 interrupt-names = "emac",
387 "rx",
388 "tx";
389
390 brcm,iudma = <&iudma>;
391 brcm,external-mii;
392
393 dma-rx = <2>;
394 dma-tx = <3>;
395
396 status = "disabled";
397
398 mdio1: mdio {
399 #address-cells = <1>;
400 #size-cells = <0>;
401 };
402 };
403
404 iudma: dma@fffe5000 {
405 #address-cells = <1>;
406 #size-cells = <1>;
407 compatible = "brcm,bcm6358-iudma";
408 reg = <0xfffe5000 0x24>,
409 <0xfffe5100 0x80>,
410 <0xfffe5200 0x80>;
411 reg-names = "dma",
412 "dma-channels",
413 "dma-sram";
414
415 dma-channels = <8>;
416
417 clocks = <&periph_clk BCM6358_CLK_EMUSB>,
418 <&periph_clk BCM6358_CLK_USBSU>,
419 <&periph_clk BCM6358_CLK_EPHY>,
420 <&periph_clk BCM6358_CLK_ENET>;
421
422 resets = <&periph_rst BCM6358_RST_ENET>,
423 <&periph_rst BCM6358_RST_EPHY>;
424
425 status = "disabled";
426 };
427 };
428 };