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/mtd/partitions/uimage.h>
10 compatible = "edimax,re23s", "mediatek,mt7621-soc";
11 model = "Edimax RE23S";
14 led-boot = &led_power;
15 led-failsafe = &led_wifi_red;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 label-mac-device = &gmac0;
22 compatible = "gpio-leds";
25 label = "green:power";
26 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
31 gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
36 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
39 led_wifi_red: wifi_red {
41 gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
46 compatible = "gpio-keys";
50 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_RESTART>;
56 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
57 linux,code = <KEY_WPS_BUTTON>;
66 compatible = "jedec,spi-nor";
68 spi-max-frequency = <50000000>;
72 compatible = "fixed-partitions";
84 reg = <0x30000 0x10000>;
88 factory: partition@40000 {
89 compatible = "nvmem-cells";
91 reg = <0x40000 0x10000>;
96 eeprom_factory_0: eeprom@0 {
100 eeprom_factory_8000: eeprom@8000 {
101 reg = <0x8000 0x4da8>;
104 macaddr_factory_8004: macaddr@8004 {
111 reg = <0x50000 0x20000>;
116 compatible = "openwrt,uimage", "denx,uimage";
117 openwrt,offset = <FW_EDIMAX_OFFSET>;
118 openwrt,partition-magic = <FW_MAGIC_EDIMAX>;
120 reg = <0x70000 0xf50000>;
125 reg = <0xfc0000 0x40000>;
138 compatible = "mediatek,mt76";
139 reg = <0x0000 0 0 0 0>;
140 nvmem-cells = <&eeprom_factory_0>;
141 nvmem-cell-names = "eeprom";
142 ieee80211-freq-limit = <2400000 2500000>;
148 compatible = "mediatek,mt76";
149 reg = <0x0000 0 0 0 0>;
150 nvmem-cells = <&eeprom_factory_8000>;
151 nvmem-cell-names = "eeprom";
152 ieee80211-freq-limit = <5000000 6000000>;
157 nvmem-cells = <&macaddr_factory_8004>;
158 nvmem-cell-names = "mac-address";
172 groups = "uart3", "uart2", "jtag", "wdt";