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>
7 #include <dt-bindings/leds/common.h>
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
18 compatible = "gpio-keys";
22 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_RESTART>;
28 compatible = "gpio-leds";
31 function = LED_FUNCTION_LAN;
32 color = <LED_COLOR_ID_GREEN>;
33 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
37 function = LED_FUNCTION_POWER;
38 color = <LED_COLOR_ID_GREEN>;
39 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
43 label = "green:wlan2g";
44 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
45 linux,default-trigger = "phy0tpt";
49 label = "orange:wlan2g";
50 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
54 function = LED_FUNCTION_WAN;
55 color = <LED_COLOR_ID_GREEN>;
56 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
60 function = LED_FUNCTION_WAN;
61 color = <LED_COLOR_ID_ORANGE>;
62 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
71 compatible = "jedec,spi-nor";
73 spi-max-frequency = <86000000>;
76 partitions: partitions {
77 compatible = "fixed-partitions";
87 factory: partition@40000 {
89 reg = <0x40000 0x20000>;
93 compatible = "fixed-layout";
97 eeprom_factory_0: eeprom@0 {
101 eeprom_factory_8000: eeprom@8000 {
102 reg = <0x8000 0x200>;
105 macaddr_factory_4: macaddr@4 {
106 compatible = "mac-base";
108 #nvmem-cell-cells = <1>;
115 reg = <0x60000 0x30000>;
125 nvmem-cells = <&eeprom_factory_0>;
126 nvmem-cell-names = "eeprom";
130 nvmem-cells = <&macaddr_factory_4 0>;
131 nvmem-cell-names = "mac-address";
140 reg = <0x0000 0 0 0 0>;
141 nvmem-cells = <&eeprom_factory_8000>;
142 nvmem-cell-names = "eeprom";
143 ieee80211-freq-limit = <5000000 6000000>;