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>
9 compatible = "tplink,tl-wr902ac-v1", "qca,qca9531";
10 model = "TP-Link TL-WR902AC v1";
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 label-mac-device = &wmac;
21 compatible = "gpio-leds";
24 label = "green:power";
25 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
30 label = "green:internet";
31 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
35 label = "green:wlan2g";
36 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
37 linux,default-trigger = "phy0tpt";
42 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
43 trigger-sources = <&hub_port0>;
44 linux,default-trigger = "usbport";
49 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
54 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
59 compatible = "gpio-keys";
62 label = "Reset button";
63 linux,code = <KEY_RESTART>;
64 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
69 linux,code = <KEY_WPS_BUTTON>;
70 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
74 label = "Mode switch 1";
75 linux,input-type = <EV_SW>;
77 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
81 label = "Mode switch 2";
82 linux,input-type = <EV_SW>;
84 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
89 compatible = "gpio-export";
92 gpio-export,name = "tp-link:power:usb";
93 gpio-export,output = <1>;
94 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
107 compatible = "jedec,spi-nor";
109 spi-max-frequency = <25000000>;
112 compatible = "fixed-partitions";
113 #address-cells = <1>;
118 reg = <0x000000 0x020000>;
123 compatible = "tplink,firmware";
125 reg = <0x020000 0x730000>;
128 info: partition@750000 {
130 reg = <0x750000 0x010000>;
136 reg = <0x760000 0x090000>;
140 art: partition@7f0000 {
142 reg = <0x7f0000 0x010000>;
152 phy-handle = <&swphy4>;
154 mtd-mac-address = <&info 0x8>;
155 mtd-mac-address-increment = <1>;
159 compatible = "syscon", "simple-mfd";
165 mtd-cal-data = <&art 0x1000>;
166 mtd-mac-address = <&info 0x8>;
173 compatible = "pci168c,0050";
174 reg = <0x0000 0 0 0 0>;
183 #address-cells = <1>;
189 #trigger-source-cells = <0>;