1 // SPDX-License-Identifier: GPL-2.0-or-later
5 #include <dt-bindings/clock/bcm6328-clock.h>
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8 #include <dt-bindings/interrupt-controller/bcm6328-interrupt-controller.h>
9 #include <dt-bindings/reset/bcm6328-reset.h>
10 #include <dt-bindings/soc/bcm6328-pm.h>
15 compatible = "brcm,bcm6328";
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";
40 hsspi_osc: hsspi-osc {
41 compatible = "fixed-clock";
45 clock-frequency = <133333333>;
46 clock-output-names = "hsspi_osc";
53 mips-hpt-frequency = <160000000>;
56 compatible = "brcm,bmips4350", "mips,mips4Kc";
62 compatible = "brcm,bmips4350", "mips,mips4Kc";
68 cpu_intc: interrupt-controller {
70 compatible = "mti,cpu-interrupt-controller";
73 #interrupt-cells = <1>;
77 device_type = "memory";
85 compatible = "simple-bus";
88 periph_clk: clock-controller@10000004 {
89 compatible = "brcm,bcm6328-clocks";
90 reg = <0x10000004 0x4>;
94 periph_rst: reset-controller@10000010 {
95 compatible = "brcm,bcm6345-reset";
96 reg = <0x10000010 0x4>;
100 ext_intc: interrupt-controller@10000018 {
101 #address-cells = <1>;
102 compatible = "brcm,bcm6345-ext-intc";
103 reg = <0x10000018 0x4>;
105 interrupt-controller;
106 #interrupt-cells = <2>;
108 interrupts = <BCM6328_IRQ_EXTO>,
114 periph_intc: interrupt-controller@10000020 {
115 #address-cells = <1>;
116 compatible = "brcm,bcm6345-l1-intc";
117 reg = <0x10000020 0x10>,
120 interrupt-controller;
121 #interrupt-cells = <1>;
123 interrupt-parent = <&cpu_intc>;
124 interrupts = <2>, <3>;
127 wdt: watchdog@1000005c {
128 compatible = "brcm,bcm7038-wdt";
129 reg = <0x1000005c 0xc>;
131 clocks = <&periph_osc>;
136 pll_cntl: syscon@10000068 {
137 compatible = "syscon", "simple-mfd";
138 reg = <0x10000068 0x4>;
142 compatible = "syscon-reboot";
148 gpio_cntl: syscon@10000080 {
149 compatible = "brcm,bcm6328-gpio-sysctl",
150 "syscon", "simple-mfd";
151 reg = <0x10000080 0x80>;
152 ranges = <0 0x10000080 0x80>;
156 compatible = "brcm,bcm6328-gpio";
157 reg-names = "dirout", "dat";
158 reg = <0x0 0x8>, <0x8 0x8>;
161 gpio-ranges = <&pinctrl 0 0 32>;
165 pinctrl: pinctrl@18 {
166 compatible = "brcm,bcm6328-pinctrl";
169 pinctrl_serial_led: serial_led-pins {
170 pinctrl_serial_led_data: serial_led_data-pins {
171 function = "serial_led_data";
175 pinctrl_serial_led_clk: serial_led_clk-pins {
176 function = "serial_led_clk";
181 pinctrl_inet_act_led: inet_act_led-pins {
182 function = "inet_act_led";
186 pinctrl_pcie_clkreq: pcie_clkreq-pins {
187 function = "pcie_clkreq";
191 pinctrl_ephy0_spd_led: ephy0_spd_led-pins {
196 pinctrl_ephy1_spd_led: ephy1_spd_led-pins {
201 pinctrl_ephy2_spd_led: ephy2_spd_led-pins {
206 pinctrl_ephy3_spd_led: ephy3_spd_led-pins {
211 pinctrl_ephy0_act_led: ephy0_act_led-pins {
212 function = "ephy0_act_led";
216 pinctrl_ephy1_act_led: ephy1_act_led-pins {
217 function = "ephy1_act_led";
221 pinctrl_ephy2_act_led: ephy2_act_led-pins {
222 function = "ephy2_act_led";
226 pinctrl_ephy3_act_led: ephy3_act_led-pins {
227 function = "ephy3_act_led";
231 pinctrl_hsspi_cs1: hsspi_cs1-pins {
232 function = "hsspi_cs1";
236 pinctrl_usb_port1_device: usb_port1_device-pins {
237 function = "usb_device_port";
241 pinctrl_usb_port1_host: usb_port1_host-pins {
242 function = "usb_host_port";
248 uart0: serial@10000100 {
249 compatible = "brcm,bcm6345-uart";
250 reg = <0x10000100 0x18>;
252 interrupt-parent = <&periph_intc>;
253 interrupts = <BCM6328_IRQ_UART0>;
255 clocks = <&periph_osc>;
256 clock-names = "periph";
261 uart1: serial@10000120 {
262 compatible = "brcm,bcm6345-uart";
263 reg = <0x10000120 0x18>;
265 interrupt-parent = <&periph_intc>;
266 interrupts = <BCM6328_IRQ_UART1>;
268 clocks = <&periph_osc>;
269 clock-names = "periph";
274 nflash: nand@10000200 {
275 #address-cells = <1>;
277 compatible = "brcm,nand-bcm6368",
278 "brcm,brcmnand-v2.2",
280 reg = <0x10000200 0x180>,
287 interrupt-parent = <&periph_intc>;
288 interrupts = <BCM6328_IRQ_NAND>;
293 leds: led-controller@10000800 {
294 #address-cells = <1>;
296 compatible = "brcm,bcm6328-leds";
297 reg = <0x10000800 0x24>;
302 hsspi: spi@10001000 {
303 #address-cells = <1>;
305 compatible = "brcm,bcm6328-hsspi";
306 reg = <0x10001000 0x600>;
308 interrupt-parent = <&periph_intc>;
309 interrupts = <BCM6328_IRQ_HSSPI>;
311 clocks = <&periph_clk BCM6328_CLK_HSSPI>,
313 clock-names = "hsspi",
316 resets = <&periph_rst BCM6328_RST_SPI>;
321 serdes_cntl: syscon@10001800 {
322 compatible = "syscon";
323 reg = <0x10001800 0x4>;
327 periph_pwr: power-controller@10001848 {
328 compatible = "brcm,bcm6328-power-controller";
329 reg = <0x10001848 0x4>;
331 #power-domain-cells = <1>;
335 compatible = "brcm,bcm6328-ehci", "generic-ehci";
336 reg = <0x10002500 0x100>;
340 interrupt-parent = <&periph_intc>;
341 interrupts = <BCM6328_IRQ_EHCI>;
350 compatible = "brcm,bcm6328-ohci", "generic-ohci";
351 reg = <0x10002600 0x100>;
355 interrupt-parent = <&periph_intc>;
356 interrupts = <BCM6328_IRQ_OHCI>;
364 usbh: usb-phy@10002700 {
365 compatible = "brcm,bcm6328-usbh-phy";
366 reg = <0x10002700 0x38>;
370 clocks = <&periph_clk BCM6328_CLK_USBH>;
371 clock-names = "usbh";
373 power-domains = <&periph_pwr BCM6328_POWER_DOMAIN_USBH>;
374 resets = <&periph_rst BCM6328_RST_USBH>;
379 ethernet: ethernet@1000d800 {
380 compatible = "brcm,bcm6328-enetsw";
381 reg = <0x1000d800 0x80>,
388 interrupt-parent = <&periph_intc>;
389 interrupts = <BCM6328_IRQ_ENETSW_RX_DMA0>,
390 <BCM6328_IRQ_ENETSW_TX_DMA0>;
391 interrupt-names = "rx",
394 clocks = <&periph_clk BCM6328_CLK_ROBOSW>;
396 resets = <&periph_rst BCM6328_RST_ENETSW>,
397 <&periph_rst BCM6328_RST_EPHY>;
399 power-domains = <&periph_pwr BCM6328_POWER_DOMAIN_ROBOSW>,
400 <&periph_pwr BCM6328_POWER_DOMAIN_EPHY>;
408 switch0: switch@10e00000 {
409 #address-cells = <1>;
411 compatible = "brcm,bcm6328-switch";
412 reg = <0x10e00000 0x8000>;
416 #address-cells = <1>;
423 phy-mode = "internal";
424 ethernet = <ðernet>;
434 mdio: mdio@10e000b0 {
435 #address-cells = <1>;
437 compatible = "brcm,bcm6368-mdio-mux";
438 reg = <0x10e000b0 0x8>;
441 #address-cells = <1>;
445 phy1: ethernet-phy@1 {
446 compatible = "ethernet-phy-ieee802.3-c22";
450 phy2: ethernet-phy@2 {
451 compatible = "ethernet-phy-ieee802.3-c22";
455 phy3: ethernet-phy@3 {
456 compatible = "ethernet-phy-ieee802.3-c22";
460 phy4: ethernet-phy@4 {
461 compatible = "ethernet-phy-ieee802.3-c22";
467 #address-cells = <1>;
473 pcie: pcie@10e40000 {
474 compatible = "brcm,bcm6328-pcie";
475 reg = <0x10e40000 0x10000>;
476 #address-cells = <3>;
480 bus-range = <0x00 0x01>;
481 ranges = <0x2000000 0 0x10f00000 0x10f00000 0 0x100000>;
482 linux,pci-probe-only = <1>;
484 interrupt-parent = <&periph_intc>;
485 interrupts = <BCM6328_IRQ_PCIE_RC>;
487 clocks = <&periph_clk BCM6328_CLK_PCIE>;
488 clock-names = "pcie";
490 resets = <&periph_rst BCM6328_RST_PCIE>,
491 <&periph_rst BCM6328_RST_PCIE_EXT>,
492 <&periph_rst BCM6328_RST_PCIE_CORE>,
493 <&periph_rst BCM6328_RST_PCIE_HARD>;
494 reset-names = "pcie",
499 power-domains = <&periph_pwr BCM6328_POWER_DOMAIN_PCIE>;
501 brcm,serdes = <&serdes_cntl>;