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 label-mac-device = ðernet;
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
18 bootargs = "console=ttyS0,57600n8";
22 compatible = "gpio-keys";
26 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_RESTART>;
32 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
33 linux,code = <KEY_WPS_BUTTON>;
38 compatible = "gpio-leds";
42 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
47 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
52 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
56 label = "green:power";
60 label = "green:wifi2g";
61 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
62 linux,default-trigger = "phy0tpt";
66 label = "green:wifi5g";
67 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
68 linux,default-trigger = "phy1tpt";
77 compatible = "jedec,spi-nor";
79 spi-max-frequency = <50000000>;
82 compatible = "fixed-partitions";
93 compatible = "tplink,firmware";
95 reg = <0x20000 0x7a0000>;
98 config: partition@7c0000 {
99 compatible = "nvmem-cells";
101 reg = <0x7c0000 0x30000>;
102 #address-cells = <1>;
106 macaddr_config_2008: macaddr@2008 {
111 radio: partition@7f0000 {
112 compatible = "nvmem-cells";
114 reg = <0x7f0000 0x10000>;
115 #address-cells = <1>;
119 eeprom_radio_0: eeprom@0 {
123 eeprom_radio_8000: eeprom@8000 {
124 reg = <0x8000 0x200>;
133 groups = "p4led_an", "p3led_an", "p2led_an", "p1led_an",
134 "p0led_an", "wled_an", "i2c", "wdt", "refclk";
140 nvmem-cells = <&macaddr_config_2008>;
141 nvmem-cell-names = "mac-address";
147 nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_2008>;
148 nvmem-cell-names = "eeprom", "mac-address";
149 mac-address-increment = <1>;
158 reg = <0x0000 0 0 0 0>;
159 ieee80211-freq-limit = <5000000 6000000>;
160 nvmem-cells = <&eeprom_radio_8000>, <&macaddr_config_2008>;
161 nvmem-cell-names = "eeprom", "mac-address";
162 mac-address-increment = <2>;