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 {
100 reg = <0x7c0000 0x30000>;
104 radio: partition@7f0000 {
106 reg = <0x7f0000 0x10000>;
115 groups = "p4led_an", "p3led_an", "p2led_an", "p1led_an",
116 "p0led_an", "wled_an", "i2c", "wdt", "refclk";
122 nvmem-cells = <&macaddr_config_2008>;
123 nvmem-cell-names = "mac-address";
129 mediatek,mtd-eeprom = <&radio 0x0>;
131 nvmem-cells = <&macaddr_config_2008>;
132 nvmem-cell-names = "mac-address";
133 mac-address-increment = <1>;
142 reg = <0x0000 0 0 0 0>;
143 mediatek,mtd-eeprom = <&radio 0x8000>;
144 ieee80211-freq-limit = <5000000 6000000>;
145 nvmem-cells = <&macaddr_config_2008>;
146 nvmem-cell-names = "mac-address";
147 mac-address-increment = <2>;
152 compatible = "nvmem-cells";
153 #address-cells = <1>;
156 macaddr_config_2008: macaddr@2008 {