1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca953x.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-wr902ac-v1", "qca,qca9531";
11 model = "TP-Link TL-WR902AC v1";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 label-mac-device = &wmac;
22 compatible = "gpio-leds";
25 function = LED_FUNCTION_POWER;
26 color = <LED_COLOR_ID_GREEN>;
27 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
32 label = "green:internet";
33 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
37 label = "green:wlan2g";
38 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
39 linux,default-trigger = "phy0tpt";
43 function = LED_FUNCTION_USB;
44 color = <LED_COLOR_ID_GREEN>;
45 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
46 trigger-sources = <&hub_port0>;
47 linux,default-trigger = "usbport";
51 function = LED_FUNCTION_WPS;
52 color = <LED_COLOR_ID_GREEN>;
53 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
57 function = LED_FUNCTION_LAN;
58 color = <LED_COLOR_ID_GREEN>;
59 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
64 compatible = "gpio-keys";
67 label = "Reset button";
68 linux,code = <KEY_RESTART>;
69 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
74 linux,code = <KEY_WPS_BUTTON>;
75 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
79 label = "Mode switch 1";
80 linux,input-type = <EV_SW>;
82 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
86 label = "Mode switch 2";
87 linux,input-type = <EV_SW>;
89 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
94 compatible = "gpio-export";
97 gpio-export,name = "tp-link:power:usb";
98 gpio-export,output = <1>;
99 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
108 compatible = "jedec,spi-nor";
110 spi-max-frequency = <25000000>;
113 compatible = "fixed-partitions";
114 #address-cells = <1>;
119 reg = <0x000000 0x020000>;
124 compatible = "tplink,firmware";
126 reg = <0x020000 0x730000>;
129 info: partition@750000 {
131 reg = <0x750000 0x010000>;
135 compatible = "fixed-layout";
136 #address-cells = <1>;
139 macaddr_info_8: macaddr@8 {
140 compatible = "mac-base";
142 #nvmem-cell-cells = <1>;
149 reg = <0x760000 0x090000>;
153 art: partition@7f0000 {
155 reg = <0x7f0000 0x010000>;
159 compatible = "fixed-layout";
160 #address-cells = <1>;
163 cal_art_5000: calibration@5000 {
164 reg = <0x5000 0x844>;
175 phy-handle = <&swphy4>;
177 nvmem-cells = <&macaddr_info_8 1>;
178 nvmem-cell-names = "mac-address";
182 compatible = "syscon", "simple-mfd";
188 mtd-cal-data = <&art 0x1000>;
189 nvmem-cells = <&macaddr_info_8 0>;
190 nvmem-cell-names = "mac-address";
197 compatible = "pci168c,0050";
198 reg = <0x0000 0 0 0 0>;
199 nvmem-cells = <&cal_art_5000>, <&macaddr_info_8 (-1)>;
200 nvmem-cell-names = "calibration", "mac-address";