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>;
88 compatible = "fixed-layout";
92 eeprom_factory_0: eeprom@0 {
96 eeprom_factory_8000: eeprom@8000 {
100 macaddr_factory_4: macaddr@4 {
101 compatible = "mac-base";
103 #nvmem-cell-cells = <1>;
110 reg = <0x60000 0x30000>;
120 nvmem-cells = <&eeprom_factory_0>;
121 nvmem-cell-names = "eeprom";
125 nvmem-cells = <&macaddr_factory_4 0>;
126 nvmem-cell-names = "mac-address";
135 reg = <0x0000 0 0 0 0>;
136 nvmem-cells = <&eeprom_factory_8000>;
137 nvmem-cell-names = "eeprom";
138 ieee80211-freq-limit = <5000000 6000000>;