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 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
42 color = <LED_COLOR_ID_GREEN>;
43 function = LED_FUNCTION_STATUS;
47 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
48 color = <LED_COLOR_ID_AMBER>;
49 function = LED_FUNCTION_STATUS;
53 color = <LED_COLOR_ID_GREEN>;
54 function = LED_FUNCTION_WAN;
55 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
59 color = <LED_COLOR_ID_GREEN>;
60 function = LED_FUNCTION_LAN;
61 function-enumerator = <1>;
62 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
66 color = <LED_COLOR_ID_GREEN>;
67 function = LED_FUNCTION_LAN;
68 function-enumerator = <2>;
69 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
73 color = <LED_COLOR_ID_GREEN>;
74 function = LED_FUNCTION_LAN;
75 function-enumerator = <3>;
76 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
80 color = <LED_COLOR_ID_GREEN>;
81 function = LED_FUNCTION_LAN;
82 function-enumerator = <4>;
83 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
87 color = <LED_COLOR_ID_GREEN>;
88 function = LED_FUNCTION_WLAN;
89 function-enumerator = <24>;
90 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
91 linux,default-trigger = "phy1tpt";
96 compatible = "mtd-concat";
98 devices = <&fwconcat0 &fwconcat1>;
101 compatible = "fixed-partitions";
102 #address-cells = <1>;
106 compatible = "openwrt,uimage";
107 /* sercomm krnl hdr with fw chksums */
108 openwrt,offset = <0x100>;
117 nvmem-cells = <&macaddr_label 0>;
118 nvmem-cell-names = "mac-address";
140 compatible = "mediatek,mt76";
141 reg = <0x0000 0 0 0 0>;
142 ieee80211-freq-limit = <5000000 6000000>;
144 nvmem-cells = <&eeprom_factory_8000>, <&macaddr_label 6>;
145 nvmem-cell-names = "eeprom", "mac-address";
147 /* 5 GHz WLAN phy green led */
159 compatible = "jedec,spi-nor";
161 spi-max-frequency = <70000000>;
165 compatible = "fixed-partitions";
166 #address-cells = <1>;
172 reg = <0x0 0x1000000>;
183 label = "ftd_and_bootflag";
184 reg = <0x30000 0x20000>;
189 reg = <0x50000 0x10000>;
193 compatible = "fixed-layout";
194 #address-cells = <1>;
197 eeprom_factory_0: eeprom@0 {
201 eeprom_factory_8000: eeprom@8000 {
202 reg = <0x8000 0x200>;
208 label = "SC Nvram(permanent data)";
209 reg = <0x60000 0x10000>;
213 compatible = "fixed-layout";
214 #address-cells = <1>;
217 macaddr_label: macaddr@0 {
218 compatible = "mac-base";
220 #nvmem-cell-cells = <1>;
225 fwconcat0: partition@70000 {
227 reg = <0x70000 0x790000>;
229 compatible = "fixed-partitions";
230 #address-cells = <1>;
235 reg = <0x0 0x200000>;
240 reg = <0x200000 0x590000>;
244 fwconcat1: partition@800000 {
246 reg = <0x800000 0x790000>;
248 compatible = "fixed-partitions";
249 #address-cells = <1>;
254 reg = <0x0 0x200000>;
259 reg = <0x200000 0x590000>;
265 reg = <0xf90000 0x10000>;
270 label = "Critical Log";
271 reg = <0xfa0000 0x10000>;
276 label = "Critical Log Bak";
277 reg = <0xfb0000 0x10000>;
282 label = "Xml Config";
283 reg = <0xfc0000 0x20000>;
288 label = "Xml Config Bak";
289 reg = <0xfe0000 0x20000>;
298 groups = "ephy", "rgmii1", "uartf", "wled";
305 nvmem-cells = <&eeprom_factory_0>, <&macaddr_label 2>;
306 nvmem-cell-names = "eeprom", "mac-address";