summaryrefslogtreecommitdiffstats
path: root/target/linux/ipq806x/files-6.1/arch/arm/boot/dts/qcom-ipq8064-ad7200.dts
blob: 6e4c9bc773c85f5302c65c2e5871b4aa06d1b88b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT

#include <dt-bindings/leds/common.h>

#include "qcom-ipq8064-ad7200-c2600.dtsi"

/ {
	model = "TP-Link Talon AD7200";
	compatible = "tplink,ad7200", "qcom,ipq8064";

	aliases {
		led-boot = &led_status;
		led-failsafe = &led_status;
		led-running = &led_status;
		led-upgrade = &led_status;
	};

	keys {
		compatible = "gpio-keys";
		pinctrl-0 = <&button_pins>;
		pinctrl-names = "default";

		wifi {
			label = "wifi";
			gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
			linux,code = <KEY_RFKILL>;
			debounce-interval = <60>;
			wakeup-source;
		};

		reset {
			label = "reset";
			gpios = <&qcom_pinmux 7 GPIO_ACTIVE_LOW>;
			linux,code = <KEY_RESTART>;
			debounce-interval = <60>;
			wakeup-source;
		};

		wps {
			label = "wps";
			gpios = <&qcom_pinmux 67 GPIO_ACTIVE_LOW>;
			linux,code = <KEY_WPS_BUTTON>;
			debounce-interval = <60>;
			wakeup-source;
		};

		led_enable {
			label = "led-enable";
			gpios = <&qcom_pinmux 53 GPIO_ACTIVE_LOW>;
			linux,code = <KEY_LIGHTS_TOGGLE>;
			debounce-interval = <60>;
			wakeup-source;
		};
	};

	leds {
		compatible = "gpio-leds";
		pinctrl-0 = <&led_pins>;
		pinctrl-names = "default";

		lan {
			function = LED_FUNCTION_LAN;
			color = <LED_COLOR_ID_BLUE>;
			gpios = <&qcom_pinmux 2 GPIO_ACTIVE_HIGH>;
		};

		usb1 {
			label = "blue:usb1";
			gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
		};

		wlan5g {
			label = "blue:wlan5g";
			gpios = <&qcom_pinmux 15 GPIO_ACTIVE_HIGH>;
		};

		usb3 {
			label = "blue:usb3";
			gpios = <&qcom_pinmux 16 GPIO_ACTIVE_HIGH>;
		};

		wlan2g {
			label = "blue:wlan2g";
			gpios = <&qcom_pinmux 17 GPIO_ACTIVE_HIGH>;
		};

		wan_orange {
			function = LED_FUNCTION_WAN;
			color = <LED_COLOR_ID_ORANGE>;
			gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
		};

		wan_blue {
			function = LED_FUNCTION_WAN;
			color = <LED_COLOR_ID_BLUE>;
			gpios = <&qcom_pinmux 33 GPIO_ACTIVE_LOW>;
		};

		wps {
			function = LED_FUNCTION_WPS;
			color = <LED_COLOR_ID_BLUE>;
			gpios = <&qcom_pinmux 55 GPIO_ACTIVE_HIGH>;
		};

		wlan60g {
			label = "blue:wlan60g";
			gpios = <&qcom_pinmux 56 GPIO_ACTIVE_HIGH>;
		};

		led_status: status {
			function = LED_FUNCTION_STATUS;
			color = <LED_COLOR_ID_BLUE>;
			gpios = <&qcom_pinmux 66 GPIO_ACTIVE_HIGH>;
		};
	};
};

&qcom_pinmux {
	button_pins: button_pins {
		mux {
			pins = "gpio53", "gpio54", "gpio67";
			function = "gpio";
			drive-strength = <2>;
			bias-pull-up;
		};
	};

	led_pins: led_pins {
		mux {
			pins = "gpio2", "gpio8", "gpio15", "gpio16", "gpio17", "gpio26",
					"gpio33", "gpio55", "gpio56", "gpio66";
			function = "gpio";
			drive-strength = <2>;
			bias-pull-up;
		};
	};
};

&mdio0 {
	switch@10 {
		ports {
			port@1 {
				label = "wan";
			};

			port@2 {
				label = "lan1";
			};

			port@3 {
				label = "lan2";
			};

			port@4 {
				label = "lan3";
			};

			port@5 {
				label = "lan4";
			};
		};
	};
};

&pcie2 {
	status = "okay";
	max-link-speed = <1>;
};