ramips: clean up useless dts partition labels
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_wavlink_wl-wn535k1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "mt7620a.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 = "wavlink,wl-wn535k1", "ralink,mt7620a-soc";
11 model = "Wavlink WL-WN535K1";
12
13 aliases {
14 label-mac-device = &wifi0;
15 led-boot = &led_status_blue;
16 led-failsafe = &led_status_red;
17 led-running = &led_status_blue;
18 led-upgrade = &led_status_red;
19 };
20
21 keys {
22 compatible = "gpio-keys";
23
24 reset {
25 label = "reset";
26 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_RESTART>;
28 };
29
30 touchlink {
31 label = "touchlink";
32 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
33 linux,code = <KEY_WPS_BUTTON>;
34 };
35 };
36
37 leds {
38 compatible = "gpio-leds";
39
40 led_status_blue: status_blue {
41 function = LED_FUNCTION_STATUS;
42 color = <LED_COLOR_ID_BLUE>;
43 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
44 };
45
46 led_status_red: status_red {
47 function = LED_FUNCTION_STATUS;
48 color = <LED_COLOR_ID_RED>;
49 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
50 };
51
52 lan1 {
53 label = "green:lan1";
54 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
55 };
56
57 lan2 {
58 label = "green:lan2";
59 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
60 };
61
62 wan {
63 function = LED_FUNCTION_WAN;
64 color = <LED_COLOR_ID_GREEN>;
65 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
66 };
67 };
68 };
69
70 &gpio2 {
71 status = "okay";
72 };
73
74 &spi0 {
75 status = "okay";
76
77 flash@0 {
78 compatible = "jedec,spi-nor";
79 reg = <0>;
80 spi-max-frequency = <50000000>;
81
82 partitions {
83 compatible = "fixed-partitions";
84 #address-cells = <1>;
85 #size-cells = <1>;
86
87 partition@0 {
88 label = "u-boot";
89 reg = <0x0 0x30000>;
90 read-only;
91 };
92
93 partition@30000 {
94 label = "config";
95 reg = <0x30000 0x10000>;
96 read-only;
97 };
98
99 partition@40000 {
100 label = "factory";
101 reg = <0x40000 0x10000>;
102 read-only;
103
104 nvmem-layout {
105 compatible = "fixed-layout";
106 #address-cells = <1>;
107 #size-cells = <1>;
108
109 eeprom_factory_0: eeprom@0 {
110 reg = <0x0 0x200>;
111 };
112
113 eeprom_factory_8000: eeprom@8000 {
114 reg = <0x8000 0x200>;
115 };
116
117 macaddr_factory_28: macaddr@28 {
118 reg = <0x28 0x6>;
119 };
120 };
121 };
122
123 partition@50000 {
124 compatible = "denx,uimage";
125 label = "firmware";
126 reg = <0x50000 0x730000>;
127 };
128
129 partition@780000 {
130 label = "vendor";
131 reg = <0x780000 0x80000>;
132 read-only;
133 };
134 };
135 };
136 };
137
138 &pcie {
139 status = "okay";
140 };
141
142 &pcie0 {
143 wifi0: wifi@0,0 {
144 reg = <0x0000 0 0 0 0>;
145 nvmem-cells = <&eeprom_factory_8000>;
146 nvmem-cell-names = "eeprom";
147 ieee80211-freq-limit = <5000000 6000000>;
148 };
149 };
150
151 &ethernet {
152 pinctrl-names = "default";
153 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
154
155 nvmem-cells = <&macaddr_factory_28>;
156 nvmem-cell-names = "mac-address";
157
158 mediatek,portmap = "llllw";
159
160 port@4 {
161 status = "okay";
162 phy-handle = <&phy4>;
163 phy-mode = "rgmii";
164 };
165
166 port@5 {
167 status = "okay";
168 phy-handle = <&phy5>;
169 phy-mode = "rgmii";
170 };
171
172 mdio-bus {
173 status = "okay";
174
175 phy4: ethernet-phy@4 {
176 reg = <4>;
177 phy-mode = "rgmii";
178 };
179
180 phy5: ethernet-phy@5 {
181 reg = <5>;
182 phy-mode = "rgmii";
183 };
184 };
185 };
186
187 &gsw {
188 mediatek,port4-gmac;
189 };
190
191 &wmac {
192 nvmem-cells = <&eeprom_factory_0>;
193 nvmem-cell-names = "eeprom";
194 };
195
196 &state_default {
197 gpio {
198 groups = "ephy", "i2c", "uartf";
199 function = "gpio";
200 };
201 };