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