1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "mt7628an.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
10 led-boot = &led_power;
11 led-failsafe = &led_power;
12 led-running = &led_power;
13 led-upgrade = &led_power;
17 compatible = "gpio-keys";
21 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
22 linux,code = <KEY_RESTART>;
27 compatible = "gpio-leds";
31 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
35 label = "green:power";
36 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
40 label = "green:wlan2g";
41 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
42 linux,default-trigger = "phy0tpt";
46 label = "orange:wlan2g";
47 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
52 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
57 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
66 compatible = "jedec,spi-nor";
68 spi-max-frequency = <86000000>;
71 partitions: partitions {
72 compatible = "fixed-partitions";
82 factory: partition@40000 {
84 reg = <0x40000 0x20000>;
90 reg = <0x60000 0x30000>;
100 mediatek,mtd-eeprom = <&factory 0x0>;
104 nvmem-cells = <&macaddr_factory_4>;
105 nvmem-cell-names = "mac-address";
114 reg = <0x0000 0 0 0 0>;
115 mediatek,mtd-eeprom = <&factory 0x8000>;
116 ieee80211-freq-limit = <5000000 6000000>;
121 compatible = "nvmem-cells";
122 #address-cells = <1>;
125 macaddr_factory_4: macaddr@4 {