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";
57 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
61 label = "green:wifi2g";
62 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
63 linux,default-trigger = "phy0tpt";
67 label = "green:wifi5g";
68 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
69 linux,default-trigger = "phy1tpt";
74 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
79 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
88 compatible = "jedec,spi-nor";
90 spi-max-frequency = <50000000>;
93 compatible = "fixed-partitions";
104 compatible = "tplink,firmware";
106 reg = <0x20000 0x7a0000>;
109 config: partition@7c0000 {
111 reg = <0x7c0000 0x30000>;
115 radio: partition@7f0000 {
117 reg = <0x7f0000 0x10000>;
126 groups = "p4led_an", "p3led_an", "p2led_an", "p1led_an",
127 "p0led_an", "wled_an", "i2c", "wdt", "refclk";
133 mtd-mac-address = <&config 0x2008>;
139 mediatek,mtd-eeprom = <&radio 0x0>;
140 mtd-mac-address = <&config 0x2008>;
141 mtd-mac-address-increment = <1>;
150 reg = <0x0000 0 0 0 0>;
151 mediatek,mtd-eeprom = <&radio 0x8000>;
152 ieee80211-freq-limit = <5000000 6000000>;
153 mtd-mac-address = <&config 0x2008>;
154 mtd-mac-address-increment = <2>;