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 {
117 compatible = "nvmem-cells";
119 reg = <0x40000 0x10000>;
120 #address-cells = <1>;
124 eeprom_factory_0: eeprom@0 {
128 eeprom_factory_8000: eeprom@8000 {
129 reg = <0x8000 0x200>;
132 macaddr_factory_28: macaddr@28 {
138 compatible = "denx,uimage";
140 reg = <0x50000 0xfb0000>;
148 groups = "uartf", "rgmii1", "wled";
154 pinctrl-names = "default";
155 pinctrl-0 = <&ephy_pins>;
157 mediatek,portmap = "wllll";
159 nvmem-cells = <&macaddr_factory_28>;
160 nvmem-cell-names = "mac-address";
181 reg = <0x0000 0 0 0 0>;
182 nvmem-cells = <&eeprom_factory_8000>;
183 nvmem-cell-names = "eeprom";
184 ieee80211-freq-limit = <5000000 6000000>;
194 nvmem-cells = <&eeprom_factory_0>;
195 nvmem-cell-names = "eeprom";