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>
8 #include <dt-bindings/mtd/partitions/uimage.h>
11 compatible = "humax,e2", "ralink,mt7620a-soc";
15 led-boot = &led_power;
16 led-failsafe = &led_power;
17 led-running = &led_power;
18 led-upgrade = &led_power;
19 label-mac-device = ðernet;
23 compatible = "gpio-leds";
26 function = LED_FUNCTION_POWER;
27 color = <LED_COLOR_ID_GREEN>;
28 gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
32 label = "green:pairing";
33 gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
37 function = LED_FUNCTION_WLAN;
38 color = <LED_COLOR_ID_GREEN>;
39 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
43 function = LED_FUNCTION_LAN;
44 color = <LED_COLOR_ID_GREEN>;
45 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
49 function = LED_FUNCTION_WPS;
50 color = <LED_COLOR_ID_GREEN>;
51 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
56 compatible = "gpio-keys";
60 gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
61 linux,code = <KEY_RESTART>;
74 compatible = "jedec,spi-nor";
76 spi-max-frequency = <50000000>;
79 compatible = "fixed-partitions";
91 reg = <0x30000 0x10000>;
95 factory: partition@40000 {
97 reg = <0x40000 0x30000>;
101 compatible = "fixed-layout";
102 #address-cells = <1>;
105 eeprom_factory_0: eeprom@0 {
109 eeprom_factory_8000: eeprom@8000 {
110 reg = <0x8000 0x200>;
113 macaddr_factory_10007: macaddr@10007 {
120 compatible = "openwrt,uimage", "denx,uimage";
121 openwrt,offset = <FW_EDIMAX_OFFSET>;
122 openwrt,partition-magic = <FW_MAGIC_EDIMAX>;
124 reg = <0x70000 0x790000>;
131 nvmem-cells = <&macaddr_factory_10007>;
132 nvmem-cell-names = "mac-address";
141 compatible = "mediatek,mt76";
142 reg = <0x0000 0 0 0 0>;
143 nvmem-cells = <&eeprom_factory_8000>;
144 nvmem-cell-names = "eeprom";
145 ieee80211-freq-limit = <5000000 6000000>;
150 nvmem-cells = <&eeprom_factory_0>;
151 nvmem-cell-names = "eeprom";