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/reset/bcm6318-reset.h>
10 #include <dt-bindings/soc/bcm6318-pm.h>
15 compatible = "brcm,bcm6318";
24 bootargs = "earlycon";
25 stdout-path = "serial0:115200n8";
29 periph_osc: periph-osc {
30 compatible = "fixed-clock";
34 clock-frequency = <50000000>;
35 clock-output-names = "periph";
38 hsspi_osc: hsspi-osc {
39 compatible = "fixed-clock";
43 clock-frequency = <250000000>;
44 clock-output-names = "hsspi_osc";
51 mips-hpt-frequency = <166500000>;
54 compatible = "brcm,bmips3300", "mips,mips4Kc";
60 cpu_intc: interrupt-controller {
62 compatible = "mti,cpu-interrupt-controller";
65 #interrupt-cells = <1>;
69 device_type = "memory";
77 compatible = "simple-bus";
80 periph_clk: clock-controller@10000004 {
81 compatible = "brcm,bcm6318-clocks";
82 reg = <0x10000004 0x4>;
86 ubus_clk: clock-controller@10000008 {
87 compatible = "brcm,bcm6318-ubus-clocks";
88 reg = <0x10000008 0x4>;
92 periph_rst: reset-controller@10000010 {
93 compatible = "brcm,bcm6345-reset";
94 reg = <0x10000010 0x4>;
98 ext_intc: interrupt-controller@10000018 {
100 compatible = "brcm,bcm6318-ext-intc";
101 reg = <0x10000018 0x4>;
103 interrupt-controller;
104 #interrupt-cells = <2>;
106 interrupt-parent = <&periph_intc>;
107 interrupts = <BCM6318_IRQ_EXT0>,
113 periph_intc: interrupt-controller@10000020 {
114 #address-cells = <1>;
115 compatible = "brcm,bcm6345-l1-intc";
116 reg = <0x10000020 0x20>;
118 interrupt-controller;
119 #interrupt-cells = <1>;
121 interrupt-parent = <&cpu_intc>;
122 interrupts = <2>, <3>;
125 wdt: watchdog@10000068 {
126 compatible = "brcm,bcm7038-wdt";
127 reg = <0x10000068 0xc>;
129 clocks = <&periph_osc>;
134 pll_cntl: syscon@10000074 {
135 compatible = "syscon", "simple-mfd";
136 reg = <0x10000074 0x4>;
140 compatible = "syscon-reboot";
146 gpio_cntl: syscon@10000080 {
147 #address-cells = <1>;
149 compatible = "brcm,bcm6318-gpio-sysctl",
150 "syscon", "simple-mfd";
151 reg = <0x10000080 0x80>;
152 ranges = <0 0x10000080 0x80>;
156 compatible = "brcm,bcm6318-gpio";
157 reg-names = "dirout", "dat";
158 reg = <0x0 0x8>, <0x8 0x8>;
161 gpio-ranges = <&pinctrl 0 0 50>;
165 pinctrl: pinctrl@18 {
166 compatible = "brcm,bcm6318-pinctrl";
167 reg = <0x18 0x10>, <0x54 0x18>;
169 pinctrl_ephy0_spd_led: ephy0_spd_led-pins {
170 function = "ephy0_spd_led";
174 pinctrl_ephy1_spd_led: ephy1_spd_led-pins {
175 function = "ephy1_spd_led";
179 pinctrl_ephy2_spd_led: ephy2_spd_led-pins {
180 function = "ephy2_spd_led";
184 pinctrl_ephy3_spd_led: ephy3_spd_led-pins {
185 function = "ephy3_spd_led";
189 pinctrl_ephy0_act_led: ephy0_act_led-pins {
190 function = "ephy0_act_led";
194 pinctrl_ephy1_act_led: ephy1_act_led-pins {
195 function = "ephy1_act_led";
199 pinctrl_ephy2_act_led: ephy2_act_led-pins {
200 function = "ephy2_act_led";
204 pinctrl_ephy3_act_led: ephy3_act_led-pins {
205 function = "ephy3_act_led";
209 pinctrl_serial_led: serial_led-pins {
210 pinctrl_serial_led_data: serial_led_data-pins {
211 function = "serial_led_data";
215 pinctrl_serial_led_clk: serial_led_clk-pins {
216 function = "serial_led_clk";
221 pinctrl_inet_act_led: inet_act_led-pins {
222 function = "inet_act_led";
226 pinctrl_inet_fail_led: inet_fail_led-pins {
227 function = "inet_fail_led";
231 pinctrl_dsl_led: dsl_led-pins {
232 function = "dsl_led";
236 pinctrl_post_fail_led: post_fail_led-pins {
237 function = "post_fail_led";
241 pinctrl_wlan_wps_led: wlan_wps_led-pins {
242 function = "wlan_wps_led";
246 pinctrl_usb_pwron: usb_pwron-pins {
247 function = "usb_pwron";
251 pinctrl_usb_device_led: usb_device_led-pins {
252 function = "usb_device_led";
256 pinctrl_usb_active: usb_active-pins {
257 function = "usb_active";
263 uart0: serial@10000100 {
264 compatible = "brcm,bcm6345-uart";
265 reg = <0x10000100 0x18>;
267 interrupt-parent = <&periph_intc>;
268 interrupts = <BCM6318_IRQ_UART0>;
270 clocks = <&periph_osc>;
271 clock-names = "periph";
276 leds: led-controller@10000200 {
277 #address-cells = <1>;
279 compatible = "brcm,bcm6328-leds";
280 reg = <0x10000200 0x24>;
285 periph_pwr: power-controller@100008e8 {
286 compatible = "brcm,bcm6318-power-controller";
287 reg = <0x100008e8 0x4>;
289 #power-domain-cells = <1>;
292 hsspi: spi@10003000 {
293 #address-cells = <1>;
295 compatible = "brcm,bcm6328-hsspi";
296 reg = <0x10003000 0x600>;
298 interrupt-parent = <&periph_intc>;
299 interrupts = <BCM6318_IRQ_HSSPI>;
301 clocks = <&periph_clk BCM6318_CLK_HSSPI>,
303 clock-names = "hsspi",
306 resets = <&periph_rst BCM6318_RST_SPI>;
312 compatible = "brcm,bcm6318-ehci", "generic-ehci";
313 reg = <0x10005000 0x100>;
317 interrupt-parent = <&periph_intc>;
318 interrupts = <BCM6318_IRQ_EHCI>;
327 compatible = "brcm,bcm6318-ohci", "generic-ohci";
328 reg = <0x10005100 0x100>;
332 interrupt-parent = <&periph_intc>;
333 interrupts = <BCM6318_IRQ_OHCI>;
341 usbh: usb-phy@10005200 {
342 compatible = "brcm,bcm6318-usbh-phy";
343 reg = <0x10005200 0x38>;
347 clocks = <&periph_clk BCM6318_CLK_USBD>,
348 <&ubus_clk BCM6318_UCLK_USB>;
349 clock-names = "usbh",
352 power-domains = <&periph_pwr BCM6318_POWER_DOMAIN_USB>;
353 resets = <&periph_rst BCM6318_RST_USBH>;
358 pcie: pcie@10010000 {
359 compatible = "brcm,bcm6318-pcie";
360 reg = <0x10010000 0x10000>;
361 #address-cells = <3>;
365 bus-range = <0x00 0x01>;
366 ranges = <0x2000000 0 0x10200000 0x10200000 0 0x100000>;
367 linux,pci-probe-only = <1>;
369 interrupt-parent = <&periph_intc>;
370 interrupts = <BCM6318_IRQ_PCIE_RC>;
372 clocks = <&periph_clk BCM6318_CLK_PCIE>,
373 <&periph_clk BCM6318_CLK_PCIE25>,
374 <&ubus_clk BCM6318_UCLK_PCIE>;
375 clock-names = "pcie",
379 resets = <&periph_rst BCM6318_RST_PCIE>,
380 <&periph_rst BCM6318_RST_PCIE_EXT>,
381 <&periph_rst BCM6318_RST_PCIE_CORE>,
382 <&periph_rst BCM6318_RST_PCIE_HARD>;
383 reset-names = "pcie",
388 power-domains = <&periph_pwr BCM6318_POWER_DOMAIN_PCIE>;
393 switch0: switch@10080000 {
394 #address-cells = <1>;
396 compatible = "brcm,bcm6328-switch";
397 reg = <0x10080000 0x8000>;
401 #address-cells = <1>;
407 phy-mode = "internal";
408 ethernet = <ðernet>;
418 mdio: mdio@100800b0 {
419 #address-cells = <1>;
421 compatible = "brcm,bcm6368-mdio-mux";
422 reg = <0x100800b0 0x8>;
425 #address-cells = <1>;
429 phy1: ethernet-phy@1 {
430 compatible = "ethernet-phy-ieee802.3-c22";
434 phy2: ethernet-phy@2 {
435 compatible = "ethernet-phy-ieee802.3-c22";
439 phy3: ethernet-phy@3 {
440 compatible = "ethernet-phy-ieee802.3-c22";
444 phy4: ethernet-phy@4 {
445 compatible = "ethernet-phy-ieee802.3-c22";
451 #address-cells = <1>;
457 ethernet: ethernet@10088000 {
458 compatible = "brcm,bcm6318-enetsw";
459 reg = <0x10088000 0x80>,
466 interrupt-parent = <&periph_intc>;
467 interrupts = <BCM6318_IRQ_ENETSW_RX_DMA0>,
468 <BCM6318_IRQ_ENETSW_TX_DMA0>;
469 interrupt-names = "rx",
472 clocks = <&periph_clk BCM6318_CLK_ROBOSW250>,
473 <&periph_clk BCM6318_CLK_ROBOSW025>,
474 <&ubus_clk BCM6318_UCLK_ROBOSW>;
476 resets = <&periph_rst BCM6318_RST_ENETSW>,
477 <&periph_rst BCM6318_RST_EPHY>;
479 power-domains = <&periph_pwr BCM6318_POWER_DOMAIN_EPHY0>,
480 <&periph_pwr BCM6318_POWER_DOMAIN_EPHY1>,
481 <&periph_pwr BCM6318_POWER_DOMAIN_EPHY2>,
482 <&periph_pwr BCM6318_POWER_DOMAIN_EPHY3>;