ramips: mt7621: nix mac-address-increment
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7621_sercomm_dxx_nand_256m.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 aliases {
11 label-mac-device = &gmac0;
12
13 led-boot = &led_status_green;
14 led-failsafe = &led_status_red;
15 led-running = &led_status_green;
16 led-upgrade = &led_status_red;
17 };
18
19 leds {
20 compatible = "gpio-leds";
21
22 led-1 {
23 label = "blue:wan";
24 color = <LED_COLOR_ID_BLUE>;
25 function = LED_FUNCTION_WAN;
26 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
27 };
28
29 led_status_green: led-0 {
30 label = "green:status";
31 color = <LED_COLOR_ID_GREEN>;
32 function = LED_FUNCTION_STATUS;
33 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
34 };
35
36 led_status_red: led-2 {
37 label = "red:status";
38 color = <LED_COLOR_ID_RED>;
39 function = LED_FUNCTION_STATUS;
40 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
41 };
42 };
43
44 keys {
45 compatible = "gpio-keys";
46
47 wps {
48 label = "wps";
49 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
50 linux,code = <KEY_WPS_BUTTON>;
51 };
52
53 reset {
54 label = "reset";
55 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
56 linux,code = <KEY_RESTART>;
57 };
58 };
59
60 ubi-concat {
61 compatible = "mtd-concat";
62 devices = <&ubiconcat0 &ubiconcat1 &ubiconcat2 \
63 &ubiconcat3>;
64
65 partitions {
66 compatible = "fixed-partitions";
67 #address-cells = <1>;
68 #size-cells = <1>;
69
70 partition@0 {
71 label = "ubi";
72 reg = <0x0 0xca00000>;
73 };
74 };
75 };
76 };
77
78 &nand {
79 status = "okay";
80
81 partitions {
82 compatible = "sercomm,sc-partitions", "fixed-partitions";
83 #address-cells = <1>;
84 #size-cells = <1>;
85
86 partition@0 {
87 label = "u-boot";
88 reg = <0x0 0x100000>;
89 sercomm,scpart-id = <0>;
90 read-only;
91 };
92
93 partition@100000 {
94 label = "dynamic partition map";
95 reg = <0x100000 0x100000>;
96 sercomm,scpart-id = <1>;
97 read-only;
98 };
99
100 factory: partition@200000 {
101 label = "Factory";
102 reg = <0x200000 0x100000>;
103 sercomm,scpart-id = <2>;
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 0x4da8>;
117 };
118
119 macaddr_factory_21000: macaddr@21000 {
120 compatible = "mac-base";
121 reg = <0x21000 0x6>;
122 #nvmem-cell-cells = <1>;
123 };
124 };
125 };
126
127 partition@300000 {
128 label = "Boot Flag";
129 reg = <0x300000 0x100000>;
130 sercomm,scpart-id = <3>;
131 };
132
133 partition@400000 {
134 label = "kernel";
135 reg = <0x400000 0x600000>;
136 sercomm,scpart-id = <4>;
137 };
138
139 partition@a00000 {
140 label = "Kernel 2";
141 reg = <0xa00000 0x600000>;
142 sercomm,scpart-id = <5>;
143 read-only;
144 };
145
146 ubiconcat0: partition@1000000 {
147 label = "File System 1";
148 reg = <0x1000000 0x2000000>;
149 sercomm,scpart-id = <6>;
150 };
151
152 partition@3000000 {
153 label = "File System 2";
154 reg = <0x3000000 0x2000000>;
155 sercomm,scpart-id = <7>;
156 read-only;
157 };
158
159 ubiconcat1: partition@5000000 {
160 label = "Configuration/log";
161 reg = <0x5000000 0x1400000>;
162 sercomm,scpart-id = <8>;
163 };
164
165 ubiconcat2: partition@6400000 {
166 label = "Debug (Ftool)";
167 reg = <0x6400000 0x1a00000>;
168 sercomm,scpart-id = <9>;
169 };
170
171 ubiconcat3: partition@8000000 {
172 label = "Container";
173 reg = <0x8000000 0x7c00000>;
174 sercomm,scpart-id = <10>;
175 };
176 };
177 };
178
179 &pcie {
180 status = "okay";
181 };
182
183 &pcie0 {
184 wifi@0,0 {
185 compatible = "mediatek,mt76";
186 reg = <0x0000 0 0 0 0>;
187 nvmem-cells = <&eeprom_factory_8000>;
188 nvmem-cell-names = "eeprom";
189 ieee80211-freq-limit = <5000000 6000000>;
190 };
191 };
192
193 &pcie1 {
194 wifi@0,0 {
195 compatible = "mediatek,mt76";
196 reg = <0x0000 0 0 0 0>;
197 nvmem-cells = <&eeprom_factory_0>;
198 nvmem-cell-names = "eeprom";
199 ieee80211-freq-limit = <2400000 2500000>;
200 };
201 };
202
203 &gmac0 {
204 nvmem-cells = <&macaddr_factory_21000>;
205 nvmem-cell-names = "mac-address";
206 };
207
208 &gmac1 {
209 status = "okay";
210 label = "wan";
211 phy-handle = <&ethphy0>;
212 };
213
214 &mdio {
215 ethphy0: ethernet-phy@0 {
216 reg = <0>;
217 };
218 };
219
220 &switch0 {
221 ports {
222 port@1 {
223 status = "okay";
224 label = "lan1";
225 };
226
227 port@2 {
228 status = "okay";
229 label = "lan2";
230 };
231
232 port@3 {
233 status = "okay";
234 label = "lan3";
235 };
236
237 port@4 {
238 status = "okay";
239 label = "lan4";
240 };
241 };
242 };
243
244 &uartlite3 {
245 status = "okay";
246 };
247
248 &state_default {
249 gpio {
250 groups = "jtag", "uart2";
251 function = "gpio";
252 };
253 };