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>
11 led-failsafe = &led_wps;
12 led-running = &led_wps;
13 led-upgrade = &led_wps;
14 label-mac-device = ðernet;
18 compatible = "gpio-keys";
22 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_RESTART>;
28 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_WPS_BUTTON>;
34 compatible = "gpio-leds";
38 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
42 label = "blue:wlan2g";
43 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
44 linux,default-trigger = "phy0tpt";
53 compatible = "jedec,spi-nor";
55 spi-max-frequency = <58000000>;
58 partitions: partitions {
59 compatible = "fixed-partitions";
71 reg = <0x30000 0x10000>;
75 factory: partition@40000 {
77 reg = <0x40000 0x10000>;
81 compatible = "fixed-layout";
85 eeprom_factory_0: eeprom@0 {
89 eeprom_factory_8000: eeprom@8000 {
93 macaddr_factory_4: macaddr@4 {
100 compatible = "denx,uimage";
102 reg = <0x50000 0xfb0000>;
111 line-name = "enable-leds";
113 gpios = <4 GPIO_ACTIVE_HIGH>;
118 nvmem-cells = <&macaddr_factory_4>;
119 nvmem-cell-names = "mac-address";
123 mediatek,portmap = <0x3e>;
124 mediatek,led_source = <4>;
130 nvmem-cells = <&eeprom_factory_0>;
131 nvmem-cell-names = "eeprom";
140 compatible = "mediatek,mt76";
141 reg = <0x0000 0 0 0 0>;
142 nvmem-cells = <&eeprom_factory_8000>;
143 nvmem-cell-names = "eeprom";
144 ieee80211-freq-limit = <5000000 6000000>;