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";
81 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
85 label = "Mode switch 2";
87 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
92 compatible = "gpio-export";
95 gpio-export,name = "tp-link:power:usb";
96 gpio-export,output = <1>;
97 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
110 compatible = "jedec,spi-nor";
112 spi-max-frequency = <25000000>;
115 compatible = "fixed-partitions";
116 #address-cells = <1>;
121 reg = <0x000000 0x020000>;
126 compatible = "tplink,firmware";
128 reg = <0x020000 0x730000>;
131 tplink: partition@750000 {
133 reg = <0x750000 0x0a0000>;
137 art: partition@7f0000 {
139 reg = <0x7f0000 0x010000>;
149 phy-handle = <&swphy4>;
151 mtd-mac-address = <&tplink 0x8>;
152 mtd-mac-address-increment = <1>;
156 compatible = "syscon", "simple-mfd";
162 mtd-cal-data = <&art 0x1000>;
163 mtd-mac-address = <&tplink 0x8>;
170 compatible = "pci168c,0050";
171 reg = <0x0000 0 0 0 0>;
180 #address-cells = <1>;
186 #trigger-source-cells = <0>;