1 // SPDX-License-Identifier: GPL-2.0-or-later
3 #include "bcm6318.dtsi"
6 model = "Comtrend AR-5315u";
7 compatible = "comtrend,ar-5315u", "brcm,bcm6318";
10 led-boot = &led_power_green;
11 led-failsafe = &led_power_red;
12 led-running = &led_power_green;
13 led-upgrade = &led_power_green;
17 compatible = "gpio-keys-polled";
18 poll-interval = <100>;
22 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_WPS_BUTTON>;
24 debounce-interval = <60>;
29 gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
31 debounce-interval = <60>;
36 compatible = "brcm,bcma-sprom";
41 nvmem-cells = <&macaddr_cfe_6a0 1>;
42 nvmem-cell-names = "mac-address";
44 brcm,sprom = "brcm/bcm43217-sprom.bin";
45 brcm,sprom-fixups = <6 0x1c00>,
66 nvmem-cells = <&macaddr_cfe_6a0 0>;
67 nvmem-cell-names = "mac-address";
74 compatible = "jedec,spi-nor";
75 spi-max-frequency = <62500000>;
76 spi-tx-bus-width = <2>;
77 spi-rx-bus-width = <2>;
84 compatible = "fixed-partitions";
89 reg = <0x000000 0x010000>;
94 compatible = "fixed-layout";
98 macaddr_cfe_6a0: macaddr@6a0 {
99 compatible = "mac-base";
101 #nvmem-cell-cells = <1>;
107 compatible = "brcm,bcm963xx-imagetag";
108 reg = <0x010000 0xfe0000>;
113 reg = <0xff0000 0x010000>;
123 pinctrl-names = "default";
124 pinctrl-0 = <&pinctrl_leds
125 &pinctrl_ephy0_act_led &pinctrl_ephy1_act_led
126 &pinctrl_ephy2_act_led &pinctrl_ephy3_act_led>;
131 function = LED_FUNCTION_WPS;
132 color = <LED_COLOR_ID_GREEN>;
135 led_power_green: led@1 {
138 function = LED_FUNCTION_POWER;
139 color = <LED_COLOR_ID_GREEN>;
145 function = LED_FUNCTION_USB;
146 color = <LED_COLOR_ID_GREEN>;
152 brcm,hardware-controlled;
153 brcm,link-signal-sources = <4>;
159 brcm,hardware-controlled;
160 brcm,link-signal-sources = <5>;
166 brcm,hardware-controlled;
167 brcm,link-signal-sources = <6>;
173 brcm,hardware-controlled;
174 brcm,link-signal-sources = <7>;
180 label = "green:internet";
186 label = "red:internet";
195 led_power_red: led@11 {
198 function = LED_FUNCTION_POWER;
199 color = <LED_COLOR_ID_RED>;
215 pins = "gpio0", "gpio1",
228 phy-handle = <&phy1>;
236 phy-handle = <&phy2>;
244 phy-handle = <&phy3>;
252 phy-handle = <&phy4>;