ramips: clean up useless dts partition labels
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_zyxel_keenetic-extra-ii.dts
1 #include "mt7628an.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
6
7 / {
8 compatible = "zyxel,keenetic-extra-ii", "mediatek,mt7628an-soc";
9 model = "ZyXEL Keenetic Extra II";
10
11 aliases {
12 led-boot = &led_power;
13 led-failsafe = &led_power;
14 led-running = &led_power;
15 led-upgrade = &led_power;
16 };
17
18 chosen {
19 bootargs = "console=ttyS0,57600n8";
20 };
21
22 keys {
23 compatible = "gpio-keys";
24
25 reset {
26 label = "reset";
27 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
28 linux,code = <KEY_RESTART>;
29 };
30
31 wps {
32 label = "wps";
33 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
34 linux,code = <KEY_WPS_BUTTON>;
35 };
36
37 fn {
38 label = "fn";
39 gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
40 linux,code = <BTN_0>;
41 };
42 };
43
44 leds {
45 compatible = "gpio-leds";
46
47 led_power: power {
48 function = LED_FUNCTION_POWER;
49 color = <LED_COLOR_ID_GREEN>;
50 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
51 };
52
53 internet {
54 label = "green:internet";
55 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
56 };
57
58 wifi {
59 label = "green:wifi";
60 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
61 };
62
63 usb {
64 function = LED_FUNCTION_USB;
65 color = <LED_COLOR_ID_GREEN>;
66 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
67 trigger-sources = <&ohci_port1>, <&ehci_port1>;
68 linux,default-trigger = "usbport";
69 };
70 };
71
72 gpio_export {
73 compatible = "gpio-export";
74 #size-cells = <0>;
75
76 usbpower {
77 gpio-export,name = "usbpower";
78 gpio-export,output = <1>;
79 gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
80 };
81 };
82
83 virtual_flash {
84 compatible = "mtd-concat";
85 devices = <&firmware1 &firmware2>;
86
87 partitions {
88 compatible = "fixed-partitions";
89 #address-cells = <1>;
90 #size-cells = <1>;
91
92 partition@0 {
93 compatible = "denx,uimage";
94 label = "firmware";
95 reg = <0x0 0x1d20000>;
96 };
97 };
98 };
99 };
100
101 &spi0 {
102 status = "okay";
103
104 flash@0 {
105 compatible = "jedec,spi-nor";
106 reg = <0>;
107 spi-max-frequency = <32000000>;
108
109 partitions {
110 compatible = "fixed-partitions";
111 #address-cells = <1>;
112 #size-cells = <1>;
113
114 partition@0 {
115 label = "u-boot";
116 reg = <0x0 0x30000>;
117 read-only;
118 };
119
120 partition@30000 {
121 label = "u-config";
122 reg = <0x30000 0x10000>;
123 read-only;
124 };
125
126 partition@40000 {
127 label = "rf-eeprom";
128 reg = <0x40000 0x10000>;
129 read-only;
130
131 nvmem-layout {
132 compatible = "fixed-layout";
133 #address-cells = <1>;
134 #size-cells = <1>;
135
136 eeprom_factory_0: eeprom@0 {
137 reg = <0x0 0x400>;
138 };
139
140 eeprom_factory_8000: eeprom@8000 {
141 reg = <0x8000 0x200>;
142 };
143
144 macaddr_factory_4: macaddr@4 {
145 reg = <0x4 0x6>;
146 };
147 };
148 };
149
150 firmware1: partition@50000 {
151 label = "firmware_1";
152 reg = <0x50000 0xe90000>;
153 };
154
155 partition@ee0000 {
156 label = "config_1";
157 reg = <0xee0000 0x10000>;
158 read-only;
159 };
160
161 partition@ef0000 {
162 label = "storage";
163 reg = <0xef0000 0x100000>;
164 read-only;
165 };
166
167 partition@ff0000 {
168 label = "dump";
169 reg = <0xff0000 0x10000>;
170 read-only;
171 };
172
173 partition@1000000 {
174 label = "u-state";
175 reg = <0x1000000 0x30000>;
176 read-only;
177 };
178
179 partition@1030000 {
180 label = "u-config_res";
181 reg = <0x1030000 0x10000>;
182 read-only;
183 };
184
185 partition@1040000 {
186 label = "rf-eeprom_res";
187 reg = <0x1040000 0x10000>;
188 read-only;
189 };
190
191 firmware2: partition@1050000 {
192 label = "firmware_2";
193 reg = <0x1050000 0xe90000>;
194 };
195
196 partition@1ee0000 {
197 label = "config_2";
198 reg = <0x1ee0000 0x10000>;
199 read-only;
200 };
201 };
202 };
203 };
204
205 &ethernet {
206 nvmem-cells = <&macaddr_factory_4>;
207 nvmem-cell-names = "mac-address";
208 };
209
210 &esw {
211 mediatek,portmap = <0x3e>;
212 };
213
214 &wmac {
215 status = "okay";
216
217 nvmem-cells = <&eeprom_factory_0>;
218 nvmem-cell-names = "eeprom";
219 };
220
221 &pcie {
222 status = "okay";
223 };
224
225 &pcie0 {
226 mt76@0,0 {
227 compatible = "mediatek,mt76";
228 reg = <0x0000 0 0 0 0>;
229 nvmem-cells = <&eeprom_factory_8000>;
230 nvmem-cell-names = "eeprom";
231 ieee80211-freq-limit = <5000000 6000000>;
232 };
233 };
234
235 &state_default {
236 gpio {
237 groups = "gpio", "i2s", "refclk", "spi cs1", "uart1", "wled_an";
238 function = "gpio";
239 };
240 };