ramips: clean up useless dts partition labels
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_tplink_mr600-v2-eu.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
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 = "tplink,mr600-v2-eu", "mediatek,mt7621-soc";
11 model = "TP-Link MR600 v2 (EU)";
12
13 aliases {
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 label-mac-device = &gmac0;
19 };
20
21 chosen {
22 bootargs = "console=ttyS0,115200";
23 };
24
25 keys {
26 compatible = "gpio-keys";
27
28 wlan {
29 label = "wlan";
30 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_WLAN>;
32 };
33
34 reset {
35 label = "reset";
36 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
38 };
39 };
40
41 leds {
42 compatible = "gpio-leds";
43
44 led_power: power {
45 function = LED_FUNCTION_POWER;
46 color = <LED_COLOR_ID_WHITE>;
47 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
48 };
49 wlan {
50 function = LED_FUNCTION_WLAN;
51 color = <LED_COLOR_ID_WHITE>;
52 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
53 linux,default-trigger = "phy1tpt";
54 };
55 wan {
56 function = LED_FUNCTION_WAN;
57 color = <LED_COLOR_ID_WHITE>;
58 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
59 };
60
61 signal1 {
62 label = "white:signal1";
63 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
64 };
65
66 signal2 {
67 label = "white:signal2";
68 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
69 };
70
71 signal3 {
72 label = "white:signal3";
73 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
74 };
75
76 4g {
77 label = "white:4g";
78 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
79 };
80 lan {
81 function = LED_FUNCTION_LAN;
82 color = <LED_COLOR_ID_WHITE>;
83 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
84 };
85 };
86
87 };
88
89 &spi0 {
90 status = "okay";
91
92 flash@0 {
93 compatible = "jedec,spi-nor";
94 reg = <0>;
95 spi-max-frequency = <80000000>;
96
97 partitions {
98 compatible = "fixed-partitions";
99 #address-cells = <1>;
100 #size-cells = <1>;
101
102 partition@0 {
103 label = "uboot";
104 reg = <0x00000 0x20000>;
105 read-only;
106 };
107
108 partition@20000 {
109 compatible = "openwrt,uimage";
110 openwrt,offset = <512>; /* account for the 512-byte long header */
111 label = "firmware";
112 reg = <0x20000 0xfa0000>;
113 };
114
115 partition@fc0000 {
116 label = "romfile";
117 reg = <0xfc0000 0x10000>;
118 read-only;
119
120 nvmem-layout {
121 compatible = "fixed-layout";
122 #address-cells = <1>;
123 #size-cells = <1>;
124
125 macaddr_romfile_f100: romfile@f100 {
126 compatible = "mac-base";
127 reg = <0xf100 0x6>;
128 #nvmem-cell-cells = <1>;
129 };
130 };
131 };
132
133 partition@fd0000 {
134 label = "config";
135 reg = <0xfd0000 0x10000>;
136 read-only;
137 };
138
139 partition@fe0000 {
140 label = "radio";
141 reg = <0xfe0000 0x10000>;
142 read-only;
143
144 nvmem-layout {
145 compatible = "fixed-layout";
146 #address-cells = <1>;
147 #size-cells = <1>;
148
149 eeprom_radio_0: eeprom@0 {
150 reg = <0x0 0x400>;
151 };
152
153 eeprom_radio_8000: eeprom@8000 {
154 reg = <0x8000 0x4da8>;
155 };
156 };
157 };
158 };
159 };
160 };
161
162 &pcie {
163 status = "okay";
164 };
165
166
167 &pcie0 {
168 mt76@0,0 {
169 compatible = "mediatek,mt76";
170 reg = <0x0000 0 0 0 0>;
171 nvmem-cells = <&eeprom_radio_0>, <&macaddr_romfile_f100 0>;
172 nvmem-cell-names = "eeprom", "mac-address";
173 ieee80211-freq-limit = <2400000 2500000>;
174 };
175 };
176
177 &pcie1 {
178 mt76@0,0 {
179 compatible = "mediatek,mt76";
180 reg = <0x0000 0 0 0 0>;
181 ieee80211-freq-limit = <5000000 6000000>;
182 nvmem-cells = <&eeprom_radio_8000>, <&macaddr_romfile_f100 (-1)>;
183 nvmem-cell-names = "eeprom", "mac-address";
184 };
185 };
186
187 &gmac0 {
188 nvmem-cells = <&macaddr_romfile_f100 0>;
189 nvmem-cell-names = "mac-address";
190 };
191
192 &gmac1 {
193 status = "okay";
194 label = "wan";
195 phy-handle = <&ethphy4>;
196
197 nvmem-cells = <&macaddr_romfile_f100 0>;
198 nvmem-cell-names = "mac-address";
199 };
200
201 &mdio {
202 ethphy4: ethernet-phy@4 {
203 reg = <4>;
204 };
205 };
206
207
208 &switch0 {
209 ports {
210 port@1 {
211 status = "okay";
212 label = "lan1";
213 };
214 port@2 {
215 status = "okay";
216 label = "lan2";
217 };
218 port@3 {
219 status = "okay";
220 label = "lan3";
221 };
222 };
223 };