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 mdio0: mdio@37000000 {
43 compatible = "qcom,ipq8064-mdio", "syscon";
44 reg = <0x37000000 0x200000>;
45 resets = <&gcc GMAC_CORE1_RESET>;
46 reset-names = "stmmaceth";
47 clocks = <&gcc GMAC_CORE1_CLK>;
48 clock-names = "stmmaceth";
50 pinctrl-0 = <&mdio0_pins>;
51 pinctrl-names = "default";
53 phy0: ethernet-phy@0 {
55 qca,ar8327-initvals = <
56 0x00004 0x7600000 /* PAD0_MODE */
57 0x00008 0x1000000 /* PAD5_MODE */
58 0x0000c 0x80 /* PAD6_MODE */
59 0x000e4 0x6a545 /* MAC_POWER_SEL */
60 0x000e0 0xc74164de /* SGMII_CTRL */
61 0x0007c 0x4e /* PORT0_STATUS */
62 0x00094 0x4e /* PORT6_STATUS */
66 phy4: ethernet-phy@4 {
73 compatible = "gpio-keys";
74 pinctrl-0 = <&button_pins>;
75 pinctrl-names = "default";
79 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
80 linux,code = <KEY_RFKILL>;
85 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
86 linux,code = <KEY_RESTART>;
91 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
92 linux,code = <KEY_WPS_BUTTON>;
97 gpios = <&qcom_pinmux 67 GPIO_ACTIVE_LOW>;
98 linux,code = <KEY_PHONE>;
103 gpios = <&qcom_pinmux 68 GPIO_ACTIVE_LOW>;
104 linux,code = <KEY_LIGHTS_TOGGLE>;
109 compatible = "gpio-leds";
110 pinctrl-0 = <&led_pins>;
111 pinctrl-names = "default";
114 label = "vr2600v:white:dsl";
115 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
119 label = "vr2600v:white:usb";
120 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
124 label = "vr2600v:white:lan";
125 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
129 label = "vr2600v:white:wlan2g";
130 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_HIGH>;
134 label = "vr2600v:white:wlan5g";
135 gpios = <&qcom_pinmux 17 GPIO_ACTIVE_HIGH>;
139 label = "vr2600v:white:power";
140 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
141 default-state = "keep";
145 label = "vr2600v:white:phone";
146 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
150 label = "vr2600v:white:wan";
151 gpios = <&qcom_pinmux 56 GPIO_ACTIVE_HIGH>;
155 label = "vr2600v:white:general";
156 gpios = <&qcom_pinmux 66 GPIO_ACTIVE_HIGH>;
164 pins = "gpio7", "gpio8", "gpio9", "gpio16", "gpio17",
165 "gpio26", "gpio53", "gpio56", "gpio66";
167 drive-strength = <2>;
172 i2c4_pins: i2c4_pinmux {
174 pins = "gpio12", "gpio13";
176 drive-strength = <12>;
181 button_pins: button_pins {
183 pins = "gpio54", "gpio64", "gpio65", "gpio67", "gpio68";
185 drive-strength = <2>;
192 pins = "gpio18", "gpio19", "gpio21";
198 pins = "gpio18", "gpio19";
199 drive-strength = <10>;
204 drive-strength = <10>;
210 drive-strength = <12>;
214 mdio0_pins: mdio0_pins {
216 pins = "gpio0", "gpio1";
218 drive-strength = <8>;
223 rgmii2_pins: rgmii2_pins {
225 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
226 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
228 drive-strength = <8>;
235 qcom,mode = <GSBI_PROT_I2C_UART>;
241 * The i2c device on gsbi4 should not be enabled.
242 * On ipq806x designs gsbi4 i2c is meant for exclusive
243 * RPM usage. Turning this on in kernel manifests as
244 * i2c failure for the RPM.
249 qcom,mode = <GSBI_PROT_SPI>;
255 pinctrl-0 = <&spi_pins>;
256 pinctrl-names = "default";
258 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
261 compatible = "jedec,spi-nor";
262 #address-cells = <1>;
264 spi-max-frequency = <50000000>;
275 reg = <0x20000 0x20000>;
281 reg = <0x40000 0x40000>;
287 reg = <0x80000 0x80000>;
293 reg = <0x100000 0x10000>;
299 reg = <0x110000 0x10000>;
305 reg = <0x120000 0x80000>;
311 reg = <0x1a0000 0x80000>;
317 reg = <0x220000 0x80000>;
323 reg = <0x2a0000 0x40000>;
329 reg = <0x2e0000 0x40000>;
335 reg = <0x320000 0x300000>;
340 reg = <0x620000 0x960000>;
343 defaultmac: default-mac@0xfaf100 {
344 label = "default-mac";
345 reg = <0xfaf100 0x00200>;
351 reg = <0xfc0000 0x40000>;
380 pinctrl-0 = <&rgmii2_pins>;
381 pinctrl-names = "default";
383 mtd-mac-address = <&defaultmac 0>;
384 mtd-mac-address-increment = <1>;
397 mtd-mac-address = <&defaultmac 0>;