1 #include "qcom-ipq8064-v1.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>;
29 led-failsafe = &general;
31 led-upgrade = &general;
35 linux,stdout-path = "serial0:115200n8";
42 pins = "gpio7", "gpio8", "gpio9", "gpio16", "gpio17",
43 "gpio26", "gpio53", "gpio56", "gpio66";
50 i2c4_pins: i2c4_pinmux {
52 pins = "gpio12", "gpio13";
54 drive-strength = <12>;
59 button_pins: button_pins {
61 pins = "gpio54", "gpio64", "gpio65", "gpio67", "gpio68";
70 pins = "gpio18", "gpio19", "gpio21";
76 pins = "gpio18", "gpio19";
77 drive-strength = <10>;
82 drive-strength = <10>;
88 drive-strength = <12>;
92 mdio0_pins: mdio0_pins {
94 pins = "gpio0", "gpio1";
101 rgmii2_pins: rgmii2_pins {
103 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
104 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
106 drive-strength = <8>;
113 qcom,mode = <GSBI_PROT_I2C_UART>;
119 * The i2c device on gsbi4 should not be enabled.
120 * On ipq806x designs gsbi4 i2c is meant for exclusive
121 * RPM usage. Turning this on in kernel manifests as
122 * i2c failure for the RPM.
126 gsbi5: gsbi@1a200000 {
127 qcom,mode = <GSBI_PROT_SPI>;
133 pinctrl-0 = <&spi_pins>;
134 pinctrl-names = "default";
136 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
139 compatible = "jedec,spi-nor";
140 #address-cells = <1>;
142 spi-max-frequency = <50000000>;
153 reg = <0x20000 0x20000>;
159 reg = <0x40000 0x40000>;
165 reg = <0x80000 0x80000>;
171 reg = <0x100000 0x10000>;
177 reg = <0x110000 0x10000>;
183 reg = <0x120000 0x80000>;
189 reg = <0x1a0000 0x80000>;
195 reg = <0x220000 0x80000>;
201 reg = <0x2a0000 0x40000>;
207 reg = <0x2e0000 0x40000>;
213 reg = <0x320000 0x200000>;
218 reg = <0x520000 0xa60000>;
221 defaultmac: default-mac@0xfaf100 {
222 label = "default-mac";
223 reg = <0xfaf100 0x00200>;
229 reg = <0xfc0000 0x40000>;
236 phy@100f8800 { /* USB3 port 1 HS phy */
240 phy@100f8830 { /* USB3 port 1 SS phy */
244 phy@110f8800 { /* USB3 port 0 HS phy */
248 phy@110f8830 { /* USB3 port 0 SS phy */
260 pcie0: pci@1b500000 {
262 phy-tx0-term-offset = <7>;
265 pcie1: pci@1b700000 {
267 phy-tx0-term-offset = <7>;
271 compatible = "virtual,mdio-gpio";
272 #address-cells = <1>;
274 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
275 pinctrl-0 = <&mdio0_pins>;
276 pinctrl-names = "default";
278 phy0: ethernet-phy@0 {
279 device_type = "ethernet-phy";
281 qca,ar8327-initvals = <
282 0x00004 0x7600000 /* PAD0_MODE */
283 0x00008 0x1000000 /* PAD5_MODE */
284 0x0000c 0x80 /* PAD6_MODE */
285 0x000e4 0x6a545 /* MAC_POWER_SEL */
286 0x000e0 0xc74164de /* SGMII_CTRL */
287 0x0007c 0x4e /* PORT0_STATUS */
288 0x00094 0x4e /* PORT6_STATUS */
292 phy4: ethernet-phy@4 {
293 device_type = "ethernet-phy";
298 gmac1: ethernet@37200000 {
303 pinctrl-0 = <&rgmii2_pins>;
304 pinctrl-names = "default";
306 mtd-mac-address = <&defaultmac 0>;
307 mtd-mac-address-increment = <1>;
315 gmac2: ethernet@37400000 {
320 mtd-mac-address = <&defaultmac 0>;
329 pinctrl-0 = <&i2c4_pins>;
330 pinctrl-names = "default";
335 compatible = "gpio-keys";
336 pinctrl-0 = <&button_pins>;
337 pinctrl-names = "default";
341 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
342 linux,code = <KEY_RFKILL>;
347 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
348 linux,code = <KEY_RESTART>;
353 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
354 linux,code = <KEY_WPS_BUTTON>;
359 gpios = <&qcom_pinmux 67 GPIO_ACTIVE_LOW>;
360 linux,code = <KEY_PHONE>;
365 gpios = <&qcom_pinmux 68 GPIO_ACTIVE_LOW>;
366 linux,code = <KEY_LIGHTS_TOGGLE>;
371 compatible = "gpio-leds";
372 pinctrl-0 = <&led_pins>;
373 pinctrl-names = "default";
376 label = "vr2600v:white:dsl";
377 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
381 label = "vr2600v:white:usb";
382 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
386 label = "vr2600v:white:lan";
387 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
391 label = "vr2600v:white:wlan2g";
392 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_HIGH>;
396 label = "vr2600v:white:wlan5g";
397 gpios = <&qcom_pinmux 17 GPIO_ACTIVE_HIGH>;
401 label = "vr2600v:white:power";
402 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
403 default-state = "keep";
407 label = "vr2600v:white:phone";
408 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
412 label = "vr2600v:white:wan";
413 gpios = <&qcom_pinmux 56 GPIO_ACTIVE_HIGH>;
417 label = "vr2600v:white:general";
418 gpios = <&qcom_pinmux 66 GPIO_ACTIVE_HIGH>;