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";
41 pins = "gpio7", "gpio8", "gpio9", "gpio16", "gpio17",
42 "gpio26", "gpio53", "gpio56", "gpio66";
48 i2c4_pins: i2c4_pinmux {
50 pins = "gpio12", "gpio13";
52 drive-strength = <12>;
57 button_pins: button_pins {
58 pins = "gpio54", "gpio64", "gpio65", "gpio67", "gpio68";
66 pins = "gpio18", "gpio19", "gpio21";
72 pins = "gpio18", "gpio19";
73 drive-strength = <10>;
78 drive-strength = <10>;
84 drive-strength = <12>;
88 mdio0_pins: mdio0_pins {
90 pins = "gpio0", "gpio1";
97 rgmii2_pins: rgmii2_pins {
99 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
100 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
102 drive-strength = <8>;
110 qcom,mode = <GSBI_PROT_I2C_UART>;
116 * The i2c device on gsbi4 should not be enabled.
117 * On ipq806x designs gsbi4 i2c is meant for exclusive
118 * RPM usage. Turning this on in kernel manifests as
119 * i2c failure for the RPM.
123 gsbi5: gsbi@1a200000 {
124 qcom,mode = <GSBI_PROT_SPI>;
129 spi-max-frequency = <50000000>;
131 pinctrl-0 = <&spi_pins>;
132 pinctrl-names = "default";
134 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
137 compatible = "jedec,spi-nor";
138 #address-cells = <1>;
140 spi-max-frequency = <50000000>;
151 reg = <0x20000 0x20000>;
157 reg = <0x40000 0x40000>;
163 reg = <0x80000 0x80000>;
169 reg = <0x100000 0x10000>;
175 reg = <0x110000 0x10000>;
181 reg = <0x120000 0x80000>;
187 reg = <0x1a0000 0x80000>;
193 reg = <0x220000 0x80000>;
199 reg = <0x2a0000 0x40000>;
205 reg = <0x2e0000 0x40000>;
211 reg = <0x320000 0x200000>;
216 reg = <0x520000 0xa60000>;
219 defaultmac: default-mac@0xfaf100 {
220 label = "default-mac";
221 reg = <0xfaf100 0x00200>;
227 reg = <0xfc0000 0x40000>;
235 phy@100f8800 { /* USB3 port 1 HS phy */
239 phy@100f8830 { /* USB3 port 1 SS phy */
243 phy@110f8800 { /* USB3 port 0 HS phy */
247 phy@110f8830 { /* USB3 port 0 SS phy */
259 pcie0: pci@1b500000 {
261 phy-tx0-term-offset = <7>;
264 pcie1: pci@1b700000 {
266 phy-tx0-term-offset = <7>;
270 compatible = "virtual,mdio-gpio";
271 #address-cells = <1>;
273 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
274 pinctrl-0 = <&mdio0_pins>;
275 pinctrl-names = "default";
277 phy0: ethernet-phy@0 {
278 device_type = "ethernet-phy";
280 qca,ar8327-initvals = <
281 0x00004 0x7600000 /* PAD0_MODE */
282 0x00008 0x1000000 /* PAD5_MODE */
283 0x0000c 0x80 /* PAD6_MODE */
284 0x000e4 0x6a545 /* MAC_POWER_SEL */
285 0x000e0 0xc74164de /* SGMII_CTRL */
286 0x0007c 0x4e /* PORT0_STATUS */
287 0x00094 0x4e /* PORT6_STATUS */
291 phy4: ethernet-phy@4 {
292 device_type = "ethernet-phy";
297 gmac1: ethernet@37200000 {
302 pinctrl-0 = <&rgmii2_pins>;
303 pinctrl-names = "default";
305 mtd-mac-address = <&defaultmac 0>;
306 mtd-mac-address-increment = <1>;
314 gmac2: ethernet@37400000 {
319 mtd-mac-address = <&defaultmac 0>;
328 pinctrl-0 = <&i2c4_pins>;
329 pinctrl-names = "default";
334 compatible = "gpio-keys";
335 pinctrl-0 = <&button_pins>;
336 pinctrl-names = "default";
340 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
341 linux,code = <KEY_RFKILL>;
346 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
347 linux,code = <KEY_RESTART>;
352 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
353 linux,code = <KEY_WPS_BUTTON>;
358 gpios = <&qcom_pinmux 67 GPIO_ACTIVE_LOW>;
359 linux,code = <KEY_PHONE>;
364 gpios = <&qcom_pinmux 68 GPIO_ACTIVE_LOW>;
365 linux,code = <KEY_LIGHTS_TOGGLE>;
370 compatible = "gpio-leds";
371 pinctrl-0 = <&led_pins>;
372 pinctrl-names = "default";
375 label = "vr2600v:white:dsl";
376 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
380 label = "vr2600v:white:usb";
381 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
385 label = "vr2600v:white:lan";
386 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
390 label = "vr2600v:white:wlan2g";
391 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_HIGH>;
395 label = "vr2600v:white:wlan5g";
396 gpios = <&qcom_pinmux 17 GPIO_ACTIVE_HIGH>;
400 label = "vr2600v:white:power";
401 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
405 label = "vr2600v:white:phone";
406 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
410 label = "vr2600v:white:wan";
411 gpios = <&qcom_pinmux 56 GPIO_ACTIVE_HIGH>;
415 label = "vr2600v:white:general";
416 gpios = <&qcom_pinmux 66 GPIO_ACTIVE_HIGH>;