ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_edimax_rx21s.dtsi
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
8 / {
9 aliases {
10 label-mac-device = &gmac0;
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
15 };
16
17 keys {
18 compatible = "gpio-keys";
19
20 reset {
21 label = "reset";
22 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_RESTART>;
24 };
25
26 wps {
27 label = "wps";
28 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_WPS_BUTTON>;
30 };
31 };
32
33 leds {
34 compatible = "gpio-leds";
35
36 led_power: led_1 {
37 label = "red:led1";
38 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
39 };
40
41 led_2 {
42 label = "red:led2";
43 gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
44 };
45
46 led_3 {
47 label = "red:led3";
48 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
49 };
50
51 led_4 {
52 label = "red:led4";
53 gpios = <&gpio 15 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 = <40000000>;
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 = <0x0 0x30000>;
74 read-only;
75 };
76
77 partition@30000 {
78 label = "u-boot-env";
79 reg = <0x30000 0x10000>;
80 read-only;
81 };
82
83 partition@40000 {
84 label = "factory";
85 reg = <0x40000 0x10000>;
86 read-only;
87
88 nvmem-layout {
89 compatible = "fixed-layout";
90 #address-cells = <1>;
91 #size-cells = <1>;
92
93 eeprom_factory_0: eeprom@0 {
94 reg = <0x0 0x4da8>;
95 };
96
97 eeprom_factory_8000: eeprom@8000 {
98 reg = <0x8000 0x4da8>;
99 };
100
101 macaddr_factory_4: macaddr@4 {
102 reg = <0x4 0x6>;
103 };
104 };
105 };
106
107 partition@50000 {
108 compatible = "denx,uimage";
109 label = "firmware";
110 reg = <0x50000 0xfb0000>;
111 };
112 };
113 };
114 };
115
116 &pcie {
117 status = "okay";
118 };
119
120 &pcie0 {
121 wifi0: wifi@0,0 {
122 compatible = "mediatek,mt76";
123 reg = <0x0000 0 0 0 0>;
124 nvmem-cells = <&eeprom_factory_0>;
125 nvmem-cell-names = "eeprom";
126 ieee80211-freq-limit = <2400000 2500000>;
127 };
128 };
129
130 &pcie1 {
131 wifi1: wifi@0,0 {
132 compatible = "mediatek,mt76";
133 reg = <0x0000 0 0 0 0>;
134 nvmem-cells = <&eeprom_factory_8000>;
135 nvmem-cell-names = "eeprom";
136 ieee80211-freq-limit = <5000000 6000000>;
137 };
138 };
139
140 &gmac0 {
141 nvmem-cells = <&macaddr_factory_4>;
142 nvmem-cell-names = "mac-address";
143 };
144
145 &gmac1 {
146 status = "okay";
147 label = "wan";
148 phy-handle = <&ethphy0>;
149
150 nvmem-cells = <&macaddr_factory_4>;
151 nvmem-cell-names = "mac-address";
152 };
153
154 &mdio {
155 ethphy0: ethernet-phy@0 {
156 reg = <0>;
157 };
158 };
159
160 &switch0 {
161 ports {
162 port@1 {
163 status = "okay";
164 label = "lan4";
165 };
166
167 port@2 {
168 status = "okay";
169 label = "lan3";
170 };
171
172 port@3 {
173 status = "okay";
174 label = "lan2";
175 };
176
177 port@4 {
178 status = "okay";
179 label = "lan1";
180 };
181 };
182 };
183
184 &state_default {
185 gpio {
186 groups = "uart3", "uart2", "jtag", "wdt";
187 function = "gpio";
188 };
189 };
190
191 &xhci {
192 status = "disabled";
193 };