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-wr842n-v3", "qca,qca9533";
11 model = "TP-Link TL-WR842N v3";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 label-mac-device = ð1;
22 compatible = "gpio-leds";
25 label = "tp-link:green:power";
26 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
31 label = "tp-link:green:wlan";
32 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
33 linux,default-trigger = "phy0tpt";
37 label = "tp-link:green:qss";
38 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
42 label = "tp-link:green:wan";
43 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
47 label = "tp-link:red:wan";
48 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
52 label = "tp-link:green:lan1";
53 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
57 label = "tp-link:green:lan2";
58 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
62 label = "tp-link:green:lan3";
63 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
67 label = "tp-link:green:lan4";
68 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
72 label = "tp-link:green:usb";
73 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
74 linux,default-trigger = "usbport";
75 trigger-sources = <&hub_port>;
80 compatible = "gpio-keys";
83 label = "Reset button";
84 linux,code = <KEY_RESTART>;
85 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
86 debounce-interval = <60>;
90 label = "RFKILL button";
91 linux,code = <KEY_RFKILL>;
92 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
93 debounce-interval = <60>;
103 #address-cells = <1>;
109 #trigger-source-cells = <0>;
123 compatible = "jedec,spi-nor";
125 spi-max-frequency = <25000000>;
128 compatible = "fixed-partitions";
129 #address-cells = <1>;
134 reg = <0x000000 0x020000>;
139 compatible = "tplink,firmware";
141 reg = <0x020000 0xfd0000>;
144 art: partition@ff0000 {
146 reg = <0xff0000 0x010000>;
156 phy-handle = <&swphy4>;
158 mtd-mac-address = <&uboot 0x1fc00>;
159 mtd-mac-address-increment = <1>;
163 mtd-mac-address = <&uboot 0x1fc00>;
169 mtd-cal-data = <&art 0x1000>;
170 mtd-mac-address = <&uboot 0x1fc00>;