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>
10 model = "TP-Link TL-WR842N/ND v2";
11 compatible = "tplink,tl-wr842n-v2", "qca,ar9341";
16 led-failsafe = &system;
17 led-running = &system;
18 led-upgrade = &system;
22 compatible = "gpio-keys-polled";
25 pinctrl-names = "default";
26 pinctrl-0 = <&jtag_disable_pins>;
30 linux,code = <KEY_RESTART>;
31 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
32 debounce-interval = <60>;
37 linux,code = <KEY_RFKILL>;
38 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
39 debounce-interval = <60>;
44 compatible = "gpio-leds";
47 label = "tp-link:green:power";
48 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
53 label = "tp-link:green:wlan";
54 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
55 default-state = "off";
56 linux,default-trigger = "phy0tpt";
60 label = "tp-link:green:qss";
61 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
62 default-state = "off";
66 label = "tp-link:green:wan";
67 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
68 default-state = "off";
72 label = "tp-link:green:lan1";
73 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
74 default-state = "off";
78 label = "tp-link:green:lan2";
79 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
80 default-state = "off";
84 label = "tp-link:green:lan3";
85 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
86 default-state = "off";
90 label = "tp-link:green:lan4";
91 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
92 default-state = "off";
96 label = "tp-link:green:usb";
97 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
98 default-state = "off";
99 trigger-sources = <&hub_port>;
100 linux,default-trigger = "usbport";
105 compatible = "gpio-export";
108 gpio-export,name = "tp-link:power:usb";
109 gpio-export,output = <1>;
110 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
116 clock-frequency = <25000000>;
133 compatible = "jedec,spi-nor";
135 spi-max-frequency = <25000000>;
138 compatible = "fixed-partitions";
139 #address-cells = <1>;
144 reg = <0x000000 0x020000>;
149 compatible = "tplink,firmware";
151 reg = <0x020000 0x7d0000>;
154 art: partition@7f0000 {
156 reg = <0x7f0000 0x010000>;
164 #address-cells = <1>;
170 #trigger-source-cells = <0>;
181 phy-handle = <&swphy0>;
182 mtd-mac-address = <&uboot 0x1fc00>;
183 mtd-mac-address-increment = <(-1)>;
189 phy-handle = <&swphy4>;
190 mtd-mac-address = <&uboot 0x1fc00>;
192 pll-data = <0x06000000 0x00000101 0x00001616>;
196 switch-phy-swap = <1>;
203 mtd-cal-data = <&art 0x1000>;
204 mtd-mac-address = <&uboot 0x1fc00>;