1 // SPDX-License-Identifier: GPL-2.0-or-later
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 compatible = "tplink,eap235-wall-v1", "mediatek,mt7621-soc";
11 model = "TP-Link EAP235-Wall v1";
14 label-mac-device = &gmac0;
15 led-boot = &led_status;
16 led-failsafe = &led_status;
17 led-running = &led_status;
18 led-upgrade = &led_status;
22 compatible = "gpio-leds";
25 label = "white:status";
26 color = <LED_COLOR_ID_WHITE>;
27 function = LED_FUNCTION_STATUS;
28 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
33 compatible = "gpio-keys";
37 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_LIGHTS_TOGGLE>;
43 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_RESTART>;
49 compatible = "gpio-export";
52 gpio-export,name = "poe-passthrough";
53 gpio-export,output = <0>;
54 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
63 compatible = "jedec,spi-nor";
65 spi-max-frequency = <20000000>;
68 compatible = "fixed-partitions";
74 reg = <0x00000 0x80000>;
79 label = "partition-table";
80 reg = <0x80000 0x10000>;
84 info: partition@90000 {
85 compatible = "nvmem-cells";
86 label = "product-info";
87 reg = <0x90000 0x10000>;
92 macaddr_info_8: macaddr@8 {
98 compatible = "tplink,firmware";
100 reg = <0x0a0000 0xd20000>;
104 label = "user-config";
105 reg = <0xdc0000 0x030000>;
109 /* 0xdf0000 - 0xf30000 unused */
113 reg = <0xf30000 0x080000>;
119 reg = <0xfb0000 0x040000>;
123 radio: partition@ff0000 {
124 compatible = "nvmem-cells";
126 reg = <0xff0000 0x010000>;
127 #address-cells = <1>;
131 eeprom_radio_0: eeprom@0 {
135 eeprom_radio_8000: eeprom@8000 {
136 reg = <0x8000 0x4da8>;
145 groups = "uart2", "uart3";
156 reg = <0x0000 0 0 0 0>;
157 nvmem-cells = <&eeprom_radio_0>, <&macaddr_info_8>;
158 nvmem-cell-names = "eeprom", "mac-address";
164 reg = <0x0000 0 0 0 0>;
165 ieee80211-freq-limit = <5000000 6000000>;
166 nvmem-cells = <&eeprom_radio_8000>, <&macaddr_info_8>;
167 nvmem-cell-names = "eeprom", "mac-address";
168 mac-address-increment = <1>;
173 nvmem-cells = <&macaddr_info_8>;
174 nvmem-cell-names = "mac-address";
180 phy-handle = <ðphy0>;
182 nvmem-cells = <&macaddr_info_8>;
183 nvmem-cell-names = "mac-address";
187 ethphy0: ethernet-phy@0 {