ramips: clean up useless dts partition labels
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_netgear_wax202.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 = "netgear,wax202", "mediatek,mt7621-soc";
11 model = "Netgear WAX202";
12
13 aliases {
14 led-boot = &led_power_green;
15 led-failsafe = &led_power_orange;
16 led-running = &led_power_green;
17 led-upgrade = &led_power_orange;
18 };
19
20 chosen {
21 bootargs = "console=ttyS0,115200";
22 };
23
24 keys {
25 compatible = "gpio-keys";
26
27 reset {
28 label = "reset";
29 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
31 };
32 };
33
34 leds {
35 compatible = "gpio-leds";
36
37 led_power_green: power_green {
38 function = LED_FUNCTION_POWER;
39 color = <LED_COLOR_ID_GREEN>;
40 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
41 };
42
43 led_power_orange: power_orange {
44 function = LED_FUNCTION_POWER;
45 color = <LED_COLOR_ID_ORANGE>;
46 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
47 };
48
49 led_net_green: net_green {
50 label = "green:net";
51 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
52 };
53
54 led_net_blue: net_blue {
55 label = "blue:net";
56 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
57 };
58
59 led_lan1_orange: lan1_orange {
60 label = "orange:lan1";
61 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
62 };
63
64 led_lan2_orange: lan2_orange {
65 label = "orange:lan2";
66 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
67 };
68
69 led_lan3_orange: lan3_orange {
70 label = "orange:lan3";
71 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
72 };
73
74 led_wifi2g_green: wifi2g_green {
75 label = "green:wifi2g";
76 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
77 linux,default-trigger = "phy0radio";
78 };
79
80 led_wifi2g_blue: wifi2g_blue {
81 label = "blue:wifi2g";
82 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
83 };
84
85 led_wifi5g_green: wifi5g_green {
86 label = "green:wifi5g";
87 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
88 linux,default-trigger = "phy1radio";
89 };
90
91 led_wifi5g_blue: wifi5g_blue {
92 label = "blue:wifi5g";
93 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
94 };
95 };
96 };
97
98 &nand {
99 status = "okay";
100
101 partitions {
102 compatible = "fixed-partitions";
103 #address-cells = <1>;
104 #size-cells = <1>;
105
106 partition@0 {
107 label = "Bootloader";
108 reg = <0x0 0x80000>;
109 read-only;
110 };
111
112 partition@80000 {
113 label = "Config";
114 reg = <0x80000 0x80000>;
115 read-only;
116 };
117
118 partition@100000 {
119 label = "Factory";
120 reg = <0x100000 0x80000>;
121 read-only;
122
123 nvmem-layout {
124 compatible = "fixed-layout";
125 #address-cells = <1>;
126 #size-cells = <1>;
127
128 eeprom_factory_0: eeprom@0 {
129 reg = <0x0 0xe00>;
130 };
131 };
132 };
133
134 partition@180000 {
135 label = "firmware";
136 reg = <0x180000 0x2600000>;
137
138 compatible = "fixed-partitions";
139 #address-cells = <1>;
140 #size-cells = <1>;
141
142 partition@0 {
143 label = "kernel";
144 reg = <0x0 0x400000>;
145 };
146
147 partition@400000 {
148 label = "ubi";
149 reg = <0x400000 0x2200000>;
150 };
151 };
152
153 partition@2780000 {
154 label = "firmware_backup";
155 reg = <0x2780000 0x2600000>;
156 read-only;
157 };
158
159 partition@4d80000 {
160 label = "CFG";
161 reg = <0x4d80000 0x800000>;
162 read-only;
163 };
164
165 partition@5580000 {
166 label = "RAE";
167 reg = <0x5580000 0x400000>;
168 read-only;
169 };
170
171 partition@5980000 {
172 label = "POT";
173 reg = <0x5980000 0x100000>;
174 read-only;
175 };
176
177 partition@5a80000 {
178 label = "Language";
179 reg = <0x5a80000 0x400000>;
180 read-only;
181 };
182
183 partition@5e80000 {
184 label = "Traffic";
185 reg = <0x5e80000 0x200000>;
186 read-only;
187 };
188
189 partition@6080000 {
190 label = "Cert";
191 reg = <0x6080000 0x100000>;
192 read-only;
193 };
194
195 partition@6180000 {
196 label = "NTGRcryptK";
197 reg = <0x6180000 0x100000>;
198 read-only;
199 };
200
201 partition@6280000 {
202 label = "NTGRcryptD";
203 reg = <0x6280000 0x500000>;
204 read-only;
205 };
206
207 partition@6780000 {
208 label = "LOG";
209 reg = <0x6780000 0x100000>;
210 read-only;
211 };
212
213 partition@6880000 {
214 label = "User_data";
215 reg = <0x6880000 0x640000>;
216 read-only;
217 };
218 };
219 };
220
221 &pcie {
222 status = "okay";
223 };
224
225 &pcie1 {
226 wifi@0,0 {
227 compatible = "mediatek,mt76";
228 reg = <0x0000 0 0 0 0>;
229 nvmem-cells = <&eeprom_factory_0>;
230 nvmem-cell-names = "eeprom";
231 };
232 };
233
234 &state_default {
235 gpio {
236 groups = "uart3", "uart2", "jtag", "wdt";
237 function = "gpio";
238 };
239 };
240
241 &gmac1 {
242 status = "okay";
243 label = "wan";
244 phy-handle = <&ethphy0>;
245 };
246
247 &mdio {
248 ethphy0: ethernet-phy@0 {
249 reg = <0>;
250 };
251 };
252
253 &switch0 {
254 ports {
255 port@1 {
256 status = "okay";
257 label = "lan1";
258 };
259
260 port@2 {
261 status = "okay";
262 label = "lan2";
263 };
264
265 /* port@3 is not used */
266
267 port@4 {
268 status = "okay";
269 label = "lan3";
270 };
271 };
272 };
273
274 &xhci {
275 status = "disabled";
276 };