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-wa1201-v2", "qca,qca9563";
11 model = "TP-Link TL-WA1201 v2";
14 label-mac-device = ð0;
15 led-boot = &led_power;
16 led-failsafe = &led_power;
17 led-running = &led_power;
18 led-upgrade = &led_power;
23 compatible = "gpio-leds";
26 function = LED_FUNCTION_POWER;
27 color = <LED_COLOR_ID_GREEN>;
28 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
33 label = "green:wlan2g";
34 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
35 linux,default-trigger = "phy1tpt";
39 label = "green:wlan5g";
40 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
41 linux,default-trigger = "phy0tpt";
45 function = LED_FUNCTION_LAN;
46 color = <LED_COLOR_ID_GREEN>;
47 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
52 compatible = "gpio-keys";
55 label = "Reset button";
56 linux,code = <KEY_RESTART>;
57 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
58 debounce-interval = <60>;
63 linux,code = <KEY_WPS_BUTTON>;
64 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
65 debounce-interval = <60>;
70 compatible = "virtual,mdio-gpio";
75 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>, /* MDC */
76 <&gpio 4 GPIO_ACTIVE_HIGH>; /* MDIO */
78 phy4: ethernet-phy@4 {
91 compatible = "qcom,ath10k";
92 reg = <0x0000 0 0 0 0>;
93 nvmem-cells = <&precal_art_5000>, <&macaddr_info_8 (-1)>;
94 nvmem-cell-names = "pre-calibration", "mac-address";
102 phy-handle = <&phy4>;
104 nvmem-cells = <&macaddr_info_8 0>;
105 nvmem-cell-names = "mac-address";
111 mtd-cal-data = <&art 0x1000>;
113 nvmem-cells = <&macaddr_info_8 0>;
114 nvmem-cell-names = "mac-address";
121 compatible = "jedec,spi-nor";
123 spi-max-frequency = <25000000>;
126 compatible = "fixed-partitions";
127 #address-cells = <1>;
132 reg = <0x000000 0x020000>;
136 info: partition@20000 {
138 reg = <0x020000 0x010000>;
142 compatible = "fixed-layout";
143 #address-cells = <1>;
146 macaddr_info_8: macaddr@8 {
147 compatible = "mac-base";
149 #nvmem-cell-cells = <1>;
155 compatible = "denx,uimage";
157 reg = <0x030000 0xce0000>;
162 reg = <0xd10000 0x2e0000>;
166 art: partition@ff0000 {
168 reg = <0xff0000 0x010000>;
172 compatible = "fixed-layout";
173 #address-cells = <1>;
176 precal_art_5000: pre-calibration@5000 {
177 reg = <0x5000 0x2f20>;