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";
19 reg = <0x41200000 0x300000>;
25 serial0 = &gsbi4_serial;
29 led-failsafe = &general;
31 led-upgrade = &general;
35 stdout-path = "serial0:115200n8";
39 compatible = "gpio-keys";
40 pinctrl-0 = <&button_pins>;
41 pinctrl-names = "default";
45 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_RFKILL>;
51 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_RESTART>;
57 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
58 linux,code = <KEY_WPS_BUTTON>;
63 gpios = <&qcom_pinmux 67 GPIO_ACTIVE_LOW>;
64 linux,code = <KEY_PHONE>;
69 gpios = <&qcom_pinmux 68 GPIO_ACTIVE_LOW>;
70 linux,code = <KEY_LIGHTS_TOGGLE>;
75 compatible = "gpio-leds";
76 pinctrl-0 = <&led_pins>;
77 pinctrl-names = "default";
80 label = "vr2600v:white:dsl";
81 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
85 label = "vr2600v:white:usb";
86 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
90 label = "vr2600v:white:lan";
91 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
95 label = "vr2600v:white:wlan2g";
96 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_HIGH>;
100 label = "vr2600v:white:wlan5g";
101 gpios = <&qcom_pinmux 17 GPIO_ACTIVE_HIGH>;
105 label = "vr2600v:white:power";
106 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
107 default-state = "keep";
111 label = "vr2600v:white:phone";
112 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
116 label = "vr2600v:white:wan";
117 gpios = <&qcom_pinmux 56 GPIO_ACTIVE_HIGH>;
121 label = "vr2600v:white:general";
122 gpios = <&qcom_pinmux 66 GPIO_ACTIVE_HIGH>;
130 pins = "gpio7", "gpio8", "gpio9", "gpio16", "gpio17",
131 "gpio26", "gpio53", "gpio56", "gpio66";
133 drive-strength = <2>;
138 button_pins: button_pins {
140 pins = "gpio54", "gpio64", "gpio65", "gpio67", "gpio68";
142 drive-strength = <2>;
149 pins = "gpio18", "gpio19", "gpio21";
155 pins = "gpio18", "gpio19";
156 drive-strength = <10>;
161 drive-strength = <10>;
167 drive-strength = <12>;
173 qcom,mode = <GSBI_PROT_I2C_UART>;
179 * The i2c device on gsbi4 should not be enabled.
180 * On ipq806x designs gsbi4 i2c is meant for exclusive
181 * RPM usage. Turning this on in kernel manifests as
182 * i2c failure for the RPM.
187 qcom,mode = <GSBI_PROT_SPI>;
193 pinctrl-0 = <&spi_pins>;
194 pinctrl-names = "default";
196 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
199 compatible = "jedec,spi-nor";
200 #address-cells = <1>;
202 spi-max-frequency = <50000000>;
213 reg = <0x20000 0x20000>;
219 reg = <0x40000 0x40000>;
225 reg = <0x80000 0x80000>;
231 reg = <0x100000 0x10000>;
237 reg = <0x110000 0x10000>;
243 reg = <0x120000 0x80000>;
249 reg = <0x1a0000 0x80000>;
255 reg = <0x220000 0x80000>;
261 reg = <0x2a0000 0x40000>;
267 reg = <0x2e0000 0x40000>;
273 reg = <0x320000 0x300000>;
278 reg = <0x620000 0x960000>;
281 defaultmac: default-mac@0xfaf100 {
282 label = "default-mac";
283 reg = <0xfaf100 0x00200>;
289 reg = <0xfc0000 0x40000>;
316 pinctrl-0 = <&mdio0_pins>;
317 pinctrl-names = "default";
319 phy0: ethernet-phy@0 {
321 qca,ar8327-initvals = <
322 0x00004 0x7600000 /* PAD0_MODE */
323 0x00008 0x1000000 /* PAD5_MODE */
324 0x0000c 0x80 /* PAD6_MODE */
325 0x000e4 0x6a545 /* MAC_POWER_SEL */
326 0x000e0 0xc74164de /* SGMII_CTRL */
327 0x0007c 0x4e /* PORT0_STATUS */
328 0x00094 0x4e /* PORT6_STATUS */
332 phy4: ethernet-phy@4 {
342 pinctrl-0 = <&rgmii2_pins>;
343 pinctrl-names = "default";
345 mtd-mac-address = <&defaultmac 0>;
346 mtd-mac-address-increment = <1>;
359 mtd-mac-address = <&defaultmac 0>;