1 #include "qcom-ipq8064-v2.0-smb208.dtsi"
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/leds/common.h>
7 model = "TP-Link Archer VR2600v";
8 compatible = "tplink,vr2600v", "qcom,ipq8064";
11 reg = <0x42000000 0x1e000000>;
12 device_type = "memory";
19 led-failsafe = &general;
21 led-upgrade = &general;
25 compatible = "gpio-keys";
26 pinctrl-0 = <&button_pins>;
27 pinctrl-names = "default";
31 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_RFKILL>;
33 debounce-interval = <60>;
39 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_RESTART>;
41 debounce-interval = <60>;
47 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_WPS_BUTTON>;
49 debounce-interval = <60>;
55 gpios = <&qcom_pinmux 67 GPIO_ACTIVE_LOW>;
56 linux,code = <KEY_PHONE>;
57 debounce-interval = <60>;
63 gpios = <&qcom_pinmux 68 GPIO_ACTIVE_LOW>;
64 linux,code = <KEY_LIGHTS_TOGGLE>;
65 debounce-interval = <60>;
71 compatible = "gpio-leds";
72 pinctrl-0 = <&led_pins>;
73 pinctrl-names = "default";
77 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
81 function = LED_FUNCTION_USB;
82 color = <LED_COLOR_ID_WHITE>;
83 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
87 function = LED_FUNCTION_LAN;
88 color = <LED_COLOR_ID_WHITE>;
89 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
93 label = "white:wlan2g";
94 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_HIGH>;
98 label = "white:wlan5g";
99 gpios = <&qcom_pinmux 17 GPIO_ACTIVE_HIGH>;
103 function = LED_FUNCTION_POWER;
104 color = <LED_COLOR_ID_WHITE>;
105 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
106 default-state = "keep";
110 label = "white:phone";
111 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
115 function = LED_FUNCTION_WAN;
116 color = <LED_COLOR_ID_WHITE>;
117 gpios = <&qcom_pinmux 56 GPIO_ACTIVE_HIGH>;
121 label = "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_SPI>;
179 pinctrl-0 = <&spi_pins>;
180 pinctrl-names = "default";
182 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
185 compatible = "jedec,spi-nor";
186 #address-cells = <1>;
188 spi-max-frequency = <50000000>;
192 compatible = "fixed-partitions";
193 #address-cells = <1>;
204 reg = <0x20000 0x20000>;
210 reg = <0x40000 0x40000>;
216 reg = <0x80000 0x80000>;
222 reg = <0x100000 0x10000>;
228 reg = <0x110000 0x10000>;
234 reg = <0x120000 0x80000>;
240 reg = <0x1a0000 0x80000>;
246 reg = <0x220000 0x80000>;
252 reg = <0x2a0000 0x40000>;
258 reg = <0x2e0000 0x40000>;
264 reg = <0x320000 0xc60000>;
265 compatible = "openwrt,uimage";
266 openwrt,offset = <512>; /* account for pad-extra 512 */
269 /* hole 0xf80000 - 0xfaf100 */
272 label = "default-mac";
273 reg = <0xfaf100 0x00200>;
277 compatible = "fixed-layout";
278 #address-cells = <1>;
281 macaddr_defaultmac_0: macaddr@0 {
282 compatible = "mac-base";
284 #nvmem-cell-cells = <1>;
291 reg = <0xfc0000 0x40000>;
295 compatible = "fixed-layout";
296 #address-cells = <1>;
299 precal_ART_1000: precal@1000 {
300 reg = <0x1000 0x2f20>;
303 precal_ART_5000: precal@5000 {
304 reg = <0x5000 0x2f20>;
341 reg = <0x00000000 0 0 0 0>;
342 #address-cells = <3>;
347 compatible = "pci168c,0040";
348 reg = <0x00010000 0 0 0 0>;
350 nvmem-cells = <&macaddr_defaultmac_0 (-1)>, <&precal_ART_1000>;
351 nvmem-cell-names = "mac-address", "pre-calibration";
358 max-link-speed = <1>;
361 reg = <0x00000000 0 0 0 0>;
362 #address-cells = <3>;
367 compatible = "pci168c,0040";
368 reg = <0x00010000 0 0 0 0>;
370 nvmem-cells = <&macaddr_defaultmac_0 0>, <&precal_ART_5000>;
371 nvmem-cell-names = "mac-address", "pre-calibration";
379 pinctrl-0 = <&mdio0_pins>;
380 pinctrl-names = "default";
383 compatible = "qca,qca8337";
384 #address-cells = <1>;
389 #address-cells = <1>;
397 tx-internal-delay-ps = <1000>;
398 rx-internal-delay-ps = <1000>;
409 phy-mode = "internal";
410 phy-handle = <&phy_port1>;
416 phy-mode = "internal";
417 phy-handle = <&phy_port2>;
423 phy-mode = "internal";
424 phy-handle = <&phy_port3>;
430 phy-mode = "internal";
431 phy-handle = <&phy_port4>;
437 phy-mode = "internal";
438 phy-handle = <&phy_port5>;
446 qca,sgmii-enable-pll;
456 #address-cells = <1>;
487 pinctrl-0 = <&rgmii2_pins>;
488 pinctrl-names = "default";
490 nvmem-cells = <&macaddr_defaultmac_0 1>;
491 nvmem-cell-names = "mac-address";
504 nvmem-cells = <&macaddr_defaultmac_0 0>;
505 nvmem-cell-names = "mac-address";