ramips: clean up useless dts partition labels
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_netgear_wac104.dts
1 // SPDX-License-Identifier: GPL-2.0-only 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 = "netgear,wac104", "mediatek,mt7621-soc";
11 model = "Netgear WAC104";
12
13 aliases {
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 label-mac-device = &gmac0;
19 };
20
21 keys {
22 compatible = "gpio-keys";
23
24 wps {
25 label = "wps";
26 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_WPS_BUTTON>;
28 };
29
30 wifi {
31 label = "wifi";
32 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
33 linux,code = <KEY_RFKILL>;
34 };
35
36 reset {
37 label = "reset";
38 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
39 linux,code = <KEY_RESTART>;
40 };
41 };
42
43 leds {
44 compatible = "gpio-leds";
45
46 wps {
47 function = LED_FUNCTION_WPS;
48 color = <LED_COLOR_ID_GREEN>;
49 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
50 };
51
52 led_power: power {
53 function = LED_FUNCTION_POWER;
54 color = <LED_COLOR_ID_GREEN>;
55 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
56 };
57
58 wifi {
59 label = "green:wifi";
60 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
61 linux,default-trigger = "phy0tpt";
62 };
63 };
64 };
65
66 &gmac0 {
67 nvmem-cells = <&macaddr_factory_4>;
68 nvmem-cell-names = "mac-address";
69 };
70
71 &nand {
72 status = "okay";
73
74 partitions {
75 compatible = "fixed-partitions";
76 #address-cells = <1>;
77 #size-cells = <1>;
78
79 partition@0 {
80 label = "u-boot";
81 reg = <0x0 0x100000>;
82 read-only;
83 };
84
85 partition@100000 {
86 label = "SC PID";
87 reg = <0x100000 0x100000>;
88 read-only;
89 };
90
91 partition@200000 {
92 label = "kernel";
93 reg = <0x200000 0x400000>;
94 };
95
96 partition@600000 {
97 label = "ubi";
98 reg = <0x600000 0x1c00000>;
99 };
100
101 partition@2e00000 {
102 label = "factory";
103 reg = <0x2e00000 0x100000>;
104 read-only;
105
106 nvmem-layout {
107 compatible = "fixed-layout";
108 #address-cells = <1>;
109 #size-cells = <1>;
110
111 eeprom_factory_0: eeprom@0 {
112 reg = <0x0 0x400>;
113 };
114
115 eeprom_factory_8000: eeprom@8000 {
116 reg = <0x8000 0x200>;
117 };
118
119 macaddr_factory_4: macaddr@4 {
120 reg = <0x4 0x6>;
121 };
122 };
123 };
124
125 partition@4200000 {
126 label = "reserved";
127 reg = <0x4200000 0x3c00000>;
128 read-only;
129 };
130 };
131 };
132
133 &pcie {
134 status = "okay";
135 };
136
137 &pcie0 {
138 wifi@0,0 {
139 compatible = "mediatek,mt76";
140 reg = <0x0 0 0 0 0>;
141 nvmem-cells = <&eeprom_factory_8000>;
142 nvmem-cell-names = "eeprom";
143 ieee80211-freq-limit = <5000000 6000000>;
144 };
145 };
146
147 &pcie2 {
148 wifi@0,0 {
149 compatible = "mediatek,mt76";
150 reg = <0x0 0 0 0 0>;
151 nvmem-cells = <&eeprom_factory_0>;
152 nvmem-cell-names = "eeprom";
153 ieee80211-freq-limit = <2400000 2500000>;
154 };
155 };
156
157 &state_default {
158 gpio {
159 groups = "uart3", "jtag", "wdt";
160 function = "gpio";
161 };
162 };
163
164 &gmac1 {
165 status = "okay";
166 label = "lan4";
167 phy-handle = <&ethphy0>;
168
169 nvmem-cells = <&macaddr_factory_4>;
170 nvmem-cell-names = "mac-address";
171 };
172
173 &mdio {
174 ethphy0: ethernet-phy@0 {
175 reg = <0>;
176 };
177 };
178
179 &switch0 {
180 ports {
181 port@1 {
182 status = "okay";
183 label = "lan3";
184 };
185
186 port@2 {
187 status = "okay";
188 label = "lan2";
189 };
190
191 port@3 {
192 status = "okay";
193 label = "lan1";
194 };
195 };
196 };
197
198 &xhci {
199 status = "disabled";
200 };