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>;
123 compatible = "denx,uimage";
125 reg = <0x50000 0xfb0000>;
133 groups = "uartf", "rgmii1", "wled";
139 pinctrl-names = "default";
140 pinctrl-0 = <&ephy_pins>;
142 mediatek,portmap = "wllll";
144 nvmem-cells = <&macaddr_factory_28>;
145 nvmem-cell-names = "mac-address";
166 reg = <0x0000 0 0 0 0>;
167 mediatek,mtd-eeprom = <&factory 0x8000>;
168 ieee80211-freq-limit = <5000000 6000000>;
178 ralink,mtd-eeprom = <&factory 0x0>;
182 compatible = "nvmem-cells";
183 #address-cells = <1>;
186 macaddr_factory_28: macaddr@28 {