ramips: clean up useless dts partition labels
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_buffalo_wsr-2533dhpl.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 = "buffalo,wsr-2533dhpl", "mediatek,mt7621-soc";
11 model = "Buffalo WSR-2533DHPL";
12
13 aliases {
14 led-boot = &led_power;
15 led-failsafe = &led_diag;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 label-mac-device = &gmac0;
19 };
20
21 leds {
22 compatible = "gpio-leds";
23
24 internet_green {
25 label = "green:internet";
26 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
27 };
28
29 router_green {
30 label = "green:router";
31 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
32 };
33
34 router_amber {
35 label = "amber:router";
36 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
37 };
38
39 internet_amber {
40 label = "amber:internet";
41 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
42 };
43
44 wireless_amber {
45 label = "amber:wireless";
46 gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
47 };
48
49 led_power: power {
50 function = LED_FUNCTION_POWER;
51 color = <LED_COLOR_ID_GREEN>;
52 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
53 };
54
55 led_diag: diag {
56 label = "amber:diag";
57 gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
58 };
59
60 wireless_green {
61 label = "green:wireless";
62 gpios = <&gpio 48 GPIO_ACTIVE_LOW>;
63 };
64 };
65
66 keys {
67 compatible = "gpio-keys";
68
69 reset {
70 label = "reset";
71 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
72 linux,code = <KEY_RESTART>;
73 };
74
75 aoss {
76 label = "aoss";
77 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
78 linux,code = <KEY_WPS_BUTTON>;
79 };
80
81 auto {
82 label = "auto";
83 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
84 linux,code = <BTN_0>;
85 linux,input-type = <EV_SW>;
86 };
87
88 bridge {
89 label = "wb";
90 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
91 linux,code = <BTN_1>;
92 linux,input-type = <EV_SW>;
93 };
94
95 router {
96 label = "router";
97 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
98 linux,code = <BTN_1>;
99 linux,input-type = <EV_SW>;
100 };
101
102 power {
103 label = "power";
104 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
105 linux,code = <KEY_POWER>;
106 };
107 };
108 };
109
110 &spi0 {
111 status = "okay";
112
113 flash@0 {
114 compatible = "jedec,spi-nor";
115 reg = <0>;
116 spi-max-frequency = <40000000>;
117
118 partitions {
119 compatible = "fixed-partitions";
120 #address-cells = <1>;
121 #size-cells = <1>;
122
123 partition@0 {
124 label = "u-boot";
125 reg = <0x0 0x30000>;
126 read-only;
127 };
128
129 partition@30000 {
130 label = "u-boot-env";
131 reg = <0x30000 0x10000>;
132 read-only;
133 };
134
135 partition@40000 {
136 label = "factory";
137 reg = <0x40000 0x10000>;
138 read-only;
139
140 nvmem-layout {
141 compatible = "fixed-layout";
142 #address-cells = <1>;
143 #size-cells = <1>;
144
145 eeprom_factory_0: eeprom@0 {
146 reg = <0x0 0x4da8>;
147 };
148
149 eeprom_factory_8000: eeprom@8000 {
150 reg = <0x8000 0x4da8>;
151 };
152
153 macaddr_factory_4: macaddr@4 {
154 compatible = "mac-base";
155 reg = <0x4 0x6>;
156 #nvmem-cell-cells = <1>;
157 };
158 };
159 };
160
161 partition@50000 {
162 compatible = "openwrt,trx";
163 label = "firmware";
164 reg = <0x50000 0x7c0000>;
165 };
166
167 partition@810000 {
168 label = "Kernel2";
169 reg = <0x810000 0x7c0000>;
170 read-only;
171 };
172
173 partition@fd0000 {
174 label = "glbcfg";
175 reg = <0xfd0000 0x010000>;
176 read-only;
177 };
178
179 partition@fe0000 {
180 label = "board_data";
181 reg = <0xfe0000 0x20000>;
182 read-only;
183 };
184 };
185 };
186 };
187
188 &gmac0 {
189 nvmem-cells = <&macaddr_factory_4 (-1)>;
190 nvmem-cell-names = "mac-address";
191 };
192
193 &gmac1 {
194 status = "okay";
195 label = "wan";
196 phy-handle = <&ethphy0>;
197
198 nvmem-cells = <&macaddr_factory_4 (-1)>;
199 nvmem-cell-names = "mac-address";
200 };
201
202 &mdio {
203 ethphy0: ethernet-phy@0 {
204 reg = <0>;
205 };
206 };
207
208 &switch0 {
209 ports {
210 port@1 {
211 status = "okay";
212 label = "lan4";
213 };
214
215 port@2 {
216 status = "okay";
217 label = "lan3";
218 };
219
220 port@3 {
221 status = "okay";
222 label = "lan2";
223 };
224
225 port@4 {
226 status = "okay";
227 label = "lan1";
228 };
229 };
230 };
231
232 &pcie {
233 status = "okay";
234 };
235
236 &pcie0 {
237 wifi@0,0 {
238 compatible = "mediatek,mt76";
239 reg = <0x0000 0 0 0 0>;
240 nvmem-cells = <&eeprom_factory_0>;
241 nvmem-cell-names = "eeprom";
242 ieee80211-freq-limit = <2400000 2500000>;
243 };
244 };
245
246 &pcie1 {
247 wifi@0,0 {
248 compatible = "mediatek,mt76";
249 reg = <0x0000 0 0 0 0>;
250 nvmem-cells = <&eeprom_factory_8000>;
251 nvmem-cell-names = "eeprom";
252 ieee80211-freq-limit = <5000000 6000000>;
253 };
254 };
255
256 &state_default {
257 gpio {
258 groups = "i2c", "uart2", "uart3", "wdt", "sdhci";
259 function = "gpio";
260 };
261 };
262
263 &xhci {
264 status = "disabled";
265 };