ramips: create common DTSI for TP-Link Archer C20i/C20 v1/C50 v1
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7620a_tplink_archer-c20i.dts
1 /dts-v1/;
2
3 #include "mt7620a_tplink_archer.dtsi"
4
5 / {
6 compatible = "tplink,archer-c20i", "ralink,mt7620a-soc";
7 model = "TP-Link Archer C20i";
8
9 aliases {
10 label-mac-device = &ethernet;
11 };
12
13 leds {
14 compatible = "gpio-leds";
15
16 lan {
17 label = "archer-c20i:blue:lan";
18 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
19 };
20
21 usb {
22 label = "archer-c20i:blue:usb";
23 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
24 trigger-sources = <&ohci_port1>, <&ehci_port1>;
25 linux,default-trigger = "usbport";
26 };
27
28 wps {
29 label = "archer-c20i:blue:wps";
30 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
31 };
32
33 wan {
34 label = "archer-c20i:blue:wan";
35 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
36 };
37
38 wlan {
39 label = "archer-c20i:blue:wlan";
40 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
41 };
42 };
43 };
44
45 &pinctrl {
46 state_default: pinctrl0 {
47 gpio {
48 ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd", "ephy", "spi refclk";
49 ralink,function = "gpio";
50 };
51 };
52 };