ramips: mt7621: nix mac-address-increment
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7621_dlink_dir-xx60-a1.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
8 / {
9 aliases {
10 label-mac-device = &gmac0;
11 led-boot = &led_power_orange;
12 led-failsafe = &led_power_white;
13 led-running = &led_power_white;
14 led-upgrade = &led_net_orange;
15 };
16
17 keys {
18 compatible = "gpio-keys";
19
20 reset {
21 label = "reset";
22 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_RESTART>;
24 };
25
26 wps {
27 label = "wps";
28 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_WPS_BUTTON>;
30 };
31 };
32
33 leds: leds {
34 compatible = "gpio-leds";
35
36 led_power_orange: power_orange {
37 label = "orange:power";
38 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
39 };
40
41 led_power_white: power_white {
42 label = "white:power";
43 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
44 };
45
46 led_net_orange: net_orange {
47 label = "orange:net";
48 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
49 };
50
51 net_white {
52 label = "white:net";
53 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
54 };
55 };
56 };
57
58 &nand {
59 status = "okay";
60
61 partitions {
62 compatible = "fixed-partitions";
63 #address-cells = <1>;
64 #size-cells = <1>;
65
66 partition@0 {
67 label = "Bootloader";
68 reg = <0x0 0x80000>;
69 read-only;
70 };
71
72 partition@80000 {
73 label = "config";
74 reg = <0x80000 0x80000>;
75 read-only;
76 };
77
78 factory: partition@100000 {
79 label = "factory";
80 reg = <0x100000 0x40000>;
81 read-only;
82
83 nvmem-layout {
84 compatible = "fixed-layout";
85 #address-cells = <1>;
86 #size-cells = <1>;
87
88 eeprom_factory_0: eeprom@0 {
89 reg = <0x0 0x4da8>;
90 };
91
92 eeprom_factory_8000: eeprom@8000 {
93 reg = <0x8000 0x4da8>;
94 };
95
96 macaddr_factory_e000: macaddr@e000 {
97 compatible = "mac-base";
98 reg = <0xe000 0x6>;
99 #nvmem-cell-cells = <1>;
100 };
101
102 macaddr_factory_e006: macaddr@e006 {
103 reg = <0xe006 0x6>;
104 };
105 };
106 };
107
108 partition@140000 {
109 label = "config2";
110 reg = <0x140000 0x40000>;
111 read-only;
112 };
113
114 partition@180000 {
115 label = "firmware";
116 compatible = "openwrt,uimage", "denx,uimage";
117 openwrt,padding = <96>;
118 reg = <0x180000 0x2800000>;
119 };
120
121 partition@2980000 {
122 label = "private";
123 reg = <0x2980000 0x2000000>;
124 read-only;
125 };
126
127 partition@4980000 {
128 label = "firmware2";
129 reg = <0x4980000 0x2800000>;
130 };
131
132 partition@7180000 {
133 label = "mydlink";
134 reg = <0x7180000 0x600000>;
135 read-only;
136 };
137
138 partition@7780000 {
139 label = "reserved";
140 reg = <0x7780000 0x880000>;
141 read-only;
142 };
143 };
144 };
145
146 &pcie {
147 status = "okay";
148 };
149
150 &pcie0 {
151 wifi0: wifi@0,0 {
152 compatible = "mediatek,mt76";
153 reg = <0x0000 0 0 0 0>;
154 nvmem-cells = <&macaddr_factory_e000 1>;
155 nvmem-cell-names = "eeprom";
156 ieee80211-freq-limit = <2400000 2500000>;
157
158 led {
159 led-active-low;
160 };
161 };
162 };
163
164 &pcie1 {
165 wifi1: wifi@0,0 {
166 compatible = "mediatek,mt76";
167 reg = <0x0000 0 0 0 0>;
168 nvmem-cells = <&macaddr_factory_e000 2>;
169 nvmem-cell-names = "eeprom";
170 ieee80211-freq-limit = <5000000 6000000>;
171
172 led {
173 led-active-low;
174 };
175 };
176 };
177
178 &gmac0 {
179 nvmem-cells = <&macaddr_factory_e000 0>;
180 nvmem-cell-names = "mac-address";
181 };
182
183 &gmac1 {
184 status = "okay";
185 label = "wan";
186 phy-handle = <&ethphy4>;
187
188 nvmem-cells = <&macaddr_factory_e006>;
189 nvmem-cell-names = "mac-address";
190 };
191
192 &mdio {
193 ethphy4: ethernet-phy@4 {
194 reg = <4>;
195 };
196 };
197
198 &switch0 {
199 ports {
200 port@0 {
201 status = "okay";
202 label = "lan4";
203 };
204
205 port@1 {
206 status = "okay";
207 label = "lan3";
208 };
209
210 port@2 {
211 status = "okay";
212 label = "lan2";
213 };
214
215 port@3 {
216 status = "okay";
217 label = "lan1";
218 };
219 };
220 };
221
222 &state_default {
223 gpio {
224 groups = "i2c", "uart3", "jtag", "wdt";
225 function = "gpio";
226 };
227 };