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>
12 led-failsafe = &led_wps;
13 led-running = &led_wps;
14 led-upgrade = &led_wps;
15 label-mac-device = ðernet;
19 compatible = "gpio-keys";
23 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
24 linux,code = <KEY_RESTART>;
29 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_WPS_BUTTON>;
35 compatible = "gpio-leds";
38 function = LED_FUNCTION_WPS;
39 color = <LED_COLOR_ID_BLUE>;
40 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
44 label = "blue:wlan2g";
45 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
46 linux,default-trigger = "phy0tpt";
55 compatible = "jedec,spi-nor";
57 spi-max-frequency = <58000000>;
61 compatible = "fixed-partitions";
73 reg = <0x30000 0x10000>;
79 reg = <0x40000 0x10000>;
83 compatible = "fixed-layout";
87 eeprom_factory_0: eeprom@0 {
91 eeprom_factory_8000: eeprom@8000 {
95 macaddr_factory_4: macaddr@4 {
102 compatible = "denx,uimage";
104 reg = <0x50000 0xfb0000>;
113 line-name = "enable-leds";
115 gpios = <4 GPIO_ACTIVE_HIGH>;
120 nvmem-cells = <&macaddr_factory_4>;
121 nvmem-cell-names = "mac-address";
125 mediatek,portmap = <0x3e>;
126 mediatek,led_source = <4>;
132 nvmem-cells = <&eeprom_factory_0>;
133 nvmem-cell-names = "eeprom";
142 compatible = "mediatek,mt76";
143 reg = <0x0000 0 0 0 0>;
144 nvmem-cells = <&eeprom_factory_8000>;
145 nvmem-cell-names = "eeprom";
146 ieee80211-freq-limit = <5000000 6000000>;