ramips: clean up useless dts partition labels
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_etisalat_s3.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 = "etisalat,s3", "mediatek,mt7621-soc";
11 model = "Etisalat S3";
12
13 aliases {
14 label-mac-device = &gmac0;
15
16 led-boot = &led_status_green;
17 led-failsafe = &led_status_red;
18 led-running = &led_status_green;
19 led-upgrade = &led_status_red;
20 };
21
22 leds {
23 compatible = "gpio-leds";
24
25 led-0 {
26 color = <LED_COLOR_ID_BLUE>;
27 function = LED_FUNCTION_WAN;
28 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
29 };
30
31 led_status_green: led-1 {
32 color = <LED_COLOR_ID_GREEN>;
33 function = LED_FUNCTION_STATUS;
34 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
35 };
36
37 led_status_red: led-2 {
38 color = <LED_COLOR_ID_RED>;
39 function = LED_FUNCTION_STATUS;
40 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
41 };
42 };
43
44 keys {
45 compatible = "gpio-keys";
46
47 button-0 {
48 label = "wps";
49 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
50 linux,code = <KEY_WPS_BUTTON>;
51 };
52
53 button-1 {
54 label = "reset";
55 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
56 linux,code = <KEY_RESTART>;
57 };
58 };
59
60 ubi-concat {
61 compatible = "mtd-concat";
62 devices = <&ubiconcat0 &ubiconcat1 &ubiconcat2>;
63
64 partitions {
65 compatible = "fixed-partitions";
66 #address-cells = <1>;
67 #size-cells = <1>;
68
69 partition@0 {
70 label = "ubi";
71 reg = <0x0 0x4f80000>;
72 };
73 };
74 };
75 };
76
77 &nand {
78 status = "okay";
79
80 partitions {
81 compatible = "sercomm,sc-partitions", "fixed-partitions";
82 #address-cells = <1>;
83 #size-cells = <1>;
84
85 partition@0 {
86 label = "u-boot";
87 reg = <0x0 0x100000>;
88 sercomm,scpart-id = <0>;
89 read-only;
90 };
91
92 partition@100000 {
93 label = "dynamic partition map";
94 reg = <0x100000 0x100000>;
95 sercomm,scpart-id = <1>;
96 read-only;
97 };
98
99 partition@200000 {
100 label = "Factory";
101 reg = <0x200000 0x100000>;
102 sercomm,scpart-id = <2>;
103 read-only;
104
105 nvmem-layout {
106 compatible = "fixed-layout";
107 #address-cells = <1>;
108 #size-cells = <1>;
109
110 eeprom_factory_0: eeprom@0 {
111 reg = <0x0 0x400>;
112 };
113
114 eeprom_factory_8000: eeprom@8000 {
115 reg = <0x8000 0x4da8>;
116 };
117
118 macaddr_factory_21000: macaddr@21000 {
119 compatible = "mac-base";
120 reg = <0x21000 0x6>;
121 #nvmem-cell-cells = <1>;
122 };
123 };
124 };
125
126 partition@300000 {
127 label = "Boot Flag";
128 reg = <0x300000 0x100000>;
129 sercomm,scpart-id = <3>;
130 };
131
132 partition@400000 {
133 label = "kernel";
134 reg = <0x400000 0x600000>;
135 sercomm,scpart-id = <4>;
136 };
137
138 partition@a00000 {
139 label = "Kernel 2";
140 reg = <0xa00000 0x600000>;
141 sercomm,scpart-id = <5>;
142 read-only;
143 };
144
145 ubiconcat0: partition@1000000 {
146 label = "File System 1";
147 reg = <0x1000000 0x2000000>;
148 sercomm,scpart-id = <6>;
149 };
150
151 partition@3000000 {
152 label = "File System 2";
153 reg = <0x3000000 0x2000000>;
154 sercomm,scpart-id = <7>;
155 read-only;
156 };
157
158 ubiconcat1: partition@5000000 {
159 label = "Configuration/log";
160 reg = <0x5000000 0x1400000>;
161 sercomm,scpart-id = <8>;
162 };
163
164 ubiconcat2: partition@6400000 {
165 label = "application tmp buffer (Ftool)";
166 reg = <0x6400000 0x1b80000>;
167 sercomm,scpart-id = <9>;
168 };
169 };
170 };
171
172 &pcie {
173 status = "okay";
174 };
175
176 &pcie0 {
177 wifi@0,0 {
178 compatible = "mediatek,mt76";
179 reg = <0x0000 0 0 0 0>;
180 ieee80211-freq-limit = <5000000 6000000>;
181
182 nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_21000 3>;
183 nvmem-cell-names = "eeprom", "mac-address";
184 };
185 };
186
187 &pcie1 {
188 wifi@0,0 {
189 compatible = "mediatek,mt76";
190 reg = <0x0000 0 0 0 0>;
191 ieee80211-freq-limit = <2400000 2500000>;
192
193 nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_21000 2>;
194 nvmem-cell-names = "eeprom", "mac-address";
195 };
196 };
197
198 &gmac0 {
199 nvmem-cells = <&macaddr_factory_21000 0>;
200 nvmem-cell-names = "mac-address";
201 };
202
203 &gmac1 {
204 status = "okay";
205 label = "wan";
206 phy-handle = <&ethphy0>;
207
208 nvmem-cells = <&macaddr_factory_21000 11>;
209 nvmem-cell-names = "mac-address";
210 };
211
212 &mdio {
213 ethphy0: ethernet-phy@0 {
214 reg = <0>;
215 };
216 };
217
218 &switch0 {
219 ports {
220 port@1 {
221 status = "okay";
222 label = "lan1";
223 };
224
225 port@2 {
226 status = "okay";
227 label = "lan2";
228 };
229
230 port@3 {
231 status = "okay";
232 label = "lan3";
233 };
234
235 port@4 {
236 status = "okay";
237 label = "lan4";
238 };
239 };
240 };
241
242 &uartlite3 {
243 status = "okay";
244 };
245
246 &state_default {
247 gpio {
248 groups = "i2c", "jtag";
249 function = "gpio";
250 };
251 };