ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_arcadyan_we420223-99.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 model = "Arcadyan WE420223-99";
11 compatible = "arcadyan,we420223-99", "mediatek,mt7621-soc";
12
13 aliases {
14 led-boot = &led_power_green;
15 led-failsafe = &led_power_red;
16 led-running = &led_power_green;
17 led-upgrade = &led_wps_green;
18 led-wifi = &led_wifi_green;
19 };
20
21 chosen {
22 bootargs = "console=ttyS0,57600 ubi.mtd=5 root=/dev/ubiblock0_0";
23 };
24
25 keys {
26 compatible = "gpio-keys";
27
28 reset {
29 label = "reset";
30 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RESTART>;
32 };
33
34 wps {
35 label = "wps";
36 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_WPS_BUTTON>;
38 };
39 };
40
41 leds {
42 compatible = "gpio-leds";
43
44 led_power_green: power_green {
45 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
46 color = <LED_COLOR_ID_GREEN>;
47 function = LED_FUNCTION_POWER;
48 default-state = "on";
49 };
50
51 led_power_red: power_red {
52 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
53 color = <LED_COLOR_ID_RED>;
54 function = LED_FUNCTION_FAULT;
55 };
56
57 led_wifi_blue: wifi_blue {
58 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
59 color = <LED_COLOR_ID_BLUE>;
60 function = LED_FUNCTION_WLAN;
61 };
62
63 led_wifi_green: wifi_green {
64 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
65 color = <LED_COLOR_ID_GREEN>;
66 function = LED_FUNCTION_WLAN;
67 };
68
69 led_wps_red: wps_red {
70 gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
71 color = <LED_COLOR_ID_RED>;
72 function = LED_FUNCTION_WPS;
73 };
74
75 led_wps_green: wps_green {
76 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
77 color = <LED_COLOR_ID_GREEN>;
78 function = LED_FUNCTION_WPS;
79 };
80
81 led_followme_r: followme_red {
82 gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
83 color = <LED_COLOR_ID_RED>;
84 };
85
86 led_followme_g: followme_green {
87 gpios = <&gpio 48 GPIO_ACTIVE_LOW>;
88 color = <LED_COLOR_ID_GREEN>;
89 };
90 };
91 };
92
93 &spi0 {
94 status = "okay";
95
96 flash@0 {
97 compatible = "jedec,spi-nor";
98
99 reg = <0>;
100 spi-max-frequency = <70000000>;
101
102 partitions {
103 compatible = "fixed-partitions";
104 #address-cells = <1>;
105 #size-cells = <1>;
106
107 partition@0 {
108 label = "ALL";
109 reg = <0x0 0x2000000>;
110 read-only;
111 };
112
113 partition@1 {
114 label = "Bootloader";
115 reg = <0x0 0x30000>;
116 read-only;
117 };
118
119 partition@30000 {
120 label = "Config";
121 reg = <0x30000 0x10000>;
122 };
123
124 partition@40000 {
125 label = "Factory";
126 reg = <0x40000 0x10000>;
127 read-only;
128
129 nvmem-layout {
130 compatible = "fixed-layout";
131 #address-cells = <1>;
132 #size-cells = <1>;
133
134 eeprom_factory_0: eeprom@0 {
135 reg = <0x0 0x4da8>;
136 };
137 };
138 };
139
140 partition@50000 {
141 label = "kernel";
142 reg = <0x50000 0x1f60000>;
143 };
144
145 partition@490000 {
146 label = "rootfs";
147 reg = <0x490000 0x1b20000>;
148 };
149
150 partition@1000000 {
151 label = "Kernel2";
152 reg = <0x1000000 0xfb0000>;
153 };
154
155 partition@1440000 {
156 label = "RootFS2";
157 reg = <0x1440000 0xb70000>;
158 };
159
160 partition@1fb0000 {
161 label = "glbcfg";
162 reg = <0x1fb0000 0x10000>;
163 read-only;
164 };
165
166 partition@1fc0000 {
167 label = "board_data";
168 reg = <0x1fc0000 0x10000>;
169 read-only;
170 };
171
172 partition@1fd0000 {
173 label = "glbcfg2";
174 reg = <0x1fd0000 0x10000>;
175 read-only;
176 };
177
178 partition@1fe0000 {
179 label = "board_data2";
180 reg = <0x1fe0000 0x10000>;
181 read-only;
182 };
183 };
184 };
185 };
186
187 &xhci {
188 status = "disabled";
189 };
190
191 &switch0 {
192 ports {
193 port@1 {
194 status = "okay";
195 label = "swp1";
196 };
197 };
198 };
199
200 &gmac1 {
201 status = "okay";
202 label = "swp0";
203 phy-handle = <&ethphy0>;
204 };
205
206 &mdio {
207 ethphy0: ethernet-phy@0 {
208 reg = <0>;
209 };
210 };
211
212 &pcie {
213 status = "okay";
214 };
215
216 &pcie1 {
217 mt76@0,0 {
218 reg = <0x0000 0 0 0 0>;
219 nvmem-cells = <&eeprom_factory_0>;
220 nvmem-cell-names = "eeprom";
221 };
222 };