1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca956x.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 compatible = "tplink,tl-wdr6500-v2", "qca,qca9561";
11 model = "TP-Link TL-WDR6500 v2";
14 led-boot = &led_system;
15 led-failsafe = &led_system;
16 led-running = &led_system;
17 led-upgrade = &led_system;
18 label-mac-device = ð1;
22 compatible = "gpio-keys";
25 label = "Reset button";
26 linux,code = <KEY_RESTART>;
27 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
32 compatible = "gpio-leds";
36 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
41 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
46 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
51 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
55 function = LED_FUNCTION_WAN;
56 color = <LED_COLOR_ID_GREEN>;
57 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
61 label = "white:system";
62 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
72 compatible = "jedec,spi-nor";
74 spi-max-frequency = <25000000>;
77 compatible = "fixed-partitions";
83 reg = <0x000000 0x010000>;
87 compatible = "fixed-layout";
91 macaddr_uboot_fc00: macaddr@fc00 {
92 compatible = "mac-base";
94 #nvmem-cell-cells = <1>;
100 compatible = "tplink,firmware";
102 reg = <0x010000 0x7e0000>;
107 reg = <0x7f0000 0x010000>;
111 compatible = "fixed-layout";
112 #address-cells = <1>;
115 calibration_ath9k: calibration@1000 {
116 reg = <0x1000 0x440>;
119 calibration_ath10k: calibration@5000 {
120 reg = <0x5000 0x844>;
136 compatible = "qcom,ath10k";
139 nvmem-cells = <&macaddr_uboot_fc00 (-2)>, <&calibration_ath10k>;
140 nvmem-cell-names = "mac-address", "calibration";
151 phy-handle = <&swphy4>;
153 nvmem-cells = <&macaddr_uboot_fc00 1>;
154 nvmem-cell-names = "mac-address";
160 nvmem-cells = <&macaddr_uboot_fc00 0>;
161 nvmem-cell-names = "mac-address";
167 nvmem-cells = <&macaddr_uboot_fc00 (-1)>, <&calibration_ath9k>;
168 nvmem-cell-names = "mac-address", "calibration";