treewide: remove label = "cpu" from DSA dt-binding
[openwrt/staging/noltari.git] / target / linux / bmips / dts / bcm6368.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 /dts-v1/;
4
5 #include <dt-bindings/clock/bcm6368-clock.h>
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8 #include <dt-bindings/interrupt-controller/bcm6368-interrupt-controller.h>
9 #include <dt-bindings/reset/bcm6368-reset.h>
10
11 / {
12 #address-cells = <1>;
13 #size-cells = <1>;
14 compatible = "brcm,bcm6368";
15
16 aliases {
17 nflash = &nflash;
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 = <200000000>;
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 ubus {
73 #address-cells = <1>;
74 #size-cells = <1>;
75
76 compatible = "simple-bus";
77 ranges;
78
79 periph_clk: clock-controller@10000004 {
80 compatible = "brcm,bcm6368-clocks";
81 reg = <0x10000004 0x4>;
82 #clock-cells = <1>;
83 };
84
85 pll_cntl: syscon@10000008 {
86 compatible = "syscon", "simple-mfd";
87 reg = <0x10000008 0x4>;
88 native-endian;
89
90 syscon-reboot {
91 compatible = "syscon-reboot";
92 offset = <0x0>;
93 mask = <0x1>;
94 };
95 };
96
97 periph_rst: reset-controller@10000010 {
98 compatible = "brcm,bcm6345-reset";
99 reg = <0x10000010 0x4>;
100 #reset-cells = <1>;
101 };
102
103 ext_intc0: interrupt-controller@10000018 {
104 #address-cells = <1>;
105 compatible = "brcm,bcm6345-ext-intc";
106 reg = <0x10000018 0x4>;
107
108 interrupt-controller;
109 #interrupt-cells = <2>;
110
111 interrupts = <BCM6368_IRQ_EXT0>,
112 <BCM6368_IRQ_EXT1>,
113 <BCM6368_IRQ_EXT2>,
114 <BCM6368_IRQ_EXT3>;
115 };
116
117 ext_intc1: interrupt-controller@1000001c {
118 #address-cells = <1>;
119 compatible = "brcm,bcm6345-ext-intc";
120 reg = <0x1000001c 0x4>;
121
122 interrupt-controller;
123 #interrupt-cells = <2>;
124
125 interrupts = <BCM6368_IRQ_EXT4>,
126 <BCM6368_IRQ_EXT5>;
127 };
128
129 periph_intc: interrupt-controller@10000020 {
130 #address-cells = <1>;
131 compatible = "brcm,bcm6345-l1-intc";
132 reg = <0x10000020 0x10>,
133 <0x10000030 0x10>;
134
135 interrupt-controller;
136 #interrupt-cells = <1>;
137
138 interrupt-parent = <&cpu_intc>;
139 interrupts = <2>, <3>;
140 };
141
142 wdt: watchdog@1000005c {
143 compatible = "brcm,bcm7038-wdt";
144 reg = <0x1000005c 0xc>;
145
146 clocks = <&periph_osc>;
147
148 timeout-sec = <30>;
149 };
150
151 gpio_cntl: syscon@10000080 {
152 compatible = "brcm,bcm6368-gpio-sysctl",
153 "syscon", "simple-mfd";
154 reg = <0x10000080 0x80>;
155 ranges = <0 0x10000080 0x80>;
156 native-endian;
157
158 gpio: gpio@0 {
159 compatible = "brcm,bcm6368-gpio";
160 reg-names = "dirout", "dat";
161 reg = <0x0 0x8>, <0x8 0x8>;
162
163 gpio-controller;
164 gpio-ranges = <&pinctrl 0 0 38>;
165 #gpio-cells = <2>;
166 };
167
168 pinctrl: pinctrl@18 {
169 compatible = "brcm,bcm6368-pinctrl";
170 reg = <0x18 0x4>, <0x38 0x4>;
171
172 pinctrl_analog_afe_0: analog_afe_0-pins {
173 function = "analog_afe_0";
174 pins = "gpio0";
175 };
176
177 pinctrl_analog_afe_1: analog_afe_1-pins {
178 function = "analog_afe_1";
179 pins = "gpio1";
180 };
181
182 pinctrl_sys_irq: sys_irq-pins {
183 function = "sys_irq";
184 pins = "gpio2";
185 };
186
187 pinctrl_serial_led: serial_led-pins {
188 pinctrl_serial_led_data: serial_led_data-pins {
189 function = "serial_led_data";
190 pins = "gpio3";
191 };
192
193 pinctrl_serial_led_clk: serial_led_clk-pins {
194 function = "serial_led_clk";
195 pins = "gpio4";
196 };
197 };
198
199 pinctrl_inet_led: inet_led-pins {
200 function = "inet_led";
201 pins = "gpio5";
202 };
203
204 pinctrl_ephy0_led: ephy0_led-pins {
205 function = "ephy0_led";
206 pins = "gpio6";
207 };
208
209 pinctrl_ephy1_led: ephy1_led-pins {
210 function = "ephy1_led";
211 pins = "gpio7";
212 };
213
214 pinctrl_ephy2_led: ephy2_led-pins {
215 function = "ephy2_led";
216 pins = "gpio8";
217 };
218
219 pinctrl_ephy3_led: ephy3_led-pins {
220 function = "ephy3_led";
221 pins = "gpio9";
222 };
223
224 pinctrl_robosw_led_data: robosw_led_data-pins {
225 function = "robosw_led_data";
226 pins = "gpio10";
227 };
228
229 pinctrl_robosw_led_clk: robosw_led_clk-pins {
230 function = "robosw_led_clk";
231 pins = "gpio11";
232 };
233
234 pinctrl_robosw_led0: robosw_led0-pins {
235 function = "robosw_led0";
236 pins = "gpio12";
237 };
238
239 pinctrl_robosw_led1: robosw_led1-pins {
240 function = "robosw_led1";
241 pins = "gpio13";
242 };
243
244 pinctrl_usb_device_led: usb_device_led-pins {
245 function = "usb_device_led";
246 pins = "gpio14";
247 };
248
249 pinctrl_pci: pci-pins {
250 pinctrl_pci_req1: pci_req1-pins {
251 function = "pci_req1";
252 pins = "gpio16";
253 };
254
255 pinctrl_pci_gnt1: pci_gnt1-pins {
256 function = "pci_gnt1";
257 pins = "gpio17";
258 };
259
260 pinctrl_pci_intb: pci_intb-pins {
261 function = "pci_intb";
262 pins = "gpio18";
263 };
264
265 pinctrl_pci_req0: pci_req0-pins {
266 function = "pci_req0";
267 pins = "gpio19";
268 };
269
270 pinctrl_pci_gnt0: pci_gnt0-pins {
271 function = "pci_gnt0";
272 pins = "gpio20";
273 };
274 };
275
276 pinctrl_pcmcia: pcmcia-pins {
277 pinctrl_pcmcia_cd1: pcmcia_cd1-pins {
278 function = "pcmcia_cd1";
279 pins = "gpio22";
280 };
281
282 pinctrl_pcmcia_cd2: pcmcia_cd2-pins {
283 function = "pcmcia_cd2";
284 pins = "gpio23";
285 };
286
287 pinctrl_pcmcia_vs1: pcmcia_vs1-pins {
288 function = "pcmcia_vs1";
289 pins = "gpio24";
290 };
291
292 pinctrl_pcmcia_vs2: pcmcia_vs2-pins {
293 function = "pcmcia_vs2";
294 pins = "gpio25";
295 };
296 };
297
298 pinctrl_ebi_cs2: ebi_cs2-pins {
299 function = "ebi_cs2";
300 pins = "gpio26";
301 };
302
303 pinctrl_ebi_cs3: ebi_cs3-pins {
304 function = "ebi_cs3";
305 pins = "gpio27";
306 };
307
308 pinctrl_spi_cs2: spi_cs2-pins {
309 function = "spi_cs2";
310 pins = "gpio28";
311 };
312
313 pinctrl_spi_cs3: spi_cs3-pins {
314 function = "spi_cs3";
315 pins = "gpio29";
316 };
317
318 pinctrl_spi_cs4: spi_cs4-pins {
319 function = "spi_cs4";
320 pins = "gpio30";
321 };
322
323 pinctrl_spi_cs5: spi_cs5-pins {
324 function = "spi_cs5";
325 pins = "gpio31";
326 };
327
328 pinctrl_uart1: uart1-pins {
329 function = "uart1";
330 group = "uart1_grp";
331 };
332 };
333 };
334
335 leds: led-controller@100000d0 {
336 #address-cells = <1>;
337 #size-cells = <0>;
338 compatible = "brcm,bcm6358-leds";
339 reg = <0x100000d0 0x8>;
340
341 status = "disabled";
342 };
343
344 uart0: serial@10000100 {
345 compatible = "brcm,bcm6345-uart";
346 reg = <0x10000100 0x18>;
347
348 interrupt-parent = <&periph_intc>;
349 interrupts = <BCM6368_IRQ_UART0>;
350
351 clocks = <&periph_osc>;
352 clock-names = "periph";
353
354 status = "disabled";
355 };
356
357 uart1: serial@10000120 {
358 compatible = "brcm,bcm6345-uart";
359 reg = <0x10000120 0x18>;
360
361 interrupt-parent = <&periph_intc>;
362 interrupts = <BCM6368_IRQ_UART1>;
363
364 clocks = <&periph_osc>;
365 clock-names = "periph";
366
367 status = "disabled";
368 };
369
370 nflash: nand@10000200 {
371 #address-cells = <1>;
372 #size-cells = <0>;
373 compatible = "brcm,nand-bcm6368",
374 "brcm,brcmnand-v2.1",
375 "brcm,brcmnand";
376 reg = <0x10000200 0x180>,
377 <0x10000600 0x200>,
378 <0x10000070 0x10>;
379 reg-names = "nand",
380 "nand-cache",
381 "nand-int-base";
382
383 interrupt-parent = <&periph_intc>;
384 interrupts = <BCM6368_IRQ_NAND>;
385
386 clocks = <&periph_clk BCM6368_CLK_NAND>;
387 clock-names = "nand";
388
389 status = "disabled";
390 };
391
392 lsspi: spi@10000800 {
393 #address-cells = <1>;
394 #size-cells = <0>;
395 compatible = "brcm,bcm6358-spi";
396 reg = <0x10000800 0x70c>;
397
398 interrupt-parent = <&periph_intc>;
399 interrupts = <BCM6368_IRQ_SPI>;
400
401 clocks = <&periph_clk BCM6368_CLK_SPI>;
402 clock-names = "spi";
403
404 resets = <&periph_rst BCM6368_RST_SPI>;
405
406 status = "disabled";
407 };
408
409 pci: pci@10001000 {
410 compatible = "brcm,bcm6348-pci";
411 reg = <0x10001000 0x200>,
412 <0x08000000 0x10000>;
413 reg-names = "pci",
414 "pci-io";
415 #address-cells = <3>;
416 #size-cells = <2>;
417
418 device_type = "pci";
419 bus-range = <0x00 0x01>;
420 ranges = <0x2000000 0 0x30000000 0x30000000 0 0x8000000>;
421 linux,pci-probe-only = <1>;
422
423 interrupt-parent = <&periph_intc>;
424 interrupts = <BCM6368_IRQ_MPI>;
425
426 resets = <&periph_rst BCM6368_RST_MPI>;
427 reset-names = "pci";
428
429 pinctrl-names = "default";
430 pinctrl-0 = <&pinctrl_pci>;
431
432 brcm,remap;
433
434 status = "disabled";
435 };
436
437 ehci: usb@10001500 {
438 compatible = "brcm,bcm6368-ehci", "generic-ehci";
439 reg = <0x10001500 0x100>;
440 big-endian;
441 spurious-oc;
442
443 interrupt-parent = <&periph_intc>;
444 interrupts = <BCM6368_IRQ_EHCI>;
445
446 phys = <&usbh 0>;
447 phy-names = "usb";
448
449 status = "disabled";
450 };
451
452 ohci: usb@10001600 {
453 compatible = "brcm,bcm6368-ohci", "generic-ohci";
454 reg = <0x10001600 0x100>;
455 big-endian;
456 no-big-frame-no;
457
458 interrupt-parent = <&periph_intc>;
459 interrupts = <BCM6368_IRQ_OHCI>;
460
461 phys = <&usbh 0>;
462 phy-names = "usb";
463
464 status = "disabled";
465 };
466
467 usbh: usb-phy@10001700 {
468 compatible = "brcm,bcm6368-usbh-phy";
469 reg = <0x10001700 0x38>;
470
471 #phy-cells = <1>;
472
473 clocks = <&periph_clk BCM6368_CLK_USBH>;
474 clock-names = "usbh";
475
476 resets = <&periph_rst BCM6368_RST_USBH>;
477
478 status = "disabled";
479 };
480
481 random: rng@10004180 {
482 compatible = "brcm,bcm6368-rng";
483 reg = <0x10004180 0x14>;
484
485 clocks = <&periph_clk BCM6368_CLK_IPSEC>;
486 clock-names = "ipsec";
487
488 resets = <&periph_rst BCM6368_RST_IPSEC>;
489 };
490
491 ethernet: ethernet@10006800 {
492 compatible = "brcm,bcm6368-enetsw";
493 reg = <0x10006800 0x80>,
494 <0x10006a00 0x80>,
495 <0x10006c00 0x80>;
496 reg-names = "dma",
497 "dma-channels",
498 "dma-sram";
499
500 interrupt-parent = <&periph_intc>;
501 interrupts = <BCM6368_IRQ_ENETSW_RX_DMA0>,
502 <BCM6368_IRQ_ENETSW_TX_DMA0>;
503 interrupt-names = "rx",
504 "tx";
505
506 clocks = <&periph_clk BCM6368_CLK_SWPKT_USB>,
507 <&periph_clk BCM6368_CLK_SWPKT_SAR>,
508 <&periph_clk BCM6368_CLK_ROBOSW>;
509
510 resets = <&periph_rst BCM6368_RST_SWITCH>,
511 <&periph_rst BCM6368_RST_EPHY>;
512
513 dma-rx = <0>;
514 dma-tx = <1>;
515
516 status = "disabled";
517 };
518
519 switch0: switch@10f00000 {
520 #address-cells = <1>;
521 #size-cells = <0>;
522 compatible = "brcm,bcm6328-switch";
523 reg = <0x10f00000 0x8000>;
524 big-endian;
525
526 ports {
527 #address-cells = <1>;
528 #size-cells = <0>;
529
530 port@8 {
531 reg = <8>;
532
533 phy-mode = "internal";
534 ethernet = <&ethernet>;
535
536 fixed-link {
537 speed = <1000>;
538 full-duplex;
539 };
540 };
541 };
542 };
543
544 mdio: mdio@10f000b0 {
545 #address-cells = <1>;
546 #size-cells = <0>;
547 compatible = "brcm,bcm6368-mdio-mux";
548 reg = <0x10f000b0 0x8>;
549
550 mdio_int: mdio@0 {
551 #address-cells = <1>;
552 #size-cells = <0>;
553 reg = <0>;
554
555 phy1: ethernet-phy@1 {
556 compatible = "ethernet-phy-ieee802.3-c22";
557 reg = <1>;
558 };
559
560 phy2: ethernet-phy@2 {
561 compatible = "ethernet-phy-ieee802.3-c22";
562 reg = <2>;
563 };
564
565 phy3: ethernet-phy@3 {
566 compatible = "ethernet-phy-ieee802.3-c22";
567 reg = <3>;
568 };
569
570 phy4: ethernet-phy@4 {
571 compatible = "ethernet-phy-ieee802.3-c22";
572 reg = <4>;
573 };
574 };
575
576 mdio_ext: mdio@1 {
577 #address-cells = <1>;
578 #size-cells = <0>;
579 reg = <1>;
580 };
581 };
582 };
583
584 pflash: nor@18000000 {
585 #address-cells = <1>;
586 #size-cells = <1>;
587 compatible = "cfi-flash";
588 reg = <0x18000000 0x2000000>;
589 bank-width = <2>;
590
591 status = "disabled";
592 };
593 };