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 factory5g: partition@50000 {
91 reg = <0x50000 0x10000>;
96 label = "Wolf_Config";
97 reg = <0x60000 0x10000>;
103 reg = <0x70000 0x80000>;
109 reg = <0xf0000 0x80000>;
114 compatible = "denx,uimage";
116 reg = <0x170000 0x690000>;
124 groups = "i2c", "uartf", "ephy";
130 nvmem-cells = <&macaddr_factory_28>;
131 nvmem-cell-names = "mac-address";
133 mediatek,portmap = "llllw";
141 pinctrl-names = "default";
142 pinctrl-0 = <&pa_pins>;
144 ralink,mtd-eeprom = <&factory 0x0>;
145 nvmem-cells = <&macaddr_factory_28>;
146 nvmem-cell-names = "mac-address";
155 reg = <0x0000 0 0 0 0>;
156 mediatek,mtd-eeprom = <&factory 0x8000>;
157 ieee80211-freq-limit = <5000000 6000000>;
158 nvmem-cells = <&macaddr_factory_28>;
159 nvmem-cell-names = "mac-address";
160 mac-address-increment = <2>;
165 compatible = "nvmem-cells";
166 #address-cells = <1>;
169 macaddr_factory_28: macaddr@28 {