ipq806x: add missing wakeup-source for gpio keys
[openwrt/staging/zorun.git] / target / linux / ipq806x / files / arch / arm / boot / dts / qcom-ipq8064-ad7200.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qcom-ipq8064-ad7200-c2600.dtsi"
4
5 / {
6 model = "TP-Link Talon AD7200";
7 compatible = "tplink,ad7200", "qcom,ipq8064";
8
9 aliases {
10 led-boot = &led_status;
11 led-failsafe = &led_status;
12 led-running = &led_status;
13 led-upgrade = &led_status;
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 54 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 7 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 67 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_WPS_BUTTON>;
41 debounce-interval = <60>;
42 wakeup-source;
43 };
44
45 led_enable {
46 label = "led-enable";
47 gpios = <&qcom_pinmux 53 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 label = "blue:lan";
61 gpios = <&qcom_pinmux 2 GPIO_ACTIVE_HIGH>;
62 };
63
64 usb1 {
65 label = "blue:usb1";
66 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
67 };
68
69 wlan5g {
70 label = "blue:wlan5g";
71 gpios = <&qcom_pinmux 15 GPIO_ACTIVE_HIGH>;
72 };
73
74 usb3 {
75 label = "blue:usb3";
76 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_HIGH>;
77 };
78
79 wlan2g {
80 label = "blue:wlan2g";
81 gpios = <&qcom_pinmux 17 GPIO_ACTIVE_HIGH>;
82 };
83
84 wan_orange {
85 label = "orange:wan";
86 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
87 };
88
89 wan_blue {
90 label = "blue:wan";
91 gpios = <&qcom_pinmux 33 GPIO_ACTIVE_LOW>;
92 };
93
94 wps {
95 label = "blue:wps";
96 gpios = <&qcom_pinmux 55 GPIO_ACTIVE_HIGH>;
97 };
98
99 wlan60g {
100 label = "blue:wlan60g";
101 gpios = <&qcom_pinmux 56 GPIO_ACTIVE_HIGH>;
102 };
103
104 led_status: status {
105 label = "blue:status";
106 gpios = <&qcom_pinmux 66 GPIO_ACTIVE_HIGH>;
107 };
108 };
109 };
110
111 &qcom_pinmux {
112 button_pins: button_pins {
113 mux {
114 pins = "gpio53", "gpio54", "gpio67";
115 function = "gpio";
116 drive-strength = <2>;
117 bias-pull-up;
118 };
119 };
120
121 led_pins: led_pins {
122 mux {
123 pins = "gpio2", "gpio8", "gpio15", "gpio16", "gpio17", "gpio26",
124 "gpio33", "gpio55", "gpio56", "gpio66";
125 function = "gpio";
126 drive-strength = <2>;
127 bias-pull-up;
128 };
129 };
130 };
131
132 &pcie2 {
133 status = "okay";
134 max-link-speed = <1>;
135 };