ramips: fix and clean up D-Link MAC address
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_dlink_covr-x1860-a1.dts
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 compatible = "dlink,covr-x1860-a1", "mediatek,mt7621-soc";
11 model = "D-Link COVR-X1860 A1";
12
13 aliases {
14 led-boot = &status_orange;
15 led-failsafe = &status_red;
16 led-running = &status_white;
17 led-upgrade = &status_red;
18 };
19
20 chosen {
21 bootargs = "console=ttyS0,115200";
22 };
23
24 keys {
25 compatible = "gpio-keys";
26
27 reset {
28 label = "reset";
29 linux,code = <KEY_RESTART>;
30 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
31 };
32
33 wps {
34 label = "wps";
35 linux,code = <KEY_WPS_BUTTON>;
36 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
37 };
38 };
39
40 leds {
41 compatible = "gpio-leds";
42
43 status_white: power {
44 function = LED_FUNCTION_STATUS;
45 color = <LED_COLOR_ID_WHITE>;
46 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
47 };
48
49 status_orange: status_orange {
50 function = LED_FUNCTION_STATUS;
51 color = <LED_COLOR_ID_ORANGE>;
52 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
53 default-state = "on";
54 };
55
56 status_red: status_red {
57 function = LED_FUNCTION_STATUS;
58 color = <LED_COLOR_ID_RED>;
59 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
60 };
61 };
62
63 virtual_flash {
64 compatible = "mtd-concat";
65
66 devices = <&fwconcat0 &fwconcat1>;
67
68 partitions {
69 compatible = "fixed-partitions";
70 #address-cells = <1>;
71 #size-cells = <1>;
72
73 partition@0 {
74 label = "ubi";
75 reg = <0x0 0x0>;
76 };
77 };
78 };
79 };
80
81 &nand {
82 status = "okay";
83
84 partitions {
85 compatible = "fixed-partitions";
86 #address-cells = <1>;
87 #size-cells = <1>;
88
89 partition@0 {
90 label = "bootloader";
91 reg = <0x0 0x80000>;
92 read-only;
93 };
94
95 partition@80000 {
96 label = "config";
97 reg = <0x80000 0x80000>;
98 read-only;
99 };
100
101 partition@100000 {
102 label = "factory";
103 reg = <0x100000 0x80000>;
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 0xe00>;
113 };
114
115 precal_factory_e10: precal@e10 {
116 reg = <0xe10 0x19c10>;
117 };
118 };
119 };
120
121 partition@180000 {
122 label = "config2";
123 reg = <0x180000 0x40000>;
124 read-only;
125 };
126
127 partition@1c0000 {
128 label = "kernel";
129 reg = <0x1c0000 0x800000>;
130 };
131
132 fwconcat0: partition@9c0000 {
133 label = "fwconcat0";
134 reg = <0x9c0000 0x2000000>;
135 };
136
137 partition@29c0000 {
138 label = "kernel2";
139 reg = <0x29c0000 0x800000>;
140 read-only;
141 };
142
143 fwconcat1: partition@31c0000 {
144 label = "fwconcat1";
145 reg = <0x31c0000 0x2a00000>;
146 };
147
148 partition@5bc0000 {
149 label = "private";
150 reg = <0x5bc0000 0x1400000>;
151 read-only;
152 };
153
154 partition@6fc0000 {
155 label = "mydlink";
156 reg = <0x6fc0000 0x600000>;
157 read-only;
158 };
159
160 partition@75c0000 {
161 label = "myconfig";
162 reg = <0x75c0000 0xa00000>;
163 read-only;
164 };
165 };
166 };
167
168 &pcie {
169 status = "okay";
170 };
171
172 &pcie1 {
173 wifi@0,0 {
174 compatible = "mediatek,mt76";
175 reg = <0x0000 0 0 0 0>;
176 nvmem-cells = <&eeprom_factory_0>, <&precal_factory_e10>;
177 nvmem-cell-names = "eeprom", "precal";
178 mediatek,disable-radar-background;
179 };
180 };
181
182 &gmac1 {
183 status = "okay";
184 phy-handle = <&ethphy4>;
185 };
186
187 &mdio {
188 ethphy4: ethernet-phy@4 {
189 reg = <4>;
190 };
191 };
192
193 &switch0 {
194 ports {
195 port@0 {
196 status = "okay";
197 label = "internet";
198 };
199
200 port@2 {
201 status = "okay";
202 label = "ethernet";
203 };
204 };
205 };