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>
10 compatible = "asus,rp-ac87", "mediatek,mt7621-soc";
11 model = "ASUS RP-AC87";
15 led-failsafe = &led_wps;
16 led-running = &led_wps;
17 led-upgrade = &led_wps;
18 label-mac-device = &gmac0;
22 compatible = "gpio-keys";
26 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_RESTART>;
32 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
33 linux,code = <KEY_WPS_BUTTON>;
38 compatible = "gpio-leds";
41 function = LED_FUNCTION_WPS;
42 color = <LED_COLOR_ID_GREEN>;
43 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
47 label = "green:rssilow-wlan0";
48 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
52 label = "green:rssimedlow-wlan0";
53 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
57 label = "green:rssimed-wlan0";
58 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
62 label = "green:rssihigh-wlan0";
63 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
67 label = "green:rssilow-wlan1";
68 gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
72 label = "green:rssimedlow-wlan1";
73 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
77 label = "green:rssimed-wlan1";
78 gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
82 label = "green:rssihigh-wlan1";
83 gpios = <&gpio 48 GPIO_ACTIVE_LOW>;
92 compatible = "jedec,spi-nor";
94 spi-max-frequency = <50000000>;
98 compatible = "fixed-partitions";
109 label = "u-boot-env";
110 reg = <0x30000 0x10000>;
116 reg = <0x40000 0x10000>;
120 compatible = "fixed-layout";
121 #address-cells = <1>;
124 eeprom_factory_0: eeprom@0 {
128 eeprom_factory_8000: eeprom@8000 {
129 reg = <0x8000 0x4da8>;
132 macaddr_factory_8004: macaddr@8004 {
139 compatible = "denx,uimage";
141 reg = <0x50000 0xfb0000>;
153 compatible = "mediatek,mt76";
154 reg = <0x0000 0 0 0 0>;
155 nvmem-cells = <&eeprom_factory_0>;
156 nvmem-cell-names = "eeprom";
157 ieee80211-freq-limit = <2400000 2500000>;
163 compatible = "mediatek,mt76";
164 reg = <0x0000 0 0 0 0>;
165 nvmem-cells = <&eeprom_factory_8000>;
166 nvmem-cell-names = "eeprom";
167 ieee80211-freq-limit = <5000000 6000000>;
172 nvmem-cells = <&macaddr_factory_8004>;
173 nvmem-cell-names = "mac-address";