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;
21 bootargs = "console=ttyS0,57600";
25 compatible = "gpio-keys";
29 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
35 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_WPS_BUTTON>;
41 compatible = "gpio-leds";
44 label = "rg21s:red:led1";
45 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
49 label = "rg21s:red:led2";
50 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
54 label = "rg21s:red:led3";
55 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
59 label = "rg21s:red:led4";
60 gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
69 compatible = "jedec,spi-nor";
71 spi-max-frequency = <40000000>;
74 compatible = "fixed-partitions";
86 reg = <0x30000 0x10000>;
90 factory: partition@40000 {
92 reg = <0x40000 0x10000>;
97 compatible = "denx,uimage";
99 reg = <0x50000 0xfb0000>;
111 compatible = "pci14c3,7615";
112 reg = <0x0000 0 0 0 0>;
113 mediatek,mtd-eeprom = <&factory 0x0000>;
114 ieee80211-freq-limit = <2400000 2500000>;
120 compatible = "pci14c3,7615";
121 reg = <0x0000 0 0 0 0>;
122 mediatek,mtd-eeprom = <&factory 0x8000>;
123 ieee80211-freq-limit = <5000000 6000000>;
128 mediatek,portmap = "wllll";
135 state_default: pinctrl0 {
137 ralink,group = "wdt", "rgmii2", "jtag", "mdio";
138 ralink,function = "gpio";