1 //SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 #include "qcom-ipq8064-v2.0.dtsi"
4 #include <dt-bindings/input/input.h>
7 model = "TP-Link Talon AD7200";
8 compatible = "tplink,ad7200", "qcom,ipq8064";
11 reg = <0x42000000 0x1e000000>;
12 device_type = "memory";
19 led-failsafe = &power;
22 label-mac-device = &gmac2;
26 compatible = "gpio-keys";
27 pinctrl-0 = <&button_pins>;
28 pinctrl-names = "default";
32 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
33 linux,code = <KEY_RFKILL>;
38 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_LOW>;
39 linux,code = <KEY_RESTART>;
44 gpios = <&qcom_pinmux 67 GPIO_ACTIVE_LOW>;
45 linux,code = <KEY_WPS_BUTTON>;
50 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_LIGHTS_TOGGLE>;
56 compatible = "gpio-leds";
57 pinctrl-0 = <&led_pins>;
58 pinctrl-names = "default";
62 gpios = <&qcom_pinmux 2 GPIO_ACTIVE_HIGH>;
67 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
71 label = "blue:wlan5g";
72 gpios = <&qcom_pinmux 15 GPIO_ACTIVE_HIGH>;
77 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_HIGH>;
81 label = "blue:wlan2g";
82 gpios = <&qcom_pinmux 17 GPIO_ACTIVE_HIGH>;
87 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
92 gpios = <&qcom_pinmux 33 GPIO_ACTIVE_LOW>;
97 gpios = <&qcom_pinmux 55 GPIO_ACTIVE_HIGH>;
101 label = "blue:wlan60g";
102 gpios = <&qcom_pinmux 56 GPIO_ACTIVE_HIGH>;
106 label = "blue:status";
107 gpios = <&qcom_pinmux 66 GPIO_ACTIVE_HIGH>;
113 button_pins: button_pins {
115 pins = "gpio53", "gpio54", "gpio67";
117 drive-strength = <2>;
124 pins = "gpio2", "gpio8", "gpio15", "gpio16", "gpio17", "gpio26",
125 "gpio33", "gpio55", "gpio56", "gpio66";
127 drive-strength = <2>;
134 pins = "gpio18", "gpio19", "gpio21";
140 pins = "gpio18", "gpio19";
141 drive-strength = <10>;
147 drive-strength = <10>;
153 drive-strength = <12>;
157 usb0_pwr_en_pin: usb0_pwr_en_pin {
161 drive-strength = <10>;
167 usb1_pwr_en_pin: usb1_pwr_en_pin {
171 drive-strength = <10>;
179 qcom,mode = <GSBI_PROT_SPI>;
185 pinctrl-0 = <&spi_pins>;
186 pinctrl-names = "default";
188 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
191 compatible = "jedec,spi-nor";
192 #address-cells = <1>;
194 spi-max-frequency = <50000000>;
205 reg = <0x20000 0x20000>;
211 reg = <0x40000 0x20000>;
217 reg = <0x60000 0x30000>;
223 reg = <0x90000 0x10000>;
229 reg = <0xa0000 0x10000>;
235 reg = <0xb0000 0x30000>;
241 reg = <0xe0000 0x20000>;
247 reg = <0x100000 0x70000>;
253 reg = <0x170000 0x40000>;
259 reg = <0x1b0000 0x40000>;
265 reg = <0x1f0000 0x400000>;
270 reg = <0x5f0000 0x1900000>;
273 defaultmac: partition@1ef0000 {
274 label = "default-mac";
275 reg = <0x1ef0000 0x00200>;
281 reg = <0x1ef0200 0x00200>;
287 reg = <0x1ef0400 0x00200>;
292 label = "product-info";
293 reg = <0x1ef0600 0x0fa00>;
298 label = "partition-table";
299 reg = <0x1f00000 0x10000>;
304 label = "soft-version";
305 reg = <0x1f10000 0x10000>;
310 label = "support-list";
311 reg = <0x1f20000 0x10000>;
317 reg = <0x1f30000 0x10000>;
322 label = "default-config";
323 reg = <0x1f40000 0x10000>;
328 label = "user-config";
329 reg = <0x1f50000 0x40000>;
335 reg = <0x1f90000 0x40000>;
340 label = "usb-config";
341 reg = <0x1fd0000 0x10000>;
347 reg = <0x1fe0000 0x20000>;
357 pinctrl-0 = <&usb0_pwr_en_pin>;
358 pinctrl-names = "default";
364 pinctrl-0 = <&usb1_pwr_en_pin>;
365 pinctrl-names = "default";
374 max-link-speed = <1>;
379 max-link-speed = <1>;
385 pinctrl-0 = <&mdio0_pins>;
386 pinctrl-names = "default";
388 phy0: ethernet-phy@0 {
390 qca,ar8327-initvals = <
391 0x00004 0x7600000 /* PAD0_MODE */
392 0x00008 0x1000000 /* PAD5_MODE */
393 0x0000c 0x80 /* PAD6_MODE */
394 0x000e4 0x6a545 /* MAC_POWER_SEL */
395 0x000e0 0xc74164de /* SGMII_CTRL */
396 0x0007c 0x4e /* PORT0_STATUS */
397 0x00094 0x4e /* PORT6_STATUS */
401 phy4: ethernet-phy@4 {
411 pinctrl-0 = <&rgmii2_pins>;
412 pinctrl-names = "default";
414 mtd-mac-address = <&defaultmac 0x8>;
415 mtd-mac-address-increment = <1>;
428 mtd-mac-address = <&defaultmac 0x8>;