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";
27 linux,code = <KEY_RESTART>;
28 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
29 debounce-interval = <60>;
34 linux,code = <KEY_RFKILL>;
35 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
36 debounce-interval = <60>;
41 compatible = "gpio-leds";
44 label = "tp-link:green:power";
45 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
50 label = "tp-link:green:wlan";
51 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
52 linux,default-trigger = "phy0tpt";
56 label = "tp-link:green:qss";
57 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
61 label = "tp-link:green:wan";
62 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
66 label = "tp-link:green:lan1";
67 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
71 label = "tp-link:green:lan2";
72 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
76 label = "tp-link:green:lan3";
77 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
81 label = "tp-link:green:lan4";
82 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
86 label = "tp-link:green:usb";
87 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
88 trigger-sources = <&hub_port>;
89 linux,default-trigger = "usbport";
94 compatible = "gpio-export";
97 gpio-export,name = "tp-link:power:usb";
98 gpio-export,output = <1>;
99 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
105 clock-frequency = <25000000>;
113 pinctrl-names = "default";
114 pinctrl-0 = <&jtag_disable_pins &pmx_usb_power>;
118 pmx_usb_power: usb_power {
119 pinctrl-single,bits = <0x4 0x0 0xff>;
129 compatible = "jedec,spi-nor";
131 spi-max-frequency = <25000000>;
134 compatible = "fixed-partitions";
135 #address-cells = <1>;
140 reg = <0x000000 0x020000>;
145 compatible = "tplink,firmware";
147 reg = <0x020000 0x7d0000>;
150 art: partition@7f0000 {
152 reg = <0x7f0000 0x010000>;
160 #address-cells = <1>;
166 #trigger-source-cells = <0>;
177 phy-handle = <&swphy0>;
178 mtd-mac-address = <&uboot 0x1fc00>;
179 mtd-mac-address-increment = <(-1)>;
185 phy-handle = <&swphy4>;
186 mtd-mac-address = <&uboot 0x1fc00>;
188 pll-data = <0x06000000 0x00000101 0x00001616>;
192 switch-phy-swap = <1>;
199 mtd-cal-data = <&art 0x1000>;
200 mtd-mac-address = <&uboot 0x1fc00>;