ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_arcadyan_wg4xx223.dtsi
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 aliases {
11 led-boot = &led_status_red;
12 led-failsafe = &led_status_red;
13 led-running = &led_status_green;
14 led-upgrade = &led_status_red;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 led_status_green: led-0 {
21 color = <LED_COLOR_ID_GREEN>;
22 function = LED_FUNCTION_STATUS;
23 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
24 };
25
26 led_status_red: led-1 {
27 color = <LED_COLOR_ID_RED>;
28 function = LED_FUNCTION_STATUS;
29 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
30 };
31 };
32
33 keys {
34 compatible = "gpio-keys";
35
36 button-0 {
37 label = "reset";
38 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
39 linux,code = <KEY_RESTART>;
40 };
41 };
42
43 ubi-concat {
44 compatible = "mtd-concat";
45 devices = <&ubiconcat0 &ubiconcat1>;
46
47 partitions {
48 compatible = "fixed-partitions";
49 #address-cells = <1>;
50 #size-cells = <1>;
51
52 partition@0 {
53 label = "ubi";
54 reg = <0x0 0x5240000>;
55 };
56 };
57 };
58 };
59
60 &nand {
61 status = "okay";
62
63 partitions {
64 compatible = "fixed-partitions";
65 #address-cells = <1>;
66 #size-cells = <1>;
67
68 partition@0 {
69 label = "u-boot";
70 reg = <0x0 0x100000>;
71 read-only;
72 };
73
74 partition@100000 {
75 label = "u-boot-env";
76 reg = <0x100000 0x100000>;
77 };
78
79 partition@200000 {
80 label = "Factory";
81 reg = <0x200000 0x100000>;
82 read-only;
83
84 nvmem-layout {
85 compatible = "fixed-layout";
86 #address-cells = <1>;
87 #size-cells = <1>;
88
89 eeprom_factory_0: eeprom@0 {
90 reg = <0x0 0x4da8>;
91 };
92
93 /* We keep the block below to prevent eth0 MAC
94 * from randomization. Unique WAN, LAN, WLAN MACs
95 * are stored in u-boot-env.
96 */
97
98 /* Default Ralink MAC (00:0c:43:28:80:xx) */
99 macaddr_factory_fff0: macaddr@fff0 {
100 reg = <0xfff0 0x6>;
101 };
102 };
103 };
104
105 partition@300000 {
106 label = "firmware";
107 reg = <0x300000 0x2000000>;
108
109 compatible = "fixed-partitions";
110 #address-cells = <1>;
111 #size-cells = <1>;
112
113 partition@0 {
114 label = "kernel";
115 reg = <0x0 0x440000>;
116 };
117
118 ubiconcat0: partition@400000 {
119 label = "ubiconcat0";
120 reg = <0x440000 0x1bc0000>;
121 };
122 };
123
124 partition@2300000 {
125 label = "Firmware2";
126 reg = <0x2300000 0x2000000>;
127 read-only;
128 };
129
130 partition@4300000 {
131 label = "glbcfg";
132 reg = <0x4300000 0x200000>;
133 read-only;
134 };
135
136 partition@4500000 {
137 label = "board_data";
138 reg = <0x4500000 0x100000>;
139 read-only;
140 };
141
142 partition@4600000 {
143 label = "glbcfg2";
144 reg = <0x4600000 0x200000>;
145 read-only;
146 };
147
148 partition@4800000 {
149 label = "board_data2";
150 reg = <0x4800000 0x100000>;
151 read-only;
152 };
153
154 ubiconcat1: partition@4900000 {
155 label = "ubiconcat1";
156 reg = <0x4900000 0x3680000>;
157 };
158 };
159 };
160
161 &pcie {
162 status = "okay";
163 };
164
165 &pcie1 {
166 wifi@0,0 {
167 compatible = "mediatek,mt76";
168 reg = <0x0000 0 0 0 0>;
169 nvmem-cells = <&eeprom_factory_0>;
170 nvmem-cell-names = "eeprom";
171 };
172 };
173
174 &gmac0 {
175 nvmem-cells = <&macaddr_factory_fff0>;
176 nvmem-cell-names = "mac-address";
177 };
178
179 &gmac1 {
180 status = "okay";
181 label = "wan";
182 phy-handle = <&ethphy4>;
183
184 nvmem-cells = <&macaddr_factory_fff0>;
185 nvmem-cell-names = "mac-address";
186 };
187
188 &mdio {
189 ethphy4: ethernet-phy@4 {
190 reg = <4>;
191 };
192 };
193
194 &switch0 {
195 ports {
196 port@2 {
197 status = "okay";
198 label = "lan2";
199 };
200
201 port@3 {
202 status = "okay";
203 label = "lan1";
204 };
205 };
206 };
207
208 &state_default {
209 gpio {
210 groups = "i2c", "jtag";
211 function = "gpio";
212 };
213 };