3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
8 compatible = "elecom,wrc-1167ghbk2-s", "mediatek,mt7621-soc";
9 model = "ELECOM WRC-1167GHBK2-S";
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-leds";
22 label = "white:wlan2g";
23 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
24 linux,default-trigger = "phy0radio";
28 label = "white:wlan5g";
29 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
32 led_power_green: power_green {
33 function = LED_FUNCTION_POWER;
34 color = <LED_COLOR_ID_GREEN>;
35 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
39 function = LED_FUNCTION_POWER;
40 color = <LED_COLOR_ID_BLUE>;
41 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
45 function = LED_FUNCTION_WPS;
46 color = <LED_COLOR_ID_RED>;
47 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
51 function = LED_FUNCTION_POWER;
52 color = <LED_COLOR_ID_RED>;
53 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
58 compatible = "gpio-keys";
62 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
63 linux,code = <KEY_RESTART>;
68 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
69 linux,code = <KEY_WPS_BUTTON>;
75 nvmem-cells = <&macaddr_factory_e000 0>;
76 nvmem-cell-names = "mac-address";
82 phy-handle = <ðphy0>;
84 nvmem-cells = <&macaddr_factory_e006>;
85 nvmem-cell-names = "mac-address";
89 ethphy0: ethernet-phy@0 {
122 compatible = "jedec,spi-nor";
124 spi-max-frequency = <10000000>;
127 compatible = "fixed-partitions";
128 #address-cells = <1>;
138 label = "u-boot-env";
139 reg = <0x30000 0x10000>;
143 factory: partition@40000 {
145 reg = <0x40000 0x10000>;
149 compatible = "fixed-layout";
150 #address-cells = <1>;
153 eeprom_factory_0: eeprom@0 {
157 macaddr_factory_e000: macaddr@e000 {
158 compatible = "mac-base";
160 #nvmem-cell-cells = <1>;
163 macaddr_factory_e006: macaddr@e006 {
170 compatible = "denx,uimage";
172 reg = <0x50000 0xf20000>;
177 reg = <0xf70000 0x80000>;
183 reg = <0xff0000 0x10000>;
192 groups = "i2c", "uart3", "jtag", "wdt";
203 compatible = "mediatek,mt76";
204 reg = <0x0000 0 0 0 0>;
205 nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_e000 1>;
206 nvmem-cell-names = "eeprom", "mac-address";