1 #include "qcom-ipq8064-v2.0.dtsi"
3 #include <dt-bindings/input/input.h>
6 model = "TP-Link Archer VR2600v";
7 compatible = "tplink,vr2600v", "qcom,ipq8064";
10 reg = <0x42000000 0x1e000000>;
11 device_type = "memory";
18 led-failsafe = &general;
20 led-upgrade = &general;
24 compatible = "gpio-keys";
25 pinctrl-0 = <&button_pins>;
26 pinctrl-names = "default";
30 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RFKILL>;
36 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
42 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_WPS_BUTTON>;
48 gpios = <&qcom_pinmux 67 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_PHONE>;
54 gpios = <&qcom_pinmux 68 GPIO_ACTIVE_LOW>;
55 linux,code = <KEY_LIGHTS_TOGGLE>;
60 compatible = "gpio-leds";
61 pinctrl-0 = <&led_pins>;
62 pinctrl-names = "default";
65 label = "vr2600v:white:dsl";
66 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
70 label = "vr2600v:white:usb";
71 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
75 label = "vr2600v:white:lan";
76 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
80 label = "vr2600v:white:wlan2g";
81 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_HIGH>;
85 label = "vr2600v:white:wlan5g";
86 gpios = <&qcom_pinmux 17 GPIO_ACTIVE_HIGH>;
90 label = "vr2600v:white:power";
91 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
92 default-state = "keep";
96 label = "vr2600v:white:phone";
97 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
101 label = "vr2600v:white:wan";
102 gpios = <&qcom_pinmux 56 GPIO_ACTIVE_HIGH>;
106 label = "vr2600v:white:general";
107 gpios = <&qcom_pinmux 66 GPIO_ACTIVE_HIGH>;
115 pins = "gpio7", "gpio8", "gpio9", "gpio16", "gpio17",
116 "gpio26", "gpio53", "gpio56", "gpio66";
118 drive-strength = <2>;
123 button_pins: button_pins {
125 pins = "gpio54", "gpio64", "gpio65", "gpio67", "gpio68";
127 drive-strength = <2>;
134 pins = "gpio18", "gpio19", "gpio21";
140 pins = "gpio18", "gpio19";
141 drive-strength = <10>;
146 drive-strength = <10>;
152 drive-strength = <12>;
158 qcom,mode = <GSBI_PROT_SPI>;
164 pinctrl-0 = <&spi_pins>;
165 pinctrl-names = "default";
167 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
170 compatible = "jedec,spi-nor";
171 #address-cells = <1>;
173 spi-max-frequency = <50000000>;
184 reg = <0x20000 0x20000>;
190 reg = <0x40000 0x40000>;
196 reg = <0x80000 0x80000>;
202 reg = <0x100000 0x10000>;
208 reg = <0x110000 0x10000>;
214 reg = <0x120000 0x80000>;
220 reg = <0x1a0000 0x80000>;
226 reg = <0x220000 0x80000>;
232 reg = <0x2a0000 0x40000>;
238 reg = <0x2e0000 0x40000>;
244 reg = <0x320000 0x300000>;
249 reg = <0x620000 0x960000>;
252 defaultmac: default-mac@0xfaf100 {
253 label = "default-mac";
254 reg = <0xfaf100 0x00200>;
260 reg = <0xfc0000 0x40000>;
287 pinctrl-0 = <&mdio0_pins>;
288 pinctrl-names = "default";
290 phy0: ethernet-phy@0 {
292 qca,ar8327-initvals = <
293 0x00004 0x7600000 /* PAD0_MODE */
294 0x00008 0x1000000 /* PAD5_MODE */
295 0x0000c 0x80 /* PAD6_MODE */
296 0x000e4 0x6a545 /* MAC_POWER_SEL */
297 0x000e0 0xc74164de /* SGMII_CTRL */
298 0x0007c 0x4e /* PORT0_STATUS */
299 0x00094 0x4e /* PORT6_STATUS */
303 phy4: ethernet-phy@4 {
313 pinctrl-0 = <&rgmii2_pins>;
314 pinctrl-names = "default";
316 mtd-mac-address = <&defaultmac 0>;
317 mtd-mac-address-increment = <1>;
330 mtd-mac-address = <&defaultmac 0>;