3 #include "TPLINK-8M.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "tplink,c50-v3", "mediatek,mt7628an-soc";
10 model = "TP-Link Archer C50 v3";
13 compatible = "gpio-keys-polled";
20 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
21 linux,code = <KEY_RESTART>;
26 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_RFKILL>;
32 compatible = "gpio-leds";
35 label = "c50-v3:green:lan";
36 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
40 label = "c50-v3:green:power";
41 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
45 label = "c50-v3:green:wan";
46 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
50 label = "c50-v3:orange:wan";
51 gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
55 label = "c50-v3:green:wlan2g";
56 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
60 label = "c50-v3:green:wlan5g";
61 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
65 label = "c50-v3:green:wps";
66 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
72 state_default: pinctrl0 {
74 ralink,group = "i2c", "gpio", "p0led_an", "p1led_an", "p2led_an",
75 "p3led_an", "p4led_an", "wdt", "wled_an";
76 ralink,function = "gpio";
86 reg = <0x0000 0 0 0 0>;
88 mediatek,mtd-eeprom = <&factory 0x28000>;
89 ieee80211-freq-limit = <5000000 6000000>;
90 mtd-mac-address = <&factory 0xf100>;
91 mtd-mac-address-increment = <(-1)>;