1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
7 #include "qca953x.dtsi"
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 label = "tp-link:green:power";
26 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
31 label = "tp-link:green:internet";
32 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
36 label = "tp-link:green:wlan2g";
37 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
38 linux,default-trigger = "phy0tpt";
42 label = "tp-link:green:usb";
43 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
44 trigger-sources = <&hub_port0>;
45 linux,default-trigger = "usbport";
49 label = "tp-link:green:wps";
50 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
54 label = "tp-link:green:lan";
55 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
60 compatible = "gpio-keys";
63 label = "Reset button";
64 linux,code = <KEY_RESTART>;
65 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
70 linux,code = <KEY_WPS_BUTTON>;
71 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
75 label = "Mode switch 1";
76 linux,input-type = <EV_SW>;
78 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
82 label = "Mode switch 2";
83 linux,input-type = <EV_SW>;
85 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
90 compatible = "gpio-export";
93 gpio-export,name = "tp-link:power:usb";
94 gpio-export,output = <1>;
95 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>;
137 reg = <0x760000 0x090000>;
141 art: partition@7f0000 {
143 reg = <0x7f0000 0x010000>;
153 phy-handle = <&swphy4>;
155 mtd-mac-address = <&info 0x8>;
156 mtd-mac-address-increment = <1>;
160 compatible = "syscon", "simple-mfd";
166 mtd-cal-data = <&art 0x1000>;
167 mtd-mac-address = <&info 0x8>;
174 compatible = "pci168c,0050";
175 reg = <0x0000 0 0 0 0>;
184 #address-cells = <1>;
190 #trigger-source-cells = <0>;