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-WR841N/ND v8";
11 compatible = "tplink,tl-wr841-v8", "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>;
88 clock-frequency = <25000000>;
96 pinctrl-names = "default";
97 pinctrl-0 = <&jtag_disable_pins &pmx_usb_power>;
101 pmx_usb_power: usb_power {
102 pinctrl-single,bits = <0x4 0x0 0xff>;
112 compatible = "jedec,spi-nor";
114 spi-max-frequency = <25000000>;
117 compatible = "fixed-partitions";
118 #address-cells = <1>;
123 reg = <0x000000 0x020000>;
128 compatible = "tplink,firmware";
130 reg = <0x020000 0x3d0000>;
133 art: partition@3f0000 {
135 reg = <0x3f0000 0x010000>;
145 phy-handle = <&swphy0>;
146 mtd-mac-address = <&uboot 0x1fc00>;
147 mtd-mac-address-increment = <(-1)>;
153 mtd-mac-address = <&uboot 0x1fc00>;
155 pll-data = <0x06000000 0x00000101 0x00001616>;
159 switch-phy-swap = <1>;
166 mtd-cal-data = <&art 0x1000>;
167 mtd-mac-address = <&uboot 0x1fc00>;