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 {
83 compatible = "nvmem-cells";
85 reg = <0x40000 0x20000>;
90 eeprom_factory_0: eeprom@0 {
94 eeprom_factory_8000: eeprom@8000 {
98 macaddr_factory_4: macaddr@4 {
105 reg = <0x60000 0x30000>;
115 nvmem-cells = <&eeprom_factory_0>;
116 nvmem-cell-names = "eeprom";
120 nvmem-cells = <&macaddr_factory_4>;
121 nvmem-cell-names = "mac-address";
130 reg = <0x0000 0 0 0 0>;
131 nvmem-cells = <&eeprom_factory_8000>;
132 nvmem-cell-names = "eeprom";
133 ieee80211-freq-limit = <5000000 6000000>;