ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_tplink_eap235-wall-v1.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,eap235-wall-v1", "mediatek,mt7621-soc";
11 model = "TP-Link EAP235-Wall v1";
12
13 aliases {
14 label-mac-device = &gmac0;
15 led-boot = &led_status;
16 led-failsafe = &led_status;
17 led-running = &led_status;
18 led-upgrade = &led_status;
19 };
20
21 leds {
22 compatible = "gpio-leds";
23
24 led_status: status {
25 color = <LED_COLOR_ID_WHITE>;
26 function = LED_FUNCTION_STATUS;
27 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
28 };
29 };
30
31 keys {
32 compatible = "gpio-keys";
33
34 led {
35 label = "led";
36 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_LIGHTS_TOGGLE>;
38 };
39
40 reset {
41 label = "reset";
42 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_RESTART>;
44 };
45 };
46
47 gpio-export {
48 compatible = "gpio-export";
49
50 poe_passthrough {
51 gpio-export,name = "poe-passthrough";
52 gpio-export,output = <0>;
53 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
54 };
55 };
56 };
57
58 &spi0 {
59 status = "okay";
60
61 flash@0 {
62 compatible = "jedec,spi-nor";
63 reg = <0>;
64 spi-max-frequency = <20000000>;
65
66 partitions {
67 compatible = "fixed-partitions";
68 #address-cells = <1>;
69 #size-cells = <1>;
70
71 partition@0 {
72 label = "u-boot";
73 reg = <0x00000 0x80000>;
74 read-only;
75 };
76
77 partition@80000 {
78 label = "partition-table";
79 reg = <0x80000 0x10000>;
80 read-only;
81 };
82
83 partition@90000 {
84 label = "product-info";
85 reg = <0x90000 0x10000>;
86 read-only;
87
88 nvmem-layout {
89 compatible = "fixed-layout";
90 #address-cells = <1>;
91 #size-cells = <1>;
92
93 macaddr_info_8: macaddr@8 {
94 compatible = "mac-base";
95 reg = <0x8 0x6>;
96 #nvmem-cell-cells = <1>;
97 };
98 };
99 };
100
101 partition@a0000 {
102 compatible = "tplink,firmware";
103 label = "firmware";
104 reg = <0x0a0000 0xd20000>;
105 };
106
107 partition@dc0000 {
108 label = "user-config";
109 reg = <0xdc0000 0x030000>;
110 read-only;
111 };
112
113 /* 0xdf0000 - 0xf30000 unused */
114
115 partition@f30000 {
116 label = "mutil-log";
117 reg = <0xf30000 0x080000>;
118 read-only;
119 };
120
121 partition@fb0000 {
122 label = "oops";
123 reg = <0xfb0000 0x040000>;
124 read-only;
125 };
126
127 partition@ff0000 {
128 label = "radio";
129 reg = <0xff0000 0x010000>;
130 read-only;
131
132 nvmem-layout {
133 compatible = "fixed-layout";
134 #address-cells = <1>;
135 #size-cells = <1>;
136
137 eeprom_radio_0: eeprom@0 {
138 reg = <0x0 0x400>;
139 };
140
141 eeprom_radio_8000: eeprom@8000 {
142 reg = <0x8000 0x4da8>;
143 };
144 };
145 };
146 };
147 };
148 };
149
150 &state_default {
151 gpio {
152 groups = "uart2", "uart3";
153 function = "gpio";
154 };
155 };
156
157 &pcie {
158 status = "okay";
159 };
160
161 &pcie0 {
162 wifi@0,0 {
163 reg = <0x0000 0 0 0 0>;
164 nvmem-cells = <&eeprom_radio_0>, <&macaddr_info_8 0>;
165 nvmem-cell-names = "eeprom", "mac-address";
166 };
167 };
168
169 &pcie1 {
170 wifi@0,0 {
171 reg = <0x0000 0 0 0 0>;
172 ieee80211-freq-limit = <5000000 6000000>;
173 nvmem-cells = <&eeprom_radio_8000>, <&macaddr_info_8 1>;
174 nvmem-cell-names = "eeprom", "mac-address";
175 };
176 };
177
178 &gmac0 {
179 nvmem-cells = <&macaddr_info_8 0>;
180 nvmem-cell-names = "mac-address";
181 };
182
183 &gmac1 {
184 status = "okay";
185 label = "lan0";
186 phy-handle = <&ethphy0>;
187
188 nvmem-cells = <&macaddr_info_8 0>;
189 nvmem-cell-names = "mac-address";
190 };
191
192 &mdio {
193 ethphy0: ethernet-phy@0 {
194 reg = <0>;
195 };
196 };
197
198 &switch0 {
199 ports {
200 port@1 {
201 status = "okay";
202 label = "lan3";
203 };
204
205 port@2 {
206 status = "okay";
207 label = "lan2";
208 };
209
210 port@3 {
211 status = "okay";
212 label = "lan1";
213 };
214 };
215 };