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>
10 led-boot = &led_system_amber;
11 led-failsafe = &led_system_amber;
12 led-running = &led_system_green;
13 led-upgrade = &led_system_amber;
17 compatible = "gpio-keys";
21 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
22 linux,code = <KEY_RESTART>;
27 compatible = "gpio-leds";
29 led_system_green: system_green {
30 label = "green:system";
31 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
34 led_system_amber: system_amber {
35 label = "amber:system";
36 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
40 label = "green:internet";
41 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
45 label = "amber:internet";
46 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
51 gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
56 gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
61 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
66 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
71 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
75 label = "green:wlan2g";
76 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
77 linux,default-trigger = "phy1tpt";
94 compatible = "jedec,spi-nor";
96 spi-max-frequency = <80000000>;
100 compatible = "fixed-partitions";
101 #address-cells = <1>;
105 label = "bootloader";
112 reg = <0x30000 0x10000>;
116 factory: partition@40000 {
118 reg = <0x40000 0x10000>;
122 compatible = "fixed-layout";
123 #address-cells = <1>;
126 eeprom_factory_0: eeprom@0 {
130 eeprom_factory_8000: eeprom@8000 {
131 reg = <0x8000 0x200>;
134 macaddr_factory_28: macaddr@28 {
141 compatible = "denx,uimage";
143 reg = <0x50000 0xfb0000>;
151 groups = "uartf", "rgmii1", "wled";
157 pinctrl-names = "default";
158 pinctrl-0 = <&ephy_pins>;
160 mediatek,portmap = "wllll";
162 nvmem-cells = <&macaddr_factory_28>;
163 nvmem-cell-names = "mac-address";
184 reg = <0x0000 0 0 0 0>;
185 nvmem-cells = <&eeprom_factory_8000>;
186 nvmem-cell-names = "eeprom";
187 ieee80211-freq-limit = <5000000 6000000>;
197 nvmem-cells = <&eeprom_factory_0>;
198 nvmem-cell-names = "eeprom";