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";
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>;
91 clock-frequency = <25000000>;
108 compatible = "jedec,spi-nor";
110 spi-max-frequency = <25000000>;
113 compatible = "fixed-partitions";
114 #address-cells = <1>;
119 reg = <0x000000 0x020000>;
124 compatible = "tplink,firmware";
126 reg = <0x020000 0x3d0000>;
129 art: partition@3f0000 {
131 reg = <0x3f0000 0x010000>;
141 phy-handle = <&swphy0>;
142 mtd-mac-address = <&uboot 0x1fc00>;
143 mtd-mac-address-increment = <(-1)>;
149 mtd-mac-address = <&uboot 0x1fc00>;
151 pll-data = <0x06000000 0x00000101 0x00001616>;
155 switch-phy-swap = <1>;
162 mtd-cal-data = <&art 0x1000>;
163 mtd-mac-address = <&uboot 0x1fc00>;