1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8 #include <dt-bindings/mtd/partitions/uimage.h>
11 compatible = "edimax,re23s", "mediatek,mt7621-soc";
12 model = "Edimax RE23S";
15 led-boot = &led_power;
16 led-failsafe = &led_wifi_red;
17 led-running = &led_power;
18 led-upgrade = &led_power;
19 label-mac-device = &gmac0;
23 compatible = "gpio-leds";
26 function = LED_FUNCTION_POWER;
27 color = <LED_COLOR_ID_GREEN>;
28 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
33 gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
38 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
41 led_wifi_red: wifi_red {
43 gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
48 compatible = "gpio-keys";
52 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_RESTART>;
58 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
59 linux,code = <KEY_WPS_BUTTON>;
68 compatible = "jedec,spi-nor";
70 spi-max-frequency = <50000000>;
74 compatible = "fixed-partitions";
86 reg = <0x30000 0x10000>;
92 reg = <0x40000 0x10000>;
96 compatible = "fixed-layout";
100 eeprom_factory_0: eeprom@0 {
104 eeprom_factory_8000: eeprom@8000 {
105 reg = <0x8000 0x4da8>;
108 macaddr_factory_8004: macaddr@8004 {
116 reg = <0x50000 0x20000>;
121 compatible = "openwrt,uimage", "denx,uimage";
122 openwrt,offset = <FW_EDIMAX_OFFSET>;
123 openwrt,partition-magic = <FW_MAGIC_EDIMAX>;
125 reg = <0x70000 0xf50000>;
130 reg = <0xfc0000 0x40000>;
143 compatible = "mediatek,mt76";
144 reg = <0x0000 0 0 0 0>;
145 nvmem-cells = <&eeprom_factory_0>;
146 nvmem-cell-names = "eeprom";
147 ieee80211-freq-limit = <2400000 2500000>;
153 compatible = "mediatek,mt76";
154 reg = <0x0000 0 0 0 0>;
155 nvmem-cells = <&eeprom_factory_8000>;
156 nvmem-cell-names = "eeprom";
157 ieee80211-freq-limit = <5000000 6000000>;
162 nvmem-cells = <&macaddr_factory_8004>;
163 nvmem-cell-names = "mac-address";
177 groups = "uart3", "uart2", "jtag", "wdt";