1 // SPDX-License-Identifier: GPL-2.0-or-later
3 #include <dt-bindings/leds/common.h>
5 #include "bcm6362.dtsi"
8 model = "Huawei HG253s v2";
9 compatible = "huawei,hg253s-v2", "brcm,bcm6362";
12 led-boot = &led_phone_green;
13 led-failsafe = &led_phone_green;
14 led-upgrade = &led_phone_green;
18 compatible = "gpio-keys-polled";
19 poll-interval = <100>;
23 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
24 linux,code = <KEY_RESTART>;
25 debounce-interval = <60>;
30 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_WLAN>;
32 debounce-interval = <60>;
37 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_WPS_BUTTON>;
39 debounce-interval = <60>;
44 compatible = "gpio-leds";
46 led_phone_green: led@28 {
47 label = "green:phone";
48 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
52 function = LED_FUNCTION_USB;
53 color = <LED_COLOR_ID_GREEN>;
54 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
66 nvmem-cells = <&macaddr_cferom_6a0>;
67 nvmem-cell-names = "mac-address";
73 pinctrl-names = "default";
74 pinctrl-0 = <&pinctrl_leds>;
79 label = "green:internet";
93 compatible = "brcm,bcm53125";
95 spi-max-frequency = <781000>;
100 #address-cells = <1>;
127 ethernet = <&switch0port4>;
141 phy24: ethernet-phy@18 {
142 compatible = "ethernet-phy-ieee802.3-c22";
151 compatible = "brcm,nandcs";
153 nand-ecc-step-size = <512>;
154 nand-ecc-strength = <15>;
156 brcm,nand-oob-sector-size = <64>;
158 #address-cells = <1>;
162 compatible = "fixed-partitions";
163 #address-cells = <1>;
168 reg = <0x0000000 0x0020000>;
172 compatible = "fixed-layout";
173 #address-cells = <1>;
176 macaddr_cferom_6a0: macaddr@6a0 {
183 compatible = "brcm,wfi";
185 reg = <0x0020000 0x7d80000>;
190 reg = <0x7da0000 0x160000>;
203 pins = "gpio3", "gpio5";
211 switch0port4: port@4 {
227 phy-handle = <&phy24>;
228 phy-mode = "rgmii-txid";