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