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";
24 palmbus: palmbus@1E000000 {
31 compatible = "gpio-keys";
35 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_RESTART>;
41 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_RESTART>;
47 compatible = "gpio-leds";
50 label = "rg21s:red:led1";
51 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
55 label = "rg21s:red:led2";
56 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
60 label = "rg21s:red:led3";
61 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
65 label = "rg21s:red:led4";
66 gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
79 compatible = "jedec,spi-nor";
81 spi-max-frequency = <10000000>;
84 compatible = "fixed-partitions";
96 reg = <0x30000 0x10000>;
100 factory: partition@40000 {
102 reg = <0x40000 0x10000>;
107 compatible = "denx,uimage";
109 reg = <0x50000 0xfb0000>;
121 compatible = "pci14c3,7615";
122 reg = <0x0000 0 0 0 0>;
123 mediatek,mtd-eeprom = <&factory 0x0000>;
124 ieee80211-freq-limit = <2400000 2500000>;
130 compatible = "pci14c3,7615";
131 reg = <0x0000 0 0 0 0>;
132 mediatek,mtd-eeprom = <&factory 0x8000>;
133 ieee80211-freq-limit = <5000000 6000000>;
138 mediatek,portmap = "wllll";
145 state_default: pinctrl0 {
147 ralink,group = "wdt", "rgmii2", "jtag", "mdio";
148 ralink,function = "gpio";