3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
7 compatible = "tplink,re350-v1", "mediatek,mt7621-soc";
8 model = "TP-LINK RE350 v1";
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
18 compatible = "gpio-leds";
22 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
26 label = "blue:wifi2G";
27 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
31 label = "blue:wifi5G";
32 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
37 gpios = <&gpio 25 GPIO_ACTIVE_HIGH>;
42 gpios = <&gpio 26 GPIO_ACTIVE_HIGH>;
46 label = "green:eth_act";
47 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
51 label = "green:eth_link";
52 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
57 compatible = "gpio-keys";
61 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
67 gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
68 linux,code = <KEY_RESTART>;
73 gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
74 linux,code = <KEY_POWER>;
79 gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
80 linux,code = <KEY_WPS_BUTTON>;
89 compatible = "jedec,spi-nor";
91 spi-max-frequency = <10000000>;
94 compatible = "fixed-partitions";
105 compatible = "tplink,firmware";
107 reg = <0x20000 0x5e0000>;
110 config: partition@600000 {
111 compatible = "nvmem-cells";
113 reg = <0x600000 0x50000>;
114 #address-cells = <1>;
118 macaddr_config_10008: macaddr@10008 {
123 radio: partition@7f0000 {
124 compatible = "nvmem-cells";
126 reg = <0x7f0000 0x10000>;
127 #address-cells = <1>;
131 eeprom_radio_0: eeprom@0 {
135 eeprom_radio_8000: eeprom@8000 {
136 reg = <0x8000 0x200>;
149 reg = <0x0000 0 0 0 0>;
150 nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_10008>;
151 nvmem-cell-names = "eeprom", "mac-address";
152 mac-address-increment = <1>;
158 reg = <0x0000 0 0 0 0>;
159 ieee80211-freq-limit = <5000000 6000000>;
160 nvmem-cells = <&eeprom_radio_8000>, <&macaddr_config_10008>;
161 nvmem-cell-names = "eeprom", "mac-address";
162 mac-address-increment = <2>;
167 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
171 nvmem-cells = <&macaddr_config_10008>;
172 nvmem-cell-names = "mac-address";
186 groups = "rgmii2", "wdt";