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 label-mac-device = ðernet;
12 led-boot = &led_power_green;
13 led-failsafe = &led_power_green;
14 led-running = &led_power_green;
15 led-upgrade = &led_power_green;
19 compatible = "gpio-keys";
23 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
24 linux,code = <KEY_RESTART>;
29 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_WPS_BUTTON>;
35 compatible = "gpio-leds";
37 led_power_green: power_green {
38 function = LED_FUNCTION_POWER;
39 color = <LED_COLOR_ID_GREEN>;
40 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
44 function = LED_FUNCTION_WAN;
45 color = <LED_COLOR_ID_ORANGE>;
46 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
50 function = LED_FUNCTION_WAN;
51 color = <LED_COLOR_ID_GREEN>;
52 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
56 function = LED_FUNCTION_POWER;
57 color = <LED_COLOR_ID_ORANGE>;
58 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
67 compatible = "jedec,spi-nor";
69 spi-max-frequency = <50000000>;
72 compatible = "fixed-partitions";
84 reg = <0x30000 0x10000>;
90 reg = <0x40000 0x10000>;
94 compatible = "fixed-layout";
98 eeprom_factory_0: eeprom@0 {
102 eeprom_factory_8000: eeprom@8000 {
103 reg = <0x8000 0x200>;
106 macaddr_factory_28: macaddr@28 {
107 compatible = "mac-base";
109 #nvmem-cell-cells = <1>;
116 reg = <0x50000 0x10000>;
121 label = "Wolf_Config";
122 reg = <0x60000 0x10000>;
128 reg = <0x70000 0x80000>;
134 reg = <0xf0000 0x80000>;
139 compatible = "denx,uimage";
141 reg = <0x170000 0x690000>;
149 groups = "i2c", "uartf", "ephy";
155 nvmem-cells = <&macaddr_factory_28 0>;
156 nvmem-cell-names = "mac-address";
158 mediatek,portmap = "llllw";
166 pinctrl-names = "default", "pa_gpio";
167 pinctrl-0 = <&pa_pins>;
168 pinctrl-1 = <&pa_gpio_pins>;
169 nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_28 0>;
170 nvmem-cell-names = "eeprom", "mac-address";
179 reg = <0x0000 0 0 0 0>;
180 ieee80211-freq-limit = <5000000 6000000>;
181 nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_28 2>;
182 nvmem-cell-names = "eeprom", "mac-address";