ipq806x: create DTSI for TP-Link AD7200 and C2600
[openwrt/staging/lynxis.git] / target / linux / ipq806x / files / arch / arm / boot / dts / qcom-ipq8064-c2600.dts
1 #include "qcom-ipq8064-ad7200-c2600.dtsi"
2
3 / {
4 model = "TP-Link Archer C2600";
5 compatible = "tplink,c2600", "qcom,ipq8064";
6
7 aliases {
8 led-boot = &power;
9 led-failsafe = &general;
10 led-running = &power;
11 led-upgrade = &general;
12 };
13
14 keys {
15 compatible = "gpio-keys";
16 pinctrl-0 = <&button_pins>;
17 pinctrl-names = "default";
18
19 wifi {
20 label = "wifi";
21 gpios = <&qcom_pinmux 49 GPIO_ACTIVE_LOW>;
22 linux,code = <KEY_RFKILL>;
23 };
24
25 reset {
26 label = "reset";
27 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
28 linux,code = <KEY_RESTART>;
29 };
30
31 wps {
32 label = "wps";
33 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
34 linux,code = <KEY_WPS_BUTTON>;
35 };
36
37 ledswitch {
38 label = "ledswitch";
39 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_LIGHTS_TOGGLE>;
41 };
42 };
43
44 leds {
45 compatible = "gpio-leds";
46 pinctrl-0 = <&led_pins>;
47 pinctrl-names = "default";
48
49 lan {
50 label = "white:lan";
51 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_HIGH>;
52 };
53
54 usb4 {
55 label = "white:usb_4";
56 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
57 };
58
59 usb2 {
60 label = "white:usb_2";
61 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
62 };
63
64 wps {
65 label = "white:wps";
66 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
67 };
68
69 wan_amber {
70 label = "amber:wan";
71 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
72 };
73
74 wan_white {
75 label = "white:wan";
76 gpios = <&qcom_pinmux 33 GPIO_ACTIVE_LOW>;
77 };
78
79 power: power {
80 label = "white:power";
81 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
82 default-state = "keep";
83 };
84
85 general: general {
86 label = "white:general";
87 gpios = <&qcom_pinmux 66 GPIO_ACTIVE_HIGH>;
88 };
89 };
90 };
91
92 &qcom_pinmux {
93 button_pins: button_pins {
94 mux {
95 pins = "gpio16", "gpio54", "gpio65";
96 function = "gpio";
97 drive-strength = <2>;
98 bias-pull-up;
99 };
100 };
101
102 led_pins: led_pins {
103 mux {
104 pins = "gpio6", "gpio7", "gpio8", "gpio9", "gpio26", "gpio33",
105 "gpio53", "gpio66";
106 function = "gpio";
107 drive-strength = <2>;
108 bias-pull-up;
109 };
110 };
111 };