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 {
92 reg = <0x40000 0x30000>;
95 compatible = "nvmem-cells";
99 macaddr_factory_10007: macaddr@10007 {
105 compatible = "openwrt,uimage", "denx,uimage";
106 openwrt,offset = <FW_EDIMAX_OFFSET>;
107 openwrt,partition-magic = <FW_MAGIC_EDIMAX>;
109 reg = <0x70000 0x790000>;
116 nvmem-cells = <&macaddr_factory_10007>;
117 nvmem-cell-names = "mac-address";
126 compatible = "mediatek,mt76";
127 reg = <0x0000 0 0 0 0>;
128 mediatek,mtd-eeprom = <&factory 0x8000>;
129 ieee80211-freq-limit = <5000000 6000000>;
134 ralink,mtd-eeprom = <&factory 0x0>;