ramips: clean up useless dts partition labels
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_tplink_archer-mr200.dts
1 #include "mt7620a.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
6
7 / {
8 compatible = "tplink,archer-mr200", "ralink,mt7620a-soc";
9 model = "TP-Link Archer MR200";
10
11 aliases {
12 led-boot = &led_power;
13 led-failsafe = &led_power;
14 led-running = &led_power;
15 led-upgrade = &led_power;
16 };
17
18 chosen {
19 bootargs = "console=ttyS0,115200";
20 };
21
22 leds {
23 compatible = "gpio-leds";
24
25 lan {
26 function = LED_FUNCTION_LAN;
27 color = <LED_COLOR_ID_WHITE>;
28 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
29 };
30
31 wan {
32 function = LED_FUNCTION_WAN;
33 color = <LED_COLOR_ID_WHITE>;
34 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
35 };
36
37 led_power: power {
38 function = LED_FUNCTION_POWER;
39 color = <LED_COLOR_ID_WHITE>;
40 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
41 };
42
43 4g {
44 label = "white:4g";
45 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
46 };
47
48 wps {
49 function = LED_FUNCTION_WPS;
50 color = <LED_COLOR_ID_WHITE>;
51 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
52 };
53
54 signal1 {
55 label = "white:signal1";
56 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
57 };
58
59 signal2 {
60 label = "white:signal2";
61 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
62 };
63
64 signal3 {
65 label = "white:signal3";
66 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
67 };
68
69 signal4 {
70 label = "white:signal4";
71 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
72 };
73
74 wlan {
75 function = LED_FUNCTION_WLAN;
76 color = <LED_COLOR_ID_WHITE>;
77 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
78 linux,default-trigger = "phy1tpt";
79 };
80 };
81
82 keys {
83 compatible = "gpio-keys";
84
85 reset {
86 label = "reset";
87 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
88 linux,code = <KEY_RESTART>;
89 };
90
91 rfkill {
92 label = "rfkill";
93 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
94 linux,code = <KEY_RFKILL>;
95 };
96 };
97
98 gpio_export {
99 compatible = "gpio-export";
100 #size-cells = <0>;
101
102 power_usb {
103 gpio-export,name = "power_usb1";
104 gpio-export,output = <1>;
105 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
106 };
107 };
108 };
109
110 &gpio1 {
111 status = "okay";
112 };
113
114 &gpio2 {
115 status = "okay";
116 };
117
118 &gpio3 {
119 status = "okay";
120 };
121
122 &spi0 {
123 status = "okay";
124
125 flash@0 {
126 compatible = "jedec,spi-nor";
127 reg = <0>;
128 spi-max-frequency = <30000000>;
129
130 partitions {
131 compatible = "fixed-partitions";
132 #address-cells = <1>;
133 #size-cells = <1>;
134
135 partition@0 {
136 label = "u-boot";
137 reg = <0x0 0x20000>;
138 read-only;
139 };
140
141 partition@20000 {
142 compatible = "tplink,firmware";
143 label = "firmware";
144 reg = <0x20000 0x7b0000>;
145 };
146
147 partition@7d0000 {
148 label = "rom";
149 reg = <0x7d0000 0x10000>;
150 read-only;
151
152 nvmem-layout {
153 compatible = "fixed-layout";
154 #address-cells = <1>;
155 #size-cells = <1>;
156
157 macaddr_rom_f100: macaddr@f100 {
158 reg = <0xf100 0x6>;
159 };
160 };
161 };
162
163 partition@7e0000 {
164 label = "romfile";
165 reg = <0x7e0000 0x10000>;
166 read-only;
167 };
168
169 partition@7f0000 {
170 label = "radio";
171 reg = <0x7f0000 0x10000>;
172 read-only;
173
174 nvmem-layout {
175 compatible = "fixed-layout";
176 #address-cells = <1>;
177 #size-cells = <1>;
178
179 eeprom_radio_0: eeprom@0 {
180 reg = <0x0 0x200>;
181 };
182
183 eeprom_radio_8000: eeprom@8000 {
184 reg = <0x8000 0x200>;
185 };
186 };
187 };
188 };
189 };
190 };
191
192 &state_default {
193 gpio {
194 groups = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd", "ephy", "spi refclk";
195 function = "gpio";
196 };
197 };
198
199 &ethernet {
200 nvmem-cells = <&macaddr_rom_f100>;
201 nvmem-cell-names = "mac-address";
202 };
203
204 &ehci {
205 status = "okay";
206 };
207
208 &ohci {
209 status = "okay";
210 };
211
212 &wmac {
213 nvmem-cells = <&eeprom_radio_0>;
214 nvmem-cell-names = "eeprom";
215 };
216
217 &pcie {
218 status = "okay";
219 };
220
221 &pcie0 {
222 mt76@0,0 {
223 reg = <0x0000 0 0 0 0>;
224 nvmem-cells = <&eeprom_radio_8000>;
225 nvmem-cell-names = "eeprom";
226 };
227 };