1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "mt7620a.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
11 label-mac-device = ðernet;
13 led-boot = &status_green;
14 led-failsafe = &status_amber;
15 led-running = &status_green;
16 led-upgrade = &status_amber;
20 compatible = "gpio-keys";
24 linux,code = <KEY_RESTART>;
25 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
26 debounce-interval = <60>;
31 linux,code = <KEY_RESTART>;
32 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
33 debounce-interval = <60>;
38 compatible = "gpio-leds";
41 label = "green:status";
42 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
43 color = <LED_COLOR_ID_GREEN>;
44 function = LED_FUNCTION_STATUS;
48 label = "amber:status";
49 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
50 color = <LED_COLOR_ID_AMBER>;
51 function = LED_FUNCTION_STATUS;
55 color = <LED_COLOR_ID_GREEN>;
56 function = LED_FUNCTION_WAN;
57 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
61 color = <LED_COLOR_ID_GREEN>;
62 function = LED_FUNCTION_LAN;
63 function-enumerator = <1>;
64 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
68 color = <LED_COLOR_ID_GREEN>;
69 function = LED_FUNCTION_LAN;
70 function-enumerator = <2>;
71 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
75 color = <LED_COLOR_ID_GREEN>;
76 function = LED_FUNCTION_LAN;
77 function-enumerator = <3>;
78 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
82 color = <LED_COLOR_ID_GREEN>;
83 function = LED_FUNCTION_LAN;
84 function-enumerator = <4>;
85 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
89 color = <LED_COLOR_ID_GREEN>;
90 function = LED_FUNCTION_WLAN;
91 function-enumerator = <24>;
92 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
93 linux,default-trigger = "phy1tpt";
98 compatible = "mtd-concat";
100 devices = <&fwconcat0 &fwconcat1>;
103 compatible = "fixed-partitions";
104 #address-cells = <1>;
108 compatible = "openwrt,uimage";
109 /* sercomm krnl hdr with fw chksums */
110 openwrt,offset = <0x100>;
119 nvmem-cells = <&macaddr_label 0>;
120 nvmem-cell-names = "mac-address";
142 compatible = "mediatek,mt76";
143 reg = <0x0000 0 0 0 0>;
144 ieee80211-freq-limit = <5000000 6000000>;
146 nvmem-cells = <&eeprom_factory_8000>, <&macaddr_label 6>;
147 nvmem-cell-names = "eeprom", "mac-address";
149 /* 5 GHz WLAN phy green led */
161 compatible = "jedec,spi-nor";
163 spi-max-frequency = <70000000>;
167 compatible = "fixed-partitions";
168 #address-cells = <1>;
174 reg = <0x0 0x1000000>;
185 label = "ftd_and_bootflag";
186 reg = <0x30000 0x20000>;
191 reg = <0x50000 0x10000>;
195 compatible = "fixed-layout";
196 #address-cells = <1>;
199 eeprom_factory_0: eeprom@0 {
203 eeprom_factory_8000: eeprom@8000 {
204 reg = <0x8000 0x200>;
210 label = "SC Nvram(permanent data)";
211 reg = <0x60000 0x10000>;
215 compatible = "fixed-layout";
216 #address-cells = <1>;
219 macaddr_label: macaddr@0 {
220 compatible = "mac-base";
222 #nvmem-cell-cells = <1>;
227 fwconcat0: partition@70000 {
229 reg = <0x70000 0x790000>;
231 compatible = "fixed-partitions";
232 #address-cells = <1>;
237 reg = <0x0 0x200000>;
242 reg = <0x200000 0x590000>;
246 fwconcat1: partition@800000 {
248 reg = <0x800000 0x790000>;
250 compatible = "fixed-partitions";
251 #address-cells = <1>;
256 reg = <0x0 0x200000>;
261 reg = <0x200000 0x590000>;
267 reg = <0xf90000 0x10000>;
272 label = "Critical Log";
273 reg = <0xfa0000 0x10000>;
278 label = "Critical Log Bak";
279 reg = <0xfb0000 0x10000>;
284 label = "Xml Config";
285 reg = <0xfc0000 0x20000>;
290 label = "Xml Config Bak";
291 reg = <0xfe0000 0x20000>;
300 groups = "ephy", "rgmii1", "uartf", "wled";
307 nvmem-cells = <&eeprom_factory_0>, <&macaddr_label 2>;
308 nvmem-cell-names = "eeprom", "mac-address";