1 // SPDX-License-Identifier: GPL-2.0-or-later
3 #include "bcm6362.dtsi"
6 model = "Huawei HG253s v2";
7 compatible = "huawei,hg253s-v2", "brcm,bcm6362";
10 led-boot = &led_phone_green;
11 led-failsafe = &led_phone_green;
12 led-upgrade = &led_phone_green;
16 compatible = "gpio-keys-polled";
17 poll-interval = <100>;
21 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
22 linux,code = <KEY_RESTART>;
23 debounce-interval = <60>;
28 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_WLAN>;
30 debounce-interval = <60>;
35 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_WPS_BUTTON>;
37 debounce-interval = <60>;
42 compatible = "gpio-leds";
44 led_phone_green: led@28 {
45 label = "green:phone";
46 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
50 function = LED_FUNCTION_USB;
51 color = <LED_COLOR_ID_GREEN>;
52 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
64 nvmem-cells = <&macaddr_cferom_6a0>;
65 nvmem-cell-names = "mac-address";
71 pinctrl-names = "default";
72 pinctrl-0 = <&pinctrl_leds>;
77 label = "green:internet";
91 compatible = "brcm,bcm53125";
93 spi-max-frequency = <781000>;
125 ethernet = <&switch0port4>;
139 phy24: ethernet-phy@18 {
140 compatible = "ethernet-phy-ieee802.3-c22";
149 compatible = "brcm,nandcs";
151 nand-ecc-step-size = <512>;
152 nand-ecc-strength = <15>;
154 brcm,nand-oob-sector-size = <64>;
156 #address-cells = <1>;
160 compatible = "fixed-partitions";
161 #address-cells = <1>;
166 reg = <0x0000000 0x0020000>;
170 compatible = "fixed-layout";
171 #address-cells = <1>;
174 macaddr_cferom_6a0: macaddr@6a0 {
181 compatible = "brcm,wfi";
183 reg = <0x0020000 0x7d80000>;
188 reg = <0x7da0000 0x160000>;
201 pins = "gpio3", "gpio5";
209 switch0port4: port@4 {
225 phy-handle = <&phy24>;
226 phy-mode = "rgmii-txid";