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 led-status = &led_power;
17 device_type = "memory";
18 reg = <0x0 0x4000000>;
22 bootargs = "console=ttyS0,57600";
26 compatible = "gpio-leds";
29 label = "re350-v1:blue:power";
30 gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
34 label = "re350-v1:blue:wifi2G";
35 gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
39 label = "re350-v1:blue:wifi5G";
40 gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
44 label = "re350-v1:red:wps";
45 gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
49 label = "re350-v1:blue:wps";
50 gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>;
54 label = "re350-v1:green:eth_act";
55 gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
59 label = "re350-v1:green:eth_link";
60 gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
65 compatible = "gpio-keys-polled";
70 gpios = <&gpio0 30 GPIO_ACTIVE_LOW>;
76 gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;
77 linux,code = <KEY_RESTART>;
82 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
83 linux,code = <KEY_POWER>;
88 gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
89 linux,code = <KEY_WPS_BUTTON>;
98 compatible = "jedec,spi-nor";
100 spi-max-frequency = <10000000>;
101 m25p,chunked-io = <32>;
104 compatible = "fixed-partitions";
105 #address-cells = <1>;
116 reg = <0x20000 0x5e0000>;
119 config: partition@600000 {
121 reg = <0x600000 0x50000>;
125 radio: partition@7f0000 {
127 reg = <0x7f0000 0x10000>;
140 reg = <0x0000 0 0 0 0>;
141 mediatek,mtd-eeprom = <&radio 0>;
142 mtd-mac-address = <&config 0x10008>;
143 mtd-mac-address-increment = <1>;
149 reg = <0x0000 0 0 0 0>;
150 mediatek,mtd-eeprom = <&radio 0x8000>;
151 ieee80211-freq-limit = <5000000 6000000>;
152 mtd-mac-address = <&config 0x10008>;
153 mtd-mac-address-increment = <2>;
158 mtd-mac-address = <&config 0x10008>;
162 state_default: pinctrl0 {
164 ralink,group = "rgmii2", "wdt";
165 ralink,function = "gpio";