3 #include "TPLINK-8M.dtsi"
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/gpio/gpio.h>
9 compatible = "tplink,c20-v4", "mediatek,mt7628an-soc";
10 model = "TP-Link Archer C20 v4";
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
20 compatible = "gpio-leds";
23 label = "c20-v4:green:lan";
24 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
28 label = "c20-v4:green:power";
29 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
33 label = "c20-v4:green:wan";
34 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
38 label = "c20-v4:orange:wan";
39 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
43 label = "c20-v4:green:wlan5g";
44 gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
48 label = "c20-v4:green:wlan2g";
49 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
53 label = "c20-v4:green:wps";
54 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
59 compatible = "gpio-keys-polled";
64 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
65 linux,code = <KEY_RESTART>;
70 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
71 linux,code = <KEY_RFKILL>;
77 mtd-mac-address-increment = <(-2)>;
81 mediatek,portmap = "wllll";
85 state_default: pinctrl0 {
87 ralink,group = "i2s", "refclk", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "wdt";
88 ralink,function = "gpio";
99 reg = <0x0000 0 0 0 0>;
100 mediatek,mtd-eeprom = <&factory 0x28000>;
101 ieee80211-freq-limit = <5000000 6000000>;
102 mtd-mac-address = <&factory 0xf100>;
103 mtd-mac-address-increment = <(-1)>;