ramips: clean up useless dts partition labels
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_asus_rp-ac56.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 compatible = "asus,rp-ac56", "mediatek,mt7621-soc";
11 model = "Asus RP-AC56";
12
13 aliases {
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;
19 };
20
21 leds {
22 compatible = "gpio-leds";
23
24 wlan2g_red {
25 label = "red:wlan2g";
26 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
27 };
28
29 wlan2g_blue {
30 label = "blue:wlan2g";
31 gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
32 };
33
34 wlan2g_green {
35 label = "green:wlan2g";
36 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
37 linux,default-trigger = "phy0tpt";
38 };
39
40 wlan5g_red {
41 label = "red:wlan5g";
42 gpios = <&gpio 45 GPIO_ACTIVE_HIGH>;
43 };
44
45 wlan5g_blue {
46 label = "blue:wlan5g";
47 gpios = <&gpio 43 GPIO_ACTIVE_HIGH>;
48 };
49
50 wlan5g_green {
51 label = "green:wlan5g";
52 gpios = <&gpio 44 GPIO_ACTIVE_HIGH>;
53 linux,default-trigger = "phy1tpt";
54 };
55
56 led_power_white: power_white {
57 function = LED_FUNCTION_POWER;
58 color = <LED_COLOR_ID_WHITE>;
59 gpios = <&gpio 48 GPIO_ACTIVE_HIGH>;
60 };
61
62 led_power_orange: power_orange {
63 function = LED_FUNCTION_POWER;
64 color = <LED_COLOR_ID_ORANGE>;
65 gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
66 };
67
68 led_power_blue: power_blue {
69 function = LED_FUNCTION_POWER;
70 color = <LED_COLOR_ID_BLUE>;
71 gpios = <&gpio 46 GPIO_ACTIVE_HIGH>;
72 };
73 };
74
75 keys {
76 compatible = "gpio-keys";
77
78 wps {
79 label = "wps";
80 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
81 linux,code = <KEY_WPS_BUTTON>;
82 };
83
84 reset {
85 label = "reset";
86 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
87 linux,code = <KEY_RESTART>;
88 };
89 };
90
91 sound {
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>;
101
102 simple-audio-card,cpu {
103 sound-dai = <&i2s>;
104 };
105
106 dailink0_master: simple-audio-card,codec {
107 sound-dai = <&codec>;
108 };
109 };
110 };
111
112 &gpio {
113 status = "okay";
114 };
115
116 &spi0 {
117 status = "okay";
118
119 flash@0 {
120 compatible = "jedec,spi-nor";
121 reg = <0>;
122 spi-max-frequency = <50000000>;
123 m25p,fast-read;
124
125 partitions {
126 compatible = "fixed-partitions";
127 #address-cells = <1>;
128 #size-cells = <1>;
129
130 partition@0 {
131 label = "u-boot";
132 reg = <0x0 0x30000>;
133 read-only;
134 };
135
136 partition@30000 {
137 label = "nvram";
138 reg = <0x30000 0x10000>;
139 read-only;
140 };
141
142 partition@40000 {
143 label = "factory";
144 reg = <0x40000 0x10000>;
145 read-only;
146
147 nvmem-layout {
148 compatible = "fixed-layout";
149 #address-cells = <1>;
150 #size-cells = <1>;
151
152 eeprom_factory_0: eeprom@0 {
153 reg = <0x0 0x400>;
154 };
155
156 eeprom_factory_8000: eeprom@8000 {
157 reg = <0x8000 0x200>;
158 };
159
160 macaddr_factory_4: macaddr@4 {
161 reg = <0x4 0x6>;
162 };
163 };
164 };
165
166 partition@50000 {
167 compatible = "denx,uimage";
168 label = "firmware";
169 reg = <0x50000 0xfa0000>;
170 };
171
172 partition@ff0000 {
173 label = "radio";
174 reg = <0xff0000 0x10000>;
175 read-only;
176 };
177 };
178 };
179 };
180
181 &state_default {
182 gpio {
183 groups = "uart2";
184 function = "gpio";
185 };
186 };
187
188 &pinctrl {
189 i2s_pins: i2s {
190 i2s {
191 groups = "uart3";
192 function = "i2s";
193 };
194 };
195 };
196
197 &pcie {
198 status = "okay";
199 };
200
201 &pcie0 {
202 wifi@0,0 {
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>;
208 };
209 };
210
211 &pcie1 {
212 wifi@0,0 {
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>;
218 };
219 };
220
221 &gmac0 {
222 nvmem-cells = <&macaddr_factory_4>;
223 nvmem-cell-names = "mac-address";
224 };
225
226 &switch0 {
227 ports {
228 port@0 {
229 status = "okay";
230 label = "lan";
231 };
232 };
233 };
234
235 &xhci {
236 status = "disabled";
237 };
238
239 &i2c {
240 status = "okay";
241
242 codec: wm8960@18 {
243 #sound-dai-cells = <0>;
244 compatible = "wlf,wm8960";
245 reg = <0x18>;
246 wlf,shared-lrclk;
247 };
248 };
249
250 &gdma {
251 status = "okay";
252 };
253
254 &i2s {
255 #sound-dai-cells = <0>;
256 status = "okay";
257 pinctrl-names = "default";
258 pinctrl-0 = <&i2s_pins>;
259 };