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 device_type = "memory";
21 reg = <0x0 0x4000000>;
25 bootargs = "console=ttyS0,57600";
29 compatible = "gpio-leds";
32 label = "re350-v1:blue:power";
33 gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
37 label = "re350-v1:blue:wifi2G";
38 gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
42 label = "re350-v1:blue:wifi5G";
43 gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
47 label = "re350-v1:red:wps";
48 gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
52 label = "re350-v1:blue:wps";
53 gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>;
57 label = "re350-v1:green:eth_act";
58 gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
62 label = "re350-v1:green:eth_link";
63 gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
68 compatible = "gpio-keys-polled";
73 gpios = <&gpio0 30 GPIO_ACTIVE_LOW>;
79 gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;
80 linux,code = <KEY_RESTART>;
85 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
86 linux,code = <KEY_POWER>;
91 gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
92 linux,code = <KEY_WPS_BUTTON>;
101 compatible = "jedec,spi-nor";
103 spi-max-frequency = <10000000>;
104 m25p,chunked-io = <32>;
107 compatible = "fixed-partitions";
108 #address-cells = <1>;
118 compatible = "tplink,firmware";
120 reg = <0x20000 0x5e0000>;
123 config: partition@600000 {
125 reg = <0x600000 0x50000>;
129 radio: partition@7f0000 {
131 reg = <0x7f0000 0x10000>;
144 reg = <0x0000 0 0 0 0>;
145 mediatek,mtd-eeprom = <&radio 0>;
146 mtd-mac-address = <&config 0x10008>;
147 mtd-mac-address-increment = <1>;
153 reg = <0x0000 0 0 0 0>;
154 mediatek,mtd-eeprom = <&radio 0x8000>;
155 ieee80211-freq-limit = <5000000 6000000>;
156 mtd-mac-address = <&config 0x10008>;
157 mtd-mac-address-increment = <2>;
162 mtd-mac-address = <&config 0x10008>;
166 state_default: pinctrl0 {
168 ralink,group = "rgmii2", "wdt";
169 ralink,function = "gpio";