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 linux,default-trigger = "phy0tpt";
59 label = "tp-link:green:qss";
60 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
64 label = "tp-link:green:wan";
65 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
69 label = "tp-link:green:lan1";
70 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
74 label = "tp-link:green:lan2";
75 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
79 label = "tp-link:green:lan3";
80 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
84 label = "tp-link:green:lan4";
85 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
89 label = "tp-link:green:usb";
90 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
91 trigger-sources = <&hub_port>;
92 linux,default-trigger = "usbport";
97 compatible = "gpio-export";
100 gpio-export,name = "tp-link:power:usb";
101 gpio-export,output = <1>;
102 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
108 clock-frequency = <25000000>;
125 compatible = "jedec,spi-nor";
127 spi-max-frequency = <25000000>;
130 compatible = "fixed-partitions";
131 #address-cells = <1>;
136 reg = <0x000000 0x020000>;
141 compatible = "tplink,firmware";
143 reg = <0x020000 0x7d0000>;
146 art: partition@7f0000 {
148 reg = <0x7f0000 0x010000>;
156 #address-cells = <1>;
162 #trigger-source-cells = <0>;
173 phy-handle = <&swphy0>;
174 mtd-mac-address = <&uboot 0x1fc00>;
175 mtd-mac-address-increment = <(-1)>;
181 phy-handle = <&swphy4>;
182 mtd-mac-address = <&uboot 0x1fc00>;
184 pll-data = <0x06000000 0x00000101 0x00001616>;
188 switch-phy-swap = <1>;
195 mtd-cal-data = <&art 0x1000>;
196 mtd-mac-address = <&uboot 0x1fc00>;