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 label-mac-device = ðernet;
11 led-boot = &led_power_green;
12 led-failsafe = &led_power_green;
13 led-running = &led_power_green;
14 led-upgrade = &led_power_green;
18 compatible = "gpio-keys";
22 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_RESTART>;
28 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_WPS_BUTTON>;
34 compatible = "gpio-leds";
36 led_power_green: power_green {
37 label = "green:power";
38 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
43 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
48 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
52 label = "orange:power";
53 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
62 compatible = "jedec,spi-nor";
64 spi-max-frequency = <50000000>;
67 compatible = "fixed-partitions";
79 reg = <0x30000 0x10000>;
83 factory: partition@40000 {
85 reg = <0x40000 0x10000>;
89 compatible = "fixed-layout";
93 eeprom_factory_0: eeprom@0 {
97 eeprom_factory_8000: eeprom@8000 {
101 macaddr_factory_28: macaddr@28 {
102 compatible = "mac-base";
104 #nvmem-cell-cells = <1>;
109 factory5g: partition@50000 {
111 reg = <0x50000 0x10000>;
116 label = "Wolf_Config";
117 reg = <0x60000 0x10000>;
123 reg = <0x70000 0x80000>;
129 reg = <0xf0000 0x80000>;
134 compatible = "denx,uimage";
136 reg = <0x170000 0x690000>;
144 groups = "i2c", "uartf", "ephy";
150 nvmem-cells = <&macaddr_factory_28 0>;
151 nvmem-cell-names = "mac-address";
153 mediatek,portmap = "llllw";
161 pinctrl-names = "default", "pa_gpio";
162 pinctrl-0 = <&pa_pins>;
163 pinctrl-1 = <&pa_gpio_pins>;
164 nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_28 0>;
165 nvmem-cell-names = "eeprom", "mac-address";
174 reg = <0x0000 0 0 0 0>;
175 ieee80211-freq-limit = <5000000 6000000>;
176 nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_28 2>;
177 nvmem-cell-names = "eeprom", "mac-address";