ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_tplink_tl-wpa8631p-v3.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 = "tplink,tl-wpa8631p-v3", "mediatek,mt7621-soc";
11 model = "TP-Link TL-WPA8631P v3";
12
13 aliases {
14 label-mac-device = &gmac0;
15 led-boot = &led_power;
16 led-failsafe = &led_power;
17 led-running = &led_power;
18 led-upgrade = &led_power;
19 };
20
21 keys {
22 compatible = "gpio-keys";
23
24 reset {
25 label = "reset";
26 linux,code = <KEY_RESTART>;
27 gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
28 debounce-interval = <60>;
29 };
30
31 led {
32 label = "led";
33 linux,code = <KEY_LIGHTS_TOGGLE>;
34 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
35 debounce-interval = <60>;
36 };
37
38 pair {
39 label = "pair";
40 linux,code = <BTN_1>;
41 gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
42 debounce-interval = <60>;
43 };
44
45 wifi {
46 label = "wifi";
47 linux,code = <KEY_RFKILL>;
48 gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
49 debounce-interval = <60>;
50 };
51 };
52
53 leds {
54 compatible = "gpio-leds";
55
56 led_power: power {
57 function = LED_FUNCTION_POWER;
58 color = <LED_COLOR_ID_GREEN>;
59 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
60 };
61
62 lan {
63 function = LED_FUNCTION_LAN;
64 color = <LED_COLOR_ID_GREEN>;
65 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
66 };
67
68 wifi2g {
69 label = "green:wifi2g";
70 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
71 linux,default-trigger = "phy0tpt";
72 };
73
74 wifi5g {
75 label = "green:wifi5g";
76 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
77 linux,default-trigger = "phy1tpt";
78 };
79 };
80
81 gpio-export {
82 compatible = "gpio-export";
83
84 led_control {
85 gpio-export,name = "tp-link:led:control";
86 gpio-export,output = <0>;
87 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
88 };
89 };
90 };
91
92 &spi0 {
93 status = "okay";
94
95 flash@0 {
96 compatible = "jedec,spi-nor";
97 reg = <0>;
98 spi-max-frequency = <25000000>;
99
100 partitions {
101 compatible = "fixed-partitions";
102 #address-cells = <1>;
103 #size-cells = <1>;
104
105 partition@0 {
106 label = "u-boot";
107 reg = <0x0 0x20000>;
108 read-only;
109 };
110
111 partition@20000 {
112 compatible = "tplink,firmware";
113 label = "firmware";
114 reg = <0x20000 0x710000>;
115 };
116
117 partition@730000 {
118 label = "config";
119 reg = <0x730000 0xc0000>;
120 read-only;
121
122 nvmem-layout {
123 compatible = "fixed-layout";
124 #address-cells = <1>;
125 #size-cells = <1>;
126
127 macaddr_config_2008: macaddr@2008 {
128 compatible = "mac-base";
129 reg = <0x2008 0x6>;
130 #nvmem-cell-cells = <1>;
131 };
132 };
133 };
134
135 partition@7f0000 {
136 label = "radio";
137 reg = <0x7f0000 0x10000>;
138 read-only;
139
140 nvmem-layout {
141 compatible = "fixed-layout";
142 #address-cells = <1>;
143 #size-cells = <1>;
144
145 eeprom_radio_0: eeprom@0 {
146 reg = <0x0 0x400>;
147 };
148
149 eeprom_radio_8000: eeprom@8000 {
150 reg = <0x8000 0x4da8>;
151 };
152 };
153 };
154 };
155 };
156 };
157
158 &state_default {
159 gpio {
160 groups = "rgmii2", "wdt";
161 function = "gpio";
162 };
163 };
164
165 &pcie {
166 status = "okay";
167 };
168
169 &pcie0 {
170 wifi@0,0 {
171 compatible = "mediatek,mt76";
172 reg = <0x0000 0 0 0 0>;
173 nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_2008 0>;
174 nvmem-cell-names = "eeprom", "mac-address";
175 ieee80211-freq-limit = <2400000 2500000>;
176 };
177 };
178
179 &pcie1 {
180 wifi@0,0 {
181 compatible = "mediatek,mt76";
182 reg = <0x0000 0 0 0 0>;
183 nvmem-cells = <&eeprom_radio_8000>, <&macaddr_config_2008 1>;
184 nvmem-cell-names = "eeprom", "mac-address";
185 ieee80211-freq-limit = <5000000 6000000>;
186 };
187 };
188
189 &ethernet {
190 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
191 };
192
193 &gmac0 {
194 nvmem-cells = <&macaddr_config_2008 0>;
195 nvmem-cell-names = "mac-address";
196 };
197
198 &switch0 {
199 ports {
200 port@0 {
201 status = "okay";
202 label = "plc0";
203 };
204
205 port@1 {
206 status = "okay";
207 label = "lan1";
208 };
209
210 port@2 {
211 status = "okay";
212 label = "lan2";
213 };
214
215 port@3 {
216 status = "okay";
217 label = "lan3";
218 };
219 };
220 };