ipq806x: convert to new LED color/function format where possible
[openwrt/openwrt.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 debounce-interval = <60>;
24 wakeup-source;
25 };
26
27 reset {
28 label = "reset";
29 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
31 debounce-interval = <60>;
32 wakeup-source;
33 };
34
35 wps {
36 label = "wps";
37 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_WPS_BUTTON>;
39 debounce-interval = <60>;
40 wakeup-source;
41 };
42
43 ledswitch {
44 label = "ledswitch";
45 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_LIGHTS_TOGGLE>;
47 debounce-interval = <60>;
48 wakeup-source;
49 };
50 };
51
52 leds {
53 compatible = "gpio-leds";
54 pinctrl-0 = <&led_pins>;
55 pinctrl-names = "default";
56
57 lan {
58 function = LED_FUNCTION_LAN;
59 color = <LED_COLOR_ID_WHITE>;
60 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_HIGH>;
61 };
62
63 usb4 {
64 label = "white:usb_4";
65 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
66 };
67
68 usb2 {
69 label = "white:usb_2";
70 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
71 };
72
73 wps {
74 function = LED_FUNCTION_WPS;
75 color = <LED_COLOR_ID_WHITE>;
76 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
77 };
78
79 wan_amber {
80 function = LED_FUNCTION_WAN;
81 color = <LED_COLOR_ID_AMBER>;
82 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
83 };
84
85 wan_white {
86 function = LED_FUNCTION_WAN;
87 color = <LED_COLOR_ID_WHITE>;
88 gpios = <&qcom_pinmux 33 GPIO_ACTIVE_LOW>;
89 };
90
91 power: power {
92 function = LED_FUNCTION_POWER;
93 color = <LED_COLOR_ID_WHITE>;
94 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
95 default-state = "keep";
96 };
97
98 general: general {
99 label = "white:general";
100 gpios = <&qcom_pinmux 66 GPIO_ACTIVE_HIGH>;
101 };
102 };
103 };
104
105 &qcom_pinmux {
106 button_pins: button_pins {
107 mux {
108 pins = "gpio16", "gpio54", "gpio65";
109 function = "gpio";
110 drive-strength = <2>;
111 bias-pull-up;
112 };
113 };
114
115 led_pins: led_pins {
116 mux {
117 pins = "gpio6", "gpio7", "gpio8", "gpio9", "gpio26", "gpio33",
118 "gpio53", "gpio66";
119 function = "gpio";
120 drive-strength = <2>;
121 bias-pull-up;
122 };
123 };
124 #include <dt-bindings/leds/common.h>
125
126 };