1 // SPDX-License-Identifier: GPL-2.0-or-later
5 #include <dt-bindings/clock/bcm6318-clock.h>
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8 #include <dt-bindings/interrupt-controller/bcm6318-interrupt-controller.h>
9 #include <dt-bindings/interrupt-controller/irq.h>
10 #include <dt-bindings/reset/bcm6318-reset.h>
11 #include <dt-bindings/soc/bcm6318-pm.h>
16 compatible = "brcm,bcm6318";
25 bootargs = "earlycon";
26 stdout-path = "serial0:115200n8";
30 periph_osc: periph-osc {
31 compatible = "fixed-clock";
35 clock-frequency = <50000000>;
36 clock-output-names = "periph";
39 hsspi_osc: hsspi-osc {
40 compatible = "fixed-clock";
44 clock-frequency = <250000000>;
45 clock-output-names = "hsspi_osc";
52 mips-hpt-frequency = <166500000>;
55 compatible = "brcm,bmips3300", "mips,mips4Kc";
61 cpu_intc: interrupt-controller {
63 compatible = "mti,cpu-interrupt-controller";
66 #interrupt-cells = <1>;
70 device_type = "memory";
78 compatible = "simple-bus";
81 periph_clk: clock-controller@10000004 {
82 compatible = "brcm,bcm6318-clocks";
83 reg = <0x10000004 0x4>;
87 ubus_clk: clock-controller@10000008 {
88 compatible = "brcm,bcm6318-ubus-clocks";
89 reg = <0x10000008 0x4>;
93 periph_rst: reset-controller@10000010 {
94 compatible = "brcm,bcm6345-reset";
95 reg = <0x10000010 0x4>;
99 ext_intc: interrupt-controller@10000018 {
100 #address-cells = <1>;
101 compatible = "brcm,bcm6318-ext-intc";
102 reg = <0x10000018 0x4>;
104 interrupt-controller;
105 #interrupt-cells = <2>;
107 interrupt-parent = <&periph_intc>;
108 interrupts = <BCM6318_IRQ_EXT0>,
114 periph_intc: interrupt-controller@10000020 {
115 #address-cells = <1>;
116 compatible = "brcm,bcm6345-l1-intc";
117 reg = <0x10000020 0x20>;
119 interrupt-controller;
120 #interrupt-cells = <1>;
122 interrupt-parent = <&cpu_intc>;
123 interrupts = <2>, <3>;
126 wdt: watchdog@10000068 {
127 compatible = "brcm,bcm7038-wdt";
128 reg = <0x10000068 0xc>;
130 clocks = <&periph_osc>;
135 pll_cntl: syscon@10000074 {
136 compatible = "syscon", "simple-mfd";
137 reg = <0x10000074 0x4>;
141 compatible = "syscon-reboot";
147 gpio_cntl: syscon@10000080 {
148 #address-cells = <1>;
150 compatible = "brcm,bcm6318-gpio-sysctl",
151 "syscon", "simple-mfd";
152 reg = <0x10000080 0x80>;
153 ranges = <0 0x10000080 0x80>;
157 compatible = "brcm,bcm6318-gpio";
158 reg-names = "dirout", "dat";
159 reg = <0x0 0x8>, <0x8 0x8>;
162 gpio-ranges = <&pinctrl 0 0 50>;
166 pinctrl: pinctrl@18 {
167 compatible = "brcm,bcm6318-pinctrl";
168 reg = <0x18 0x10>, <0x54 0x18>;
170 pinctrl_ephy0_spd_led: ephy0_spd_led-pins {
171 function = "ephy0_spd_led";
175 pinctrl_ephy1_spd_led: ephy1_spd_led-pins {
176 function = "ephy1_spd_led";
180 pinctrl_ephy2_spd_led: ephy2_spd_led-pins {
181 function = "ephy2_spd_led";
185 pinctrl_ephy3_spd_led: ephy3_spd_led-pins {
186 function = "ephy3_spd_led";
190 pinctrl_ephy0_act_led: ephy0_act_led-pins {
191 function = "ephy0_act_led";
195 pinctrl_ephy1_act_led: ephy1_act_led-pins {
196 function = "ephy1_act_led";
200 pinctrl_ephy2_act_led: ephy2_act_led-pins {
201 function = "ephy2_act_led";
205 pinctrl_ephy3_act_led: ephy3_act_led-pins {
206 function = "ephy3_act_led";
210 pinctrl_serial_led: serial_led-pins {
211 pinctrl_serial_led_data: serial_led_data-pins {
212 function = "serial_led_data";
216 pinctrl_serial_led_clk: serial_led_clk-pins {
217 function = "serial_led_clk";
222 pinctrl_inet_act_led: inet_act_led-pins {
223 function = "inet_act_led";
227 pinctrl_inet_fail_led: inet_fail_led-pins {
228 function = "inet_fail_led";
232 pinctrl_dsl_led: dsl_led-pins {
233 function = "dsl_led";
237 pinctrl_post_fail_led: post_fail_led-pins {
238 function = "post_fail_led";
242 pinctrl_wlan_wps_led: wlan_wps_led-pins {
243 function = "wlan_wps_led";
247 pinctrl_usb_pwron: usb_pwron-pins {
248 function = "usb_pwron";
252 pinctrl_usb_device_led: usb_device_led-pins {
253 function = "usb_device_led";
257 pinctrl_usb_active: usb_active-pins {
258 function = "usb_active";
264 uart0: serial@10000100 {
265 compatible = "brcm,bcm6345-uart";
266 reg = <0x10000100 0x18>;
268 interrupt-parent = <&periph_intc>;
269 interrupts = <BCM6318_IRQ_UART0>;
271 clocks = <&periph_osc>;
272 clock-names = "periph";
277 leds: led-controller@10000200 {
278 #address-cells = <1>;
280 compatible = "brcm,bcm6328-leds";
281 reg = <0x10000200 0x24>;
286 periph_pwr: power-controller@100008e8 {
287 compatible = "brcm,bcm6318-power-controller";
288 reg = <0x100008e8 0x4>;
290 #power-domain-cells = <1>;
293 hsspi: spi@10003000 {
294 #address-cells = <1>;
296 compatible = "brcm,bcm6328-hsspi";
297 reg = <0x10003000 0x600>;
299 interrupt-parent = <&periph_intc>;
300 interrupts = <BCM6318_IRQ_HSSPI>;
302 clocks = <&periph_clk BCM6318_CLK_HSSPI>,
304 clock-names = "hsspi",
307 resets = <&periph_rst BCM6318_RST_SPI>;
313 compatible = "brcm,bcm6318-ehci", "generic-ehci";
314 reg = <0x10005000 0x100>;
318 interrupt-parent = <&periph_intc>;
319 interrupts = <BCM6318_IRQ_EHCI>;
328 compatible = "brcm,bcm6318-ohci", "generic-ohci";
329 reg = <0x10005100 0x100>;
333 interrupt-parent = <&periph_intc>;
334 interrupts = <BCM6318_IRQ_OHCI>;
342 usbh: usb-phy@10005200 {
343 compatible = "brcm,bcm6318-usbh-phy";
344 reg = <0x10005200 0x38>;
348 clocks = <&periph_clk BCM6318_CLK_USBD>,
349 <&ubus_clk BCM6318_UCLK_USB>;
350 clock-names = "usbh",
353 power-domains = <&periph_pwr BCM6318_POWER_DOMAIN_USB>;
354 resets = <&periph_rst BCM6318_RST_USBH>;
359 pcie: pcie@10010000 {
360 compatible = "brcm,bcm6318-pcie";
361 reg = <0x10010000 0x10000>;
362 #address-cells = <3>;
366 bus-range = <0x00 0x01>;
367 ranges = <0x2000000 0 0x10200000 0x10200000 0 0x100000>;
368 linux,pci-probe-only = <1>;
370 interrupt-parent = <&periph_intc>;
371 interrupts = <BCM6318_IRQ_PCIE_RC>;
373 clocks = <&periph_clk BCM6318_CLK_PCIE>,
374 <&periph_clk BCM6318_CLK_PCIE25>,
375 <&ubus_clk BCM6318_UCLK_PCIE>;
376 clock-names = "pcie",
380 resets = <&periph_rst BCM6318_RST_PCIE>,
381 <&periph_rst BCM6318_RST_PCIE_EXT>,
382 <&periph_rst BCM6318_RST_PCIE_CORE>,
383 <&periph_rst BCM6318_RST_PCIE_HARD>;
384 reset-names = "pcie",
389 power-domains = <&periph_pwr BCM6318_POWER_DOMAIN_PCIE>;
394 switch0: switch@10080000 {
395 #address-cells = <1>;
397 compatible = "brcm,bcm6318-switch";
398 reg = <0x10080000 0x8000>;
402 #address-cells = <1>;
408 phy-mode = "internal";
409 ethernet = <ðernet>;
419 mdio: mdio@100800b0 {
420 #address-cells = <1>;
422 compatible = "brcm,bcm6368-mdio-mux";
423 reg = <0x100800b0 0x8>;
426 #address-cells = <1>;
430 phy1: ethernet-phy@1 {
431 compatible = "ethernet-phy-ieee802.3-c22";
435 phy2: ethernet-phy@2 {
436 compatible = "ethernet-phy-ieee802.3-c22";
440 phy3: ethernet-phy@3 {
441 compatible = "ethernet-phy-ieee802.3-c22";
445 phy4: ethernet-phy@4 {
446 compatible = "ethernet-phy-ieee802.3-c22";
452 #address-cells = <1>;
458 ethernet: ethernet@10088000 {
459 compatible = "brcm,bcm6318-enetsw";
460 reg = <0x10088000 0x80>,
467 interrupt-parent = <&periph_intc>;
468 interrupts = <BCM6318_IRQ_ENETSW_RX_DMA0>,
469 <BCM6318_IRQ_ENETSW_TX_DMA0>;
470 interrupt-names = "rx",
473 clocks = <&periph_clk BCM6318_CLK_ROBOSW250>,
474 <&periph_clk BCM6318_CLK_ROBOSW025>,
475 <&ubus_clk BCM6318_UCLK_ROBOSW>;
477 resets = <&periph_rst BCM6318_RST_ENETSW>,
478 <&periph_rst BCM6318_RST_EPHY>;
480 power-domains = <&periph_pwr BCM6318_POWER_DOMAIN_EPHY0>,
481 <&periph_pwr BCM6318_POWER_DOMAIN_EPHY1>,
482 <&periph_pwr BCM6318_POWER_DOMAIN_EPHY2>,
483 <&periph_pwr BCM6318_POWER_DOMAIN_EPHY3>;