1 // SPDX-License-Identifier: GPL-2.0-or-later
3 #include <dt-bindings/leds/common.h>
5 #include "bcm6328.dtsi"
8 model = "Sercomm AD1018";
9 compatible = "sercomm,ad1018", "brcm,bcm6328";
12 led-boot = &led_power_green;
13 led-failsafe = &led_power_green;
14 led-running = &led_power_green;
15 led-upgrade = &led_power_green;
19 compatible = "gpio-keys-polled";
20 poll-interval = <100>;
24 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_WPS_BUTTON>;
26 debounce-interval = <60>;
31 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_WLAN>;
33 debounce-interval = <60>;
38 gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
39 linux,code = <KEY_RESTART>;
40 debounce-interval = <60>;
45 compatible = "brcm,bcma-sprom";
50 nvmem-cells = <&macaddr_cferom_6a0 1>;
51 nvmem-cell-names = "mac-address";
53 brcm,sprom = "brcm/bcm43217-sprom.bin";
54 brcm,sprom-fixups = <6 0x1c00>,
81 nvmem-cells = <&macaddr_cferom_6a0 0>;
82 nvmem-cell-names = "mac-address";
88 pinctrl-names = "default";
89 pinctrl-0 = <&pinctrl_leds &pinctrl_serial_led
90 &pinctrl_ephy0_spd_led &pinctrl_ephy1_act_led
91 &pinctrl_ephy2_act_led &pinctrl_ephy3_act_led>;
94 brcm,serial-shift-inv;
100 label = "red:internet";
106 label = "green:internet";
109 led_power_green: led@8 {
112 function = LED_FUNCTION_POWER;
113 color = <LED_COLOR_ID_GREEN>;
114 default-state = "on";
120 label = "green:adsl";
132 label = "green:phone";
138 function = LED_FUNCTION_WPS;
139 color = <LED_COLOR_ID_GREEN>;
145 label = "green:wifi";
151 function = LED_FUNCTION_USB;
152 color = <LED_COLOR_ID_GREEN>;
158 brcm,hardware-controlled;
173 pins = "gpio0", "gpio1";
181 compatible = "brcm,nandcs";
183 nand-ecc-step-size = <512>;
184 nand-ecc-strength = <15>;
187 #address-cells = <1>;
191 compatible = "fixed-partitions";
192 #address-cells = <1>;
197 reg = <0x0000000 0x0020000>;
201 compatible = "fixed-layout";
202 #address-cells = <1>;
205 macaddr_cferom_6a0: macaddr@6a0 {
206 compatible = "mac-base";
208 #nvmem-cell-cells = <1>;
215 reg = <0x0020000 0x00a0000>;
221 reg = <0x00c0000 0x0140000>;
227 reg = <0x0200000 0x0140000>;
233 reg = <0x0340000 0x00a0000>;
239 reg = <0x03e0000 0x0140000>;
245 reg = <0x6920000 0x0140000>;
251 reg = <0x6a60000 0x0140000>;
256 compatible = "sercomm,wfi";
258 reg = <0x0520000 0x6400000>;
263 reg = <0x6ba0000 0x0280000>;
269 reg = <0x6e20000 0x0280000>;
282 phy-handle = <&phy1>;
290 phy-handle = <&phy2>;
298 phy-handle = <&phy3>;
306 phy-handle = <&phy4>;