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