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-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
20 bootargs = "console=ttyS0,57600";
24 compatible = "gpio-leds";
27 label = "re350-v1:blue:power";
28 gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
32 label = "re350-v1:blue:wifi2G";
33 gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
37 label = "re350-v1:blue:wifi5G";
38 gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
42 label = "re350-v1:red:wps";
43 gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
47 label = "re350-v1:blue:wps";
48 gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>;
52 label = "re350-v1:green:eth_act";
53 gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
57 label = "re350-v1:green:eth_link";
58 gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
63 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>;
96 compatible = "jedec,spi-nor";
98 spi-max-frequency = <10000000>;
101 compatible = "fixed-partitions";
102 #address-cells = <1>;
112 compatible = "tplink,firmware";
114 reg = <0x20000 0x5e0000>;
117 config: partition@600000 {
119 reg = <0x600000 0x50000>;
123 radio: partition@7f0000 {
125 reg = <0x7f0000 0x10000>;
138 reg = <0x0000 0 0 0 0>;
139 mediatek,mtd-eeprom = <&radio 0>;
140 mtd-mac-address = <&config 0x10008>;
141 mtd-mac-address-increment = <1>;
147 reg = <0x0000 0 0 0 0>;
148 mediatek,mtd-eeprom = <&radio 0x8000>;
149 ieee80211-freq-limit = <5000000 6000000>;
150 mtd-mac-address = <&config 0x10008>;
151 mtd-mac-address-increment = <2>;
156 mtd-mac-address = <&config 0x10008>;
160 state_default: pinctrl0 {
162 ralink,group = "rgmii2", "wdt";
163 ralink,function = "gpio";