1 // SPDX-License-Identifier: GPL-2.0-or-later
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>
14 compatible = "brcm,bcm6368";
26 bootargs = "earlycon";
27 stdout-path = "serial0:115200n8";
31 periph_osc: periph-osc {
32 compatible = "fixed-clock";
36 clock-frequency = <50000000>;
37 clock-output-names = "periph";
44 mips-hpt-frequency = <200000000>;
47 compatible = "brcm,bmips4350", "mips,mips4Kc";
53 compatible = "brcm,bmips4350", "mips,mips4Kc";
59 cpu_intc: interrupt-controller {
61 compatible = "mti,cpu-interrupt-controller";
64 #interrupt-cells = <1>;
68 device_type = "memory";
76 compatible = "simple-bus";
79 periph_clk: clock-controller@10000004 {
80 compatible = "brcm,bcm6368-clocks";
81 reg = <0x10000004 0x4>;
85 pll_cntl: syscon@10000008 {
86 compatible = "syscon", "simple-mfd";
87 reg = <0x10000008 0x4>;
91 compatible = "syscon-reboot";
97 periph_rst: reset-controller@10000010 {
98 compatible = "brcm,bcm6345-reset";
99 reg = <0x10000010 0x4>;
103 ext_intc0: interrupt-controller@10000018 {
104 #address-cells = <1>;
105 compatible = "brcm,bcm6345-ext-intc";
106 reg = <0x10000018 0x4>;
108 interrupt-controller;
109 #interrupt-cells = <2>;
111 interrupts = <BCM6368_IRQ_EXT0>,
117 ext_intc1: interrupt-controller@1000001c {
118 #address-cells = <1>;
119 compatible = "brcm,bcm6345-ext-intc";
120 reg = <0x1000001c 0x4>;
122 interrupt-controller;
123 #interrupt-cells = <2>;
125 interrupts = <BCM6368_IRQ_EXT4>,
129 periph_intc: interrupt-controller@10000020 {
130 #address-cells = <1>;
131 compatible = "brcm,bcm6345-l1-intc";
132 reg = <0x10000020 0x10>,
135 interrupt-controller;
136 #interrupt-cells = <1>;
138 interrupt-parent = <&cpu_intc>;
139 interrupts = <2>, <3>;
142 wdt: watchdog@1000005c {
143 compatible = "brcm,bcm7038-wdt";
144 reg = <0x1000005c 0xc>;
146 clocks = <&periph_osc>;
151 gpio_cntl: syscon@10000080 {
152 compatible = "brcm,bcm6368-gpio-sysctl",
153 "syscon", "simple-mfd";
154 reg = <0x10000080 0x80>;
155 ranges = <0 0x10000080 0x80>;
159 compatible = "brcm,bcm6368-gpio";
160 reg-names = "dirout", "dat";
161 reg = <0x0 0x8>, <0x8 0x8>;
164 gpio-ranges = <&pinctrl 0 0 38>;
168 pinctrl: pinctrl@18 {
169 compatible = "brcm,bcm6368-pinctrl";
170 reg = <0x18 0x4>, <0x38 0x4>;
172 pinctrl_analog_afe_0: analog_afe_0-pins {
173 function = "analog_afe_0";
177 pinctrl_analog_afe_1: analog_afe_1-pins {
178 function = "analog_afe_1";
182 pinctrl_sys_irq: sys_irq-pins {
183 function = "sys_irq";
187 pinctrl_serial_led: serial_led-pins {
188 pinctrl_serial_led_data: serial_led_data-pins {
189 function = "serial_led_data";
193 pinctrl_serial_led_clk: serial_led_clk-pins {
194 function = "serial_led_clk";
199 pinctrl_inet_led: inet_led-pins {
200 function = "inet_led";
204 pinctrl_ephy0_led: ephy0_led-pins {
205 function = "ephy0_led";
209 pinctrl_ephy1_led: ephy1_led-pins {
210 function = "ephy1_led";
214 pinctrl_ephy2_led: ephy2_led-pins {
215 function = "ephy2_led";
219 pinctrl_ephy3_led: ephy3_led-pins {
220 function = "ephy3_led";
224 pinctrl_robosw_led_data: robosw_led_data-pins {
225 function = "robosw_led_data";
229 pinctrl_robosw_led_clk: robosw_led_clk-pins {
230 function = "robosw_led_clk";
234 pinctrl_robosw_led0: robosw_led0-pins {
235 function = "robosw_led0";
239 pinctrl_robosw_led1: robosw_led1-pins {
240 function = "robosw_led1";
244 pinctrl_usb_device_led: usb_device_led-pins {
245 function = "usb_device_led";
249 pinctrl_pci: pci-pins {
250 pinctrl_pci_req1: pci_req1-pins {
251 function = "pci_req1";
255 pinctrl_pci_gnt1: pci_gnt1-pins {
256 function = "pci_gnt1";
260 pinctrl_pci_intb: pci_intb-pins {
261 function = "pci_intb";
265 pinctrl_pci_req0: pci_req0-pins {
266 function = "pci_req0";
270 pinctrl_pci_gnt0: pci_gnt0-pins {
271 function = "pci_gnt0";
276 pinctrl_pcmcia: pcmcia-pins {
277 pinctrl_pcmcia_cd1: pcmcia_cd1-pins {
278 function = "pcmcia_cd1";
282 pinctrl_pcmcia_cd2: pcmcia_cd2-pins {
283 function = "pcmcia_cd2";
287 pinctrl_pcmcia_vs1: pcmcia_vs1-pins {
288 function = "pcmcia_vs1";
292 pinctrl_pcmcia_vs2: pcmcia_vs2-pins {
293 function = "pcmcia_vs2";
298 pinctrl_ebi_cs2: ebi_cs2-pins {
299 function = "ebi_cs2";
303 pinctrl_ebi_cs3: ebi_cs3-pins {
304 function = "ebi_cs3";
308 pinctrl_spi_cs2: spi_cs2-pins {
309 function = "spi_cs2";
313 pinctrl_spi_cs3: spi_cs3-pins {
314 function = "spi_cs3";
318 pinctrl_spi_cs4: spi_cs4-pins {
319 function = "spi_cs4";
323 pinctrl_spi_cs5: spi_cs5-pins {
324 function = "spi_cs5";
328 pinctrl_uart1: uart1-pins {
335 leds: led-controller@100000d0 {
336 #address-cells = <1>;
338 compatible = "brcm,bcm6358-leds";
339 reg = <0x100000d0 0x8>;
344 uart0: serial@10000100 {
345 compatible = "brcm,bcm6345-uart";
346 reg = <0x10000100 0x18>;
348 interrupt-parent = <&periph_intc>;
349 interrupts = <BCM6368_IRQ_UART0>;
351 clocks = <&periph_osc>;
352 clock-names = "periph";
357 uart1: serial@10000120 {
358 compatible = "brcm,bcm6345-uart";
359 reg = <0x10000120 0x18>;
361 interrupt-parent = <&periph_intc>;
362 interrupts = <BCM6368_IRQ_UART1>;
364 clocks = <&periph_osc>;
365 clock-names = "periph";
370 nflash: nand@10000200 {
371 #address-cells = <1>;
373 compatible = "brcm,nand-bcm6368",
374 "brcm,brcmnand-v2.1",
376 reg = <0x10000200 0x180>,
383 interrupt-parent = <&periph_intc>;
384 interrupts = <BCM6368_IRQ_NAND>;
386 clocks = <&periph_clk BCM6368_CLK_NAND>;
387 clock-names = "nand";
392 lsspi: spi@10000800 {
393 #address-cells = <1>;
395 compatible = "brcm,bcm6358-spi";
396 reg = <0x10000800 0x70c>;
398 interrupt-parent = <&periph_intc>;
399 interrupts = <BCM6368_IRQ_SPI>;
401 clocks = <&periph_clk BCM6368_CLK_SPI>;
404 resets = <&periph_rst BCM6368_RST_SPI>;
410 compatible = "brcm,bcm6348-pci";
411 reg = <0x10001000 0x200>,
412 <0x08000000 0x10000>;
415 #address-cells = <3>;
419 bus-range = <0x00 0x01>;
420 ranges = <0x2000000 0 0x30000000 0x30000000 0 0x8000000>;
421 linux,pci-probe-only = <1>;
423 interrupt-parent = <&periph_intc>;
424 interrupts = <BCM6368_IRQ_MPI>;
426 resets = <&periph_rst BCM6368_RST_MPI>;
429 pinctrl-names = "default";
430 pinctrl-0 = <&pinctrl_pci>;
438 compatible = "brcm,bcm6368-ehci", "generic-ehci";
439 reg = <0x10001500 0x100>;
443 interrupt-parent = <&periph_intc>;
444 interrupts = <BCM6368_IRQ_EHCI>;
453 compatible = "brcm,bcm6368-ohci", "generic-ohci";
454 reg = <0x10001600 0x100>;
458 interrupt-parent = <&periph_intc>;
459 interrupts = <BCM6368_IRQ_OHCI>;
467 usbh: usb-phy@10001700 {
468 compatible = "brcm,bcm6368-usbh-phy";
469 reg = <0x10001700 0x38>;
473 clocks = <&periph_clk BCM6368_CLK_USBH>;
474 clock-names = "usbh";
476 resets = <&periph_rst BCM6368_RST_USBH>;
481 random: rng@10004180 {
482 compatible = "brcm,bcm6368-rng";
483 reg = <0x10004180 0x14>;
485 clocks = <&periph_clk BCM6368_CLK_IPSEC>;
486 clock-names = "ipsec";
488 resets = <&periph_rst BCM6368_RST_IPSEC>;
491 ethernet: ethernet@10006800 {
492 compatible = "brcm,bcm6368-enetsw";
493 reg = <0x10006800 0x80>,
500 interrupt-parent = <&periph_intc>;
501 interrupts = <BCM6368_IRQ_ENETSW_RX_DMA0>,
502 <BCM6368_IRQ_ENETSW_TX_DMA0>;
503 interrupt-names = "rx",
506 clocks = <&periph_clk BCM6368_CLK_SWPKT_USB>,
507 <&periph_clk BCM6368_CLK_SWPKT_SAR>,
508 <&periph_clk BCM6368_CLK_ROBOSW>;
510 resets = <&periph_rst BCM6368_RST_SWITCH>,
511 <&periph_rst BCM6368_RST_EPHY>;
519 switch0: switch@10f00000 {
520 #address-cells = <1>;
522 compatible = "brcm,bcm6328-switch";
523 reg = <0x10f00000 0x8000>;
527 #address-cells = <1>;
533 phy-mode = "internal";
534 ethernet = <ðernet>;
544 mdio: mdio@10f000b0 {
545 #address-cells = <1>;
547 compatible = "brcm,bcm6368-mdio-mux";
548 reg = <0x10f000b0 0x8>;
551 #address-cells = <1>;
555 phy1: ethernet-phy@1 {
556 compatible = "ethernet-phy-ieee802.3-c22";
560 phy2: ethernet-phy@2 {
561 compatible = "ethernet-phy-ieee802.3-c22";
565 phy3: ethernet-phy@3 {
566 compatible = "ethernet-phy-ieee802.3-c22";
570 phy4: ethernet-phy@4 {
571 compatible = "ethernet-phy-ieee802.3-c22";
577 #address-cells = <1>;
584 pflash: nor@18000000 {
585 #address-cells = <1>;
587 compatible = "cfi-flash";
588 reg = <0x18000000 0x2000000>;