ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_zbtlink_zbt-wg1608.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 compatible = "zbtlink,zbt-wg1608", "mediatek,mt7621-soc";
11
12 aliases {
13 led-boot = &led_internet;
14 led-failsafe = &led_internet;
15 led-running = &led_internet;
16 led-upgrade = &led_internet;
17 label-mac-device = &gmac0;
18 };
19
20 chosen {
21 bootargs = "console=ttyS0,115200";
22 };
23
24 keys {
25 compatible = "gpio-keys";
26
27 reset {
28 label = "reset";
29 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
31 };
32 };
33
34 leds {
35 compatible = "gpio-leds";
36
37 led_internet: internet {
38 label = "green:internet";
39 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
40 };
41
42 wwan {
43 label = "green:wwan";
44 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
45 linux,default-trigger = "usbport";
46 trigger-sources = <&hub_port2>;
47 };
48
49 wifi5g {
50 label = "green:wifi5g";
51 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
52 linux,default-trigger = "phy1tpt";
53 };
54 };
55 };
56
57 &sdhci {
58 status = "okay";
59 };
60
61 &spi0 {
62 status = "okay";
63
64 flash0: flash@0 {
65 compatible = "jedec,spi-nor";
66 reg = <0>;
67 spi-max-frequency = <50000000>;
68
69 partitions {
70 compatible = "fixed-partitions";
71 #address-cells = <1>;
72 #size-cells = <1>;
73
74 partition@0 {
75 label = "u-boot";
76 reg = <0x0 0x30000>;
77 read-only;
78 };
79
80 partition@30000 {
81 label = "u-boot-env";
82 reg = <0x30000 0x10000>;
83 read-only;
84 };
85
86 partition@40000 {
87 label = "factory";
88 reg = <0x40000 0x10000>;
89 read-only;
90
91 nvmem-layout {
92 compatible = "fixed-layout";
93 #address-cells = <1>;
94 #size-cells = <1>;
95
96 eeprom_factory_0: eeprom@0 {
97 reg = <0x0 0x400>;
98 };
99
100 eeprom_factory_8000: eeprom@8000 {
101 reg = <0x8000 0x4da8>;
102 };
103
104 macaddr_factory_e000: macaddr@e000 {
105 reg = <0xe000 0x6>;
106 };
107
108 macaddr_factory_e006: macaddr@e006 {
109 reg = <0xe006 0x6>;
110 };
111 };
112 };
113
114 firmware: partition@50000 {
115 compatible = "denx,uimage";
116 label = "firmware";
117 };
118 };
119 };
120 };
121
122 &pcie {
123 status = "okay";
124 };
125
126 &pcie0 {
127 wifi@0,0 {
128 compatible = "mediatek,mt76";
129 reg = <0x0000 0 0 0 0>;
130 nvmem-cells = <&eeprom_factory_0>;
131 nvmem-cell-names = "eeprom";
132 };
133 };
134
135 &pcie1 {
136 wifi@0,0 {
137 compatible = "mediatek,mt76";
138 reg = <0x0000 0 0 0 0>;
139 nvmem-cells = <&eeprom_factory_8000>;
140 nvmem-cell-names = "eeprom";
141 ieee80211-freq-limit = <5000000 6000000>;
142 };
143 };
144
145 &gmac0 {
146 nvmem-cells = <&macaddr_factory_e000>;
147 nvmem-cell-names = "mac-address";
148 };
149
150 &gmac1 {
151 status = "okay";
152 label = "wan";
153 phy-handle = <&ethphy4>;
154
155 nvmem-cells = <&macaddr_factory_e006>;
156 nvmem-cell-names = "mac-address";
157 };
158
159 &mdio {
160 ethphy4: ethernet-phy@4 {
161 reg = <4>;
162 };
163 };
164
165 &switch0 {
166 ports {
167 port@0 {
168 status = "okay";
169 label = "lan1";
170 };
171
172 port@1 {
173 status = "okay";
174 label = "lan2";
175 };
176
177 port@2 {
178 status = "okay";
179 label = "lan3";
180 };
181
182 port@3 {
183 status = "okay";
184 label = "lan4";
185 };
186 };
187 };
188
189 &state_default {
190 gpio {
191 groups = "wdt", "uart2", "jtag";
192 function = "gpio";
193 };
194 };
195
196 &xhci_ehci_port1 {
197 #address-cells = <1>;
198 #size-cells = <0>;
199
200 hub_port2: port@2 {
201 reg = <2>;
202 #trigger-source-cells = <0>;
203 };
204
205 port@4 {
206 reg = <4>;
207 #trigger-source-cells = <0>;
208 };
209 };
210