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-ac56", "mediatek,mt7621-soc";
11 model = "Asus RP-AC56";
14 led-boot = &led_power_orange;
15 led-failsafe = &led_power_orange;
16 led-running = &led_power_white;
17 led-upgrade = &led_power_blue;
18 label-mac-device = &gmac0;
22 compatible = "gpio-leds";
26 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
30 label = "blue:wlan2g";
31 gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
35 label = "green:wlan2g";
36 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
37 linux,default-trigger = "phy0tpt";
42 gpios = <&gpio 45 GPIO_ACTIVE_HIGH>;
46 label = "blue:wlan5g";
47 gpios = <&gpio 43 GPIO_ACTIVE_HIGH>;
51 label = "green:wlan5g";
52 gpios = <&gpio 44 GPIO_ACTIVE_HIGH>;
53 linux,default-trigger = "phy1tpt";
56 led_power_white: power_white {
57 function = LED_FUNCTION_POWER;
58 color = <LED_COLOR_ID_WHITE>;
59 gpios = <&gpio 48 GPIO_ACTIVE_HIGH>;
62 led_power_orange: power_orange {
63 function = LED_FUNCTION_POWER;
64 color = <LED_COLOR_ID_ORANGE>;
65 gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
68 led_power_blue: power_blue {
69 function = LED_FUNCTION_POWER;
70 color = <LED_COLOR_ID_BLUE>;
71 gpios = <&gpio 46 GPIO_ACTIVE_HIGH>;
76 compatible = "gpio-keys";
80 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
81 linux,code = <KEY_WPS_BUTTON>;
86 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
87 linux,code = <KEY_RESTART>;
92 compatible = "simple-audio-card";
93 simple-audio-card,name = "Audio-I2S";
94 simple-audio-card,format = "i2s";
95 simple-audio-card,bitclock-master = <&dailink0_master>;
96 simple-audio-card,frame-master = <&dailink0_master>;
97 simple-audio-card,routing =
98 "Headphone Jack", "HP_L",
99 "Headphone Jack", "HP_R";
100 simple-audio-card,mclk-fs = <256>;
102 simple-audio-card,cpu {
106 dailink0_master: simple-audio-card,codec {
107 sound-dai = <&codec>;
120 compatible = "jedec,spi-nor";
122 spi-max-frequency = <50000000>;
126 compatible = "fixed-partitions";
127 #address-cells = <1>;
138 reg = <0x30000 0x10000>;
142 factory: partition@40000 {
144 reg = <0x40000 0x10000>;
148 compatible = "fixed-layout";
149 #address-cells = <1>;
152 eeprom_factory_0: eeprom@0 {
156 eeprom_factory_8000: eeprom@8000 {
157 reg = <0x8000 0x200>;
160 macaddr_factory_4: macaddr@4 {
167 compatible = "denx,uimage";
169 reg = <0x50000 0xfa0000>;
172 radio: partition@ff0000 {
174 reg = <0xff0000 0x10000>;
203 compatible = "mediatek,mt76";
204 reg = <0x0000 0 0 0 0>;
205 nvmem-cells = <&eeprom_factory_0>;
206 nvmem-cell-names = "eeprom";
207 ieee80211-freq-limit = <2400000 2500000>;
213 compatible = "mediatek,mt76";
214 reg = <0x0000 0 0 0 0>;
215 nvmem-cells = <&eeprom_factory_8000>;
216 nvmem-cell-names = "eeprom";
217 ieee80211-freq-limit = <5000000 6000000>;
222 nvmem-cells = <&macaddr_factory_4>;
223 nvmem-cell-names = "mac-address";
243 #sound-dai-cells = <0>;
244 compatible = "wlf,wm8960";
255 #sound-dai-cells = <0>;
257 pinctrl-names = "default";
258 pinctrl-0 = <&i2s_pins>;