5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "elecom,wrc-1167ghbk2-s", "mediatek,mt7621-soc";
10 model = "ELECOM WRC-1167GHBK2-S";
13 led-status = &led_power_green;
17 device_type = "memory";
18 reg = <0x0 0x8000000>;
22 bootargs = "console=ttyS0,57600";
26 compatible = "gpio-leds";
29 label = "wrc-1167ghbk2-s:white:wlan2g";
30 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
34 label = "wrc-1167ghbk2-s:white:wlan5g";
35 gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
38 led_power_green: power_green {
39 label = "wrc-1167ghbk2-s:green:power";
40 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
44 label = "wrc-1167ghbk2-s:blue:power";
45 gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
49 label = "wrc-1167ghbk2-s:red:wps";
50 gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
54 label = "wrc-1167ghbk2-s:red:power";
55 gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
60 compatible = "gpio-keys-polled";
65 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
66 linux,code = <KEY_RESTART>;
71 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
72 linux,code = <KEY_WPS_BUTTON>;
78 mtd-mac-address = <&factory 0xe000>;
87 compatible = "jedec,spi-nor";
89 spi-max-frequency = <10000000>;
90 m25p,chunked-io = <32>;
100 reg = <0x30000 0x10000>;
104 factory: partition@40000 {
106 reg = <0x40000 0x10000>;
112 reg = <0x50000 0xf20000>;
117 reg = <0xf70000 0x80000>;
123 reg = <0xff0000 0x10000>;
130 state_default: pinctrl0 {
132 ralink,group = "i2c", "uart3", "jtag", "wdt";
133 ralink,function = "gpio";
140 // WRC-1167GHBK2-S has MT7615D for 2.4/5 GHz wifi,
141 // but it's not supported in OpenWrt.