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 led-boot = &led_system_amber;
12 led-failsafe = &led_system_amber;
13 led-running = &led_system_green;
14 led-upgrade = &led_system_amber;
18 compatible = "gpio-keys";
22 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_RESTART>;
28 compatible = "gpio-leds";
30 led_system_green: system_green {
31 label = "green:system";
32 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
35 led_system_amber: system_amber {
36 label = "amber:system";
37 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
41 label = "green:internet";
42 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
46 label = "amber:internet";
47 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
52 gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
57 gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
62 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
67 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
71 function = LED_FUNCTION_WAN;
72 color = <LED_COLOR_ID_AMBER>;
73 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
77 label = "green:wlan2g";
78 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
79 linux,default-trigger = "phy1tpt";
96 compatible = "jedec,spi-nor";
98 spi-max-frequency = <80000000>;
102 compatible = "fixed-partitions";
103 #address-cells = <1>;
107 label = "bootloader";
114 reg = <0x30000 0x10000>;
120 reg = <0x40000 0x10000>;
124 compatible = "fixed-layout";
125 #address-cells = <1>;
128 eeprom_factory_0: eeprom@0 {
132 eeprom_factory_8000: eeprom@8000 {
133 reg = <0x8000 0x200>;
136 macaddr_factory_28: macaddr@28 {
143 compatible = "denx,uimage";
145 reg = <0x50000 0xfb0000>;
153 groups = "uartf", "rgmii1", "wled";
159 pinctrl-names = "default";
160 pinctrl-0 = <&ephy_pins>;
162 mediatek,portmap = "wllll";
164 nvmem-cells = <&macaddr_factory_28>;
165 nvmem-cell-names = "mac-address";
186 reg = <0x0000 0 0 0 0>;
187 nvmem-cells = <&eeprom_factory_8000>;
188 nvmem-cell-names = "eeprom";
189 ieee80211-freq-limit = <5000000 6000000>;
199 nvmem-cells = <&eeprom_factory_0>;
200 nvmem-cell-names = "eeprom";