ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_elecom_wrc-2533ghbk.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 #include <dt-bindings/leds/common.h>
8
9 / {
10 aliases {
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 wps {
21 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
22 color = <LED_COLOR_ID_RED>;
23 function = LED_FUNCTION_WPS;
24 };
25
26 led_power: power {
27 gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
28 color = <LED_COLOR_ID_WHITE>;
29 function = LED_FUNCTION_POWER;
30 };
31
32 wlan2g {
33 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
34 color = <LED_COLOR_ID_WHITE>;
35 function = LED_FUNCTION_WLAN;
36 function-enumerator = <1>;
37 linux,default-trigger = "phy0tpt";
38 };
39
40 wlan5g {
41 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
42 color = <LED_COLOR_ID_WHITE>;
43 function = LED_FUNCTION_WLAN;
44 function-enumerator = <2>;
45 linux,default-trigger = "phy1tpt";
46 };
47 };
48
49 keys {
50 compatible = "gpio-keys";
51
52 auto {
53 label = "auto";
54 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
55 linux,code = <BTN_0>;
56 linux,input-type = <EV_SW>;
57 };
58
59 reset {
60 label = "reset";
61 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
62 linux,code = <KEY_RESTART>;
63 };
64
65 wps {
66 label = "wps";
67 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
68 linux,code = <KEY_WPS_BUTTON>;
69 };
70 };
71 };
72
73 &spi0 {
74 status = "okay";
75
76 flash@0 {
77 compatible = "jedec,spi-nor";
78 reg = <0>;
79 spi-max-frequency = <40000000>;
80
81 partitions: partitions {
82 compatible = "fixed-partitions";
83 #address-cells = <1>;
84 #size-cells = <1>;
85
86 partition@0 {
87 label = "u-boot";
88 reg = <0x0 0x30000>;
89 read-only;
90 };
91
92 partition@30000 {
93 label = "u-boot-env";
94 reg = <0x30000 0x10000>;
95 read-only;
96 };
97
98 partition@40000 {
99 label = "factory";
100 reg = <0x40000 0x10000>;
101 read-only;
102
103 nvmem-layout {
104 compatible = "fixed-layout";
105 #address-cells = <1>;
106 #size-cells = <1>;
107
108 eeprom_factory_0: eeprom@0 {
109 reg = <0x0 0x4da8>;
110 };
111
112 eeprom_factory_8000: eeprom@8000 {
113 reg = <0x8000 0x4da8>;
114 };
115 };
116 };
117 };
118 };
119 };
120
121 &gmac1 {
122 status = "okay";
123 label = "wan";
124 phy-handle = <&ethphy0>;
125 };
126
127 &mdio {
128 ethphy0: ethernet-phy@0 {
129 reg = <0>;
130 };
131 };
132
133 &switch0 {
134 ports {
135 port@1 {
136 status = "okay";
137 label = "lan4";
138 };
139
140 port@2 {
141 status = "okay";
142 label = "lan3";
143 };
144
145 port@3 {
146 status = "okay";
147 label = "lan2";
148 };
149
150 port@4 {
151 status = "okay";
152 label = "lan1";
153 };
154 };
155 };
156
157 &state_default {
158 gpio {
159 groups = "uart2", "uart3", "jtag", "wdt";
160 function = "gpio";
161 };
162 };
163
164 &pcie {
165 status = "okay";
166 };
167
168 &pcie0 {
169 wifi@0,0 {
170 compatible = "mediatek,mt76";
171 reg = <0x0000 0 0 0 0>;
172 nvmem-cells = <&eeprom_factory_0>;
173 nvmem-cell-names = "eeprom";
174 ieee80211-freq-limit = <2400000 2500000>;
175 };
176 };
177
178 &pcie1 {
179 wifi@0,0 {
180 compatible = "mediatek,mt76";
181 reg = <0x0000 0 0 0 0>;
182 nvmem-cells = <&eeprom_factory_8000>;
183 nvmem-cell-names = "eeprom";
184 ieee80211-freq-limit = <5000000 6000000>;
185 };
186 };
187
188 &xhci {
189 status = "disabled";
190 };