5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "tplink,re350-v1", "mediatek,mt7621-soc";
10 model = "TP-LINK RE350 v1";
13 device_type = "memory";
14 reg = <0x0 0x4000000>;
18 bootargs = "console=ttyS0,57600";
22 compatible = "gpio-leds";
25 label = "re350-v1:blue:power";
26 gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
30 label = "re350-v1:blue:wifi2G";
31 gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
35 label = "re350-v1:blue:wifi5G";
36 gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
40 label = "re350-v1:red:wps";
41 gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
45 label = "re350-v1:blue:wps";
46 gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>;
50 label = "re350-v1:green:eth_act";
51 gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
55 label = "re350-v1:green:eth_link";
56 gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
61 compatible = "gpio-keys-polled";
68 gpios = <&gpio0 30 GPIO_ACTIVE_LOW>;
74 gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;
75 linux,code = <KEY_RESTART>;
80 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
81 linux,code = <KEY_POWER>;
86 gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
87 linux,code = <KEY_WPS_BUTTON>;
98 compatible = "jedec,spi-nor";
100 spi-max-frequency = <10000000>;
101 m25p,chunked-io = <32>;
111 reg = <0x20000 0x5e0000>;
114 config: partition@600000 {
116 reg = <0x600000 0x50000>;
120 radio: partition@7f0000 {
122 reg = <0x7f0000 0x10000>;
133 reg = <0x0000 0 0 0 0>;
135 mediatek,mtd-eeprom = <&radio 0>;
136 mtd-mac-address = <&config 0x10008>;
137 mtd-mac-address-increment = <1>;
143 reg = <0x0000 0 0 0 0>;
145 mediatek,mtd-eeprom = <&radio 0x8000>;
146 ieee80211-freq-limit = <5000000 6000000>;
147 mtd-mac-address = <&config 0x10008>;
148 mtd-mac-address-increment = <2>;
154 mtd-mac-address = <&config 0x10008>;
158 state_default: pinctrl0 {
160 ralink,group = "rgmii2", "wdt";
161 ralink,function = "gpio";