ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_zyxel_lte5398-m904.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
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 = "zyxel,lte5398-m904", "mediatek,mt7621-soc";
11 model = "ZyXEL LTE5398-M904";
12
13 aliases {
14 label-mac-device = &gmac0;
15 led-boot = &led_power_green;
16 led-failsafe = &led_power_green;
17 led-running = &led_power_green;
18 led-upgrade = &led_power_green;
19 };
20
21 keys {
22 compatible = "gpio-keys";
23
24 wps {
25 label = "wps";
26 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_WPS_BUTTON>;
28 };
29
30 reset {
31 label = "reset";
32 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
33 linux,code = <KEY_RESTART>;
34 };
35 };
36
37 leds {
38 compatible = "gpio-leds";
39
40 led_power_green: power_green {
41 function = LED_FUNCTION_POWER;
42 color = <LED_COLOR_ID_GREEN>;
43 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
44 };
45
46 power_blue {
47 function = LED_FUNCTION_POWER;
48 color = <LED_COLOR_ID_BLUE>;
49 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
50 linux,default-trigger = "usbport";
51 trigger-sources = <&ehci_port2>;
52 };
53
54 internet {
55 label = "green:internet";
56 gpios = <&gpio 23 GPIO_ACTIVE_HIGH>;
57 };
58
59 wifi {
60 label = "green:wifi";
61 gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
62 linux,default-trigger = "phy0tpt";
63 };
64
65 voice {
66 label = "green:voice";
67 gpios = <&gpio 25 GPIO_ACTIVE_HIGH>;
68 };
69
70 lte_green {
71 label = "green:lte";
72 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
73 };
74
75 lte_orange {
76 label = "orange:lte";
77 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
78 };
79
80 lte_red {
81 label = "red:lte";
82 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
83 };
84 };
85
86 gpio_export {
87 compatible = "gpio-export";
88 #size-cells = <0>;
89
90 lte_power {
91 gpio-export,name = "lte_power";
92 gpio-export,output = <0>;
93 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
94 };
95
96 usb_power {
97 gpio-export,name = "usb_power";
98 gpio-export,output = <1>;
99 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
100 };
101 };
102 };
103
104 &nand {
105 status = "okay";
106
107 partitions {
108 compatible = "fixed-partitions";
109 #address-cells = <1>;
110 #size-cells = <1>;
111
112 partition@0 {
113 label = "Bootloader";
114 reg = <0x0 0x80000>;
115 read-only;
116 };
117
118 partition@80000 {
119 label = "Config";
120 reg = <0x80000 0x80000>;
121 };
122
123 partition@100000 {
124 label = "Factory";
125 reg = <0x100000 0x40000>;
126 read-only;
127
128 nvmem-layout {
129 compatible = "fixed-layout";
130 #address-cells = <1>;
131 #size-cells = <1>;
132
133 eeprom_factory_0: eeprom@0 {
134 reg = <0x0 0x400>;
135 };
136
137 eeprom_factory_8000: eeprom@8000 {
138 reg = <0x8000 0x4da8>;
139 };
140
141 macaddr_factory_fe6e: macaddr@fe6e {
142 reg = <0xfe6e 0x6>;
143 };
144 };
145 };
146
147 partition@140000 {
148 label = "Kernel";
149 reg = <0x140000 0x1ec0000>;
150 };
151
152 partition@540000 {
153 label = "ubi";
154 reg = <0x540000 0x1ac0000>;
155 };
156
157 partition@2140000 {
158 label = "Kernel2";
159 reg = <0x2140000 0x1ec0000>;
160 };
161
162 partition@4000000 {
163 label = "wwan";
164 reg = <0x4000000 0x100000>;
165 };
166
167 partition@4100000 {
168 label = "data";
169 reg = <0x4100000 0x1000000>;
170 };
171
172 partition@5100000 {
173 label = "rom-d";
174 reg = <0x5100000 0x100000>;
175 read-only;
176 };
177
178 partition@5200000 {
179 label = "reserve";
180 reg = <0x5200000 0x80000>;
181 };
182 };
183 };
184
185 &pcie {
186 status = "okay";
187 };
188
189 &ethernet {
190 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
191 };
192
193 &state_default {
194 gpio {
195 groups = "i2c", "rgmii2", "uart3", "jtag", "wdt";
196 function = "gpio";
197 };
198 };
199
200 &gmac0 {
201 nvmem-cells = <&macaddr_factory_fe6e>;
202 nvmem-cell-names = "mac-address";
203 };
204
205 &switch0 {
206 ports {
207 port@0 {
208 status = "okay";
209 label = "lan1";
210 };
211 port@2 {
212 status = "okay";
213 label = "lan2";
214 };
215 };
216 };
217
218 &pcie0 {
219 wifi@0,0 {
220 compatible = "mediatek,mt76";
221 reg = <0x0000 0 0 0 0>;
222 nvmem-cells = <&eeprom_factory_0>;
223 nvmem-cell-names = "eeprom";
224 };
225 };
226
227 &pcie1 {
228 wifi@0,0 {
229 compatible = "mediatek,mt76";
230 reg = <0x0000 0 0 0 0>;
231 nvmem-cells = <&eeprom_factory_8000>;
232 nvmem-cell-names = "eeprom";
233 };
234 };