5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "huawei,hg255d", "ralink,rt3052-soc";
10 model = "HuaWei HG255D";
13 led-status = &led_power;
17 compatible = "cfi-flash";
18 reg = <0x1f000000 0x1000000>;
23 compatible = "fixed-partitions";
35 reg = <0x40000 0x20000>;
39 factory: partition@60000 {
41 reg = <0x60000 0x20000>;
47 reg = <0x80000 0xf60000>;
51 label = "factory-orig";
52 reg = <0xfa0000 0x20000>;
59 compatible = "gpio-leds";
62 label = "hg255d:green:power";
63 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
67 label = "hg255d:green:internet";
68 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
72 label = "hg255d:green:wlan";
73 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
77 label = "hg255d:green:usb";
78 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
82 label = "hg255d:green:wps";
83 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
87 label = "hg255d:green:voice";
88 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
93 compatible = "gpio-keys-polled";
98 gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
99 linux,code = <KEY_RESTART>;
104 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
105 linux,code = <KEY_WPS_BUTTON>;
110 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
111 linux,code = <KEY_RFKILL>;
117 state_default: pinctrl0 {
119 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
120 ralink,function = "gpio";
126 mtd-mac-address = <&factory 0x28>;
130 mediatek,portmap = <0x2f>;
134 ralink,mtd-eeprom = <&factory 0>;