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 label-mac-device = ðernet;
12 led-boot = &led_power;
13 led-failsafe = &led_power;
14 led-running = &led_power;
15 led-upgrade = &led_power;
19 bootargs = "console=ttyS0,57600n8";
23 compatible = "gpio-keys";
27 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
28 linux,code = <KEY_RESTART>;
33 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
34 linux,code = <KEY_WPS_BUTTON>;
39 compatible = "gpio-leds";
42 function = LED_FUNCTION_WPS;
43 color = <LED_COLOR_ID_GREEN>;
44 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
49 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
53 function = LED_FUNCTION_LAN;
54 color = <LED_COLOR_ID_GREEN>;
55 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
59 function = LED_FUNCTION_POWER;
60 color = <LED_COLOR_ID_GREEN>;
64 label = "green:wifi2g";
65 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
66 linux,default-trigger = "phy0tpt";
70 label = "green:wifi5g";
71 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
72 linux,default-trigger = "phy1tpt";
81 compatible = "jedec,spi-nor";
83 spi-max-frequency = <50000000>;
86 compatible = "fixed-partitions";
97 compatible = "tplink,firmware";
99 reg = <0x20000 0x7a0000>;
102 config: partition@7c0000 {
104 reg = <0x7c0000 0x30000>;
108 compatible = "fixed-layout";
109 #address-cells = <1>;
112 macaddr_config_2008: macaddr@2008 {
113 compatible = "mac-base";
115 #nvmem-cell-cells = <1>;
120 radio: partition@7f0000 {
122 reg = <0x7f0000 0x10000>;
126 compatible = "fixed-layout";
127 #address-cells = <1>;
130 eeprom_radio_0: eeprom@0 {
134 eeprom_radio_8000: eeprom@8000 {
135 reg = <0x8000 0x200>;
145 groups = "p4led_an", "p3led_an", "p2led_an", "p1led_an",
146 "p0led_an", "wled_an", "i2c", "wdt", "refclk";
152 nvmem-cells = <&macaddr_config_2008 0>;
153 nvmem-cell-names = "mac-address";
159 nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_2008 1>;
160 nvmem-cell-names = "eeprom", "mac-address";
169 reg = <0x0000 0 0 0 0>;
170 ieee80211-freq-limit = <5000000 6000000>;
171 nvmem-cells = <&eeprom_radio_8000>, <&macaddr_config_2008 2>;
172 nvmem-cell-names = "eeprom", "mac-address";