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-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
20 compatible = "cfi-flash";
21 reg = <0x1f000000 0x1000000>;
26 compatible = "fixed-partitions";
38 reg = <0x40000 0x20000>;
42 factory: partition@60000 {
44 reg = <0x60000 0x20000>;
49 compatible = "denx,uimage";
51 reg = <0x80000 0xf60000>;
55 label = "factory-orig";
56 reg = <0xfa0000 0x20000>;
63 compatible = "gpio-leds";
66 label = "hg255d:green:power";
67 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
71 label = "hg255d:green:internet";
72 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
76 label = "hg255d:green:wlan";
77 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
81 label = "hg255d:green:usb";
82 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
83 trigger-sources = <&otg_port1>;
84 linux,default-trigger = "usbport";
88 label = "hg255d:green:wps";
89 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
93 label = "hg255d:green:voice";
94 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
99 compatible = "gpio-keys-polled";
100 poll-interval = <10>;
104 gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
105 linux,code = <KEY_RESTART>;
110 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
111 linux,code = <KEY_WPS_BUTTON>;
116 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
117 linux,code = <KEY_RFKILL>;
123 state_default: pinctrl0 {
125 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
126 ralink,function = "gpio";
132 mtd-mac-address = <&factory 0x28>;
136 mediatek,portmap = <0x2f>;
140 ralink,mtd-eeprom = <&factory 0>;