kernel/ipq806x: Restore kernel files for v6.1
[openwrt/openwrt.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 <dt-bindings/leds/common.h>
4
5 #include "qcom-ipq8064-ad7200-c2600.dtsi"
6
7 / {
8 model = "TP-Link Talon AD7200";
9 compatible = "tplink,ad7200", "qcom,ipq8064";
10
11 aliases {
12 led-boot = &led_status;
13 led-failsafe = &led_status;
14 led-running = &led_status;
15 led-upgrade = &led_status;
16 };
17
18 keys {
19 compatible = "gpio-keys";
20 pinctrl-0 = <&button_pins>;
21 pinctrl-names = "default";
22
23 wifi {
24 label = "wifi";
25 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_RFKILL>;
27 debounce-interval = <60>;
28 wakeup-source;
29 };
30
31 reset {
32 label = "reset";
33 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_LOW>;
34 linux,code = <KEY_RESTART>;
35 debounce-interval = <60>;
36 wakeup-source;
37 };
38
39 wps {
40 label = "wps";
41 gpios = <&qcom_pinmux 67 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_WPS_BUTTON>;
43 debounce-interval = <60>;
44 wakeup-source;
45 };
46
47 led_enable {
48 label = "led-enable";
49 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_LIGHTS_TOGGLE>;
51 debounce-interval = <60>;
52 wakeup-source;
53 };
54 };
55
56 leds {
57 compatible = "gpio-leds";
58 pinctrl-0 = <&led_pins>;
59 pinctrl-names = "default";
60
61 lan {
62 function = LED_FUNCTION_LAN;
63 color = <LED_COLOR_ID_BLUE>;
64 gpios = <&qcom_pinmux 2 GPIO_ACTIVE_HIGH>;
65 };
66
67 usb1 {
68 label = "blue:usb1";
69 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
70 };
71
72 wlan5g {
73 label = "blue:wlan5g";
74 gpios = <&qcom_pinmux 15 GPIO_ACTIVE_HIGH>;
75 };
76
77 usb3 {
78 label = "blue:usb3";
79 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_HIGH>;
80 };
81
82 wlan2g {
83 label = "blue:wlan2g";
84 gpios = <&qcom_pinmux 17 GPIO_ACTIVE_HIGH>;
85 };
86
87 wan_orange {
88 function = LED_FUNCTION_WAN;
89 color = <LED_COLOR_ID_ORANGE>;
90 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
91 };
92
93 wan_blue {
94 function = LED_FUNCTION_WAN;
95 color = <LED_COLOR_ID_BLUE>;
96 gpios = <&qcom_pinmux 33 GPIO_ACTIVE_LOW>;
97 };
98
99 wps {
100 function = LED_FUNCTION_WPS;
101 color = <LED_COLOR_ID_BLUE>;
102 gpios = <&qcom_pinmux 55 GPIO_ACTIVE_HIGH>;
103 };
104
105 wlan60g {
106 label = "blue:wlan60g";
107 gpios = <&qcom_pinmux 56 GPIO_ACTIVE_HIGH>;
108 };
109
110 led_status: status {
111 function = LED_FUNCTION_STATUS;
112 color = <LED_COLOR_ID_BLUE>;
113 gpios = <&qcom_pinmux 66 GPIO_ACTIVE_HIGH>;
114 };
115 };
116 };
117
118 &qcom_pinmux {
119 button_pins: button_pins {
120 mux {
121 pins = "gpio53", "gpio54", "gpio67";
122 function = "gpio";
123 drive-strength = <2>;
124 bias-pull-up;
125 };
126 };
127
128 led_pins: led_pins {
129 mux {
130 pins = "gpio2", "gpio8", "gpio15", "gpio16", "gpio17", "gpio26",
131 "gpio33", "gpio55", "gpio56", "gpio66";
132 function = "gpio";
133 drive-strength = <2>;
134 bias-pull-up;
135 };
136 };
137 };
138
139 &mdio0 {
140 switch@10 {
141 ports {
142 port@1 {
143 label = "wan";
144 };
145
146 port@2 {
147 label = "lan1";
148 };
149
150 port@3 {
151 label = "lan2";
152 };
153
154 port@4 {
155 label = "lan3";
156 };
157
158 port@5 {
159 label = "lan4";
160 };
161 };
162 };
163 };
164
165 &pcie2 {
166 status = "okay";
167 max-link-speed = <1>;
168 };