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/mtd/partitions/uimage.h>
10 compatible = "humax,e2", "ralink,mt7620a-soc";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 label-mac-device = ðernet;
22 compatible = "gpio-leds";
25 label = "green:power";
26 gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
30 label = "green:pairing";
31 gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
36 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
41 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
46 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
51 compatible = "gpio-keys";
55 gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
56 linux,code = <KEY_RESTART>;
69 compatible = "jedec,spi-nor";
71 spi-max-frequency = <50000000>;
74 compatible = "fixed-partitions";
86 reg = <0x30000 0x10000>;
90 factory: partition@40000 {
91 compatible = "nvmem-cells";
93 reg = <0x40000 0x30000>;
98 eeprom_factory_0: eeprom@0 {
102 eeprom_factory_8000: eeprom@8000 {
103 reg = <0x8000 0x200>;
106 macaddr_factory_10007: macaddr@10007 {
112 compatible = "openwrt,uimage", "denx,uimage";
113 openwrt,offset = <FW_EDIMAX_OFFSET>;
114 openwrt,partition-magic = <FW_MAGIC_EDIMAX>;
116 reg = <0x70000 0x790000>;
123 nvmem-cells = <&macaddr_factory_10007>;
124 nvmem-cell-names = "mac-address";
133 compatible = "mediatek,mt76";
134 reg = <0x0000 0 0 0 0>;
135 nvmem-cells = <&eeprom_factory_8000>;
136 nvmem-cell-names = "eeprom";
137 ieee80211-freq-limit = <5000000 6000000>;
142 nvmem-cells = <&eeprom_factory_0>;
143 nvmem-cell-names = "eeprom";