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 bootargs = "console=ttyS0,115200n8";
26 compatible = "gpio-leds";
29 label = "tp-link:green:power";
30 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
35 label = "tp-link:green:internet";
36 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
40 label = "tp-link:green:wlan2g";
41 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
42 linux,default-trigger = "phy0tpt";
46 label = "tp-link:green:usb";
47 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
48 trigger-sources = <&hub_port0>;
49 linux,default-trigger = "usbport";
53 label = "tp-link:green:wps";
54 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
58 label = "tp-link:green:lan";
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>;
112 compatible = "jedec,spi-nor";
114 spi-max-frequency = <25000000>;
117 compatible = "fixed-partitions";
118 #address-cells = <1>;
123 reg = <0x000000 0x020000>;
128 compatible = "tplink,firmware";
130 reg = <0x020000 0x730000>;
133 tplink: partition@750000 {
135 reg = <0x750000 0x0a0000>;
139 art: partition@7f0000 {
141 reg = <0x7f0000 0x010000>;
151 phy-handle = <&swphy4>;
153 mtd-mac-address = <&tplink 0x8>;
154 mtd-mac-address-increment = <1>;
158 compatible = "syscon", "simple-mfd";
164 mtd-cal-data = <&art 0x1000>;
165 mtd-mac-address = <&tplink 0x8>;
172 compatible = "pci168c,0050";
173 reg = <0x0000 0 0 0 0>;
182 #address-cells = <1>;
188 #trigger-source-cells = <0>;