1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
10 compatible = "edimax,rg21s", "mediatek,mt7621-soc";
11 model = "Edimax RG21S";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 label-mac-device = ðernet;
22 bootargs = "console=ttyS0,57600";
26 compatible = "gpio-keys";
30 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RESTART>;
36 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_WPS_BUTTON>;
42 compatible = "gpio-leds";
45 label = "rg21s:red:led1";
46 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
50 label = "rg21s:red:led2";
51 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
55 label = "rg21s:red:led3";
56 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
60 label = "rg21s:red:led4";
61 gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
70 compatible = "jedec,spi-nor";
72 spi-max-frequency = <40000000>;
75 compatible = "fixed-partitions";
87 reg = <0x30000 0x10000>;
91 factory: partition@40000 {
93 reg = <0x40000 0x10000>;
98 compatible = "denx,uimage";
100 reg = <0x50000 0xfb0000>;
112 compatible = "mediatek,mt76";
113 reg = <0x0000 0 0 0 0>;
114 mediatek,mtd-eeprom = <&factory 0x0000>;
115 ieee80211-freq-limit = <2400000 2500000>;
121 compatible = "mediatek,mt76";
122 reg = <0x0000 0 0 0 0>;
123 mediatek,mtd-eeprom = <&factory 0x8000>;
124 ieee80211-freq-limit = <5000000 6000000>;
129 mtd-mac-address = <&factory 0x4>;
131 mediatek,portmap = "wllll";
139 ralink,group = "uart3", "uart2", "jtag", "wdt";
140 ralink,function = "gpio";