1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 model = "TP-Link TL-WR841HP v2";
10 compatible = "tplink,tl-wr841hp-v2", "qca,ar9344";
13 led-boot = &led_system;
14 led-failsafe = &led_system;
15 led-running = &led_system;
16 led-upgrade = &led_system;
17 label-mac-device = &wmac;
21 compatible = "gpio-keys";
24 linux,code = <KEY_RESTART>;
25 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
26 debounce-interval = <60>;
31 compatible = "gpio-leds";
35 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
40 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
45 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
50 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
55 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
60 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
65 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
66 linux,default-trigger = "phy0tpt";
70 label = "green:system";
71 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
78 clock-frequency = <40000000>;
85 compatible = "jedec,spi-nor";
87 spi-max-frequency = <25000000>;
90 compatible = "fixed-partitions";
96 reg = <0x000000 0x020000>;
101 compatible = "tplink,firmware";
103 reg = <0x020000 0x7d0000>;
106 art: partition@7f0000 {
108 reg = <0x7f0000 0x010000>;
118 gpios = <18 GPIO_ACTIVE_HIGH>;
120 line-name = "tp-link:ext:lna0";
125 gpios = <19 GPIO_ACTIVE_HIGH>;
127 line-name = "tp-link:ext:lna1";
134 mtd-cal-data = <&art 0x1000>;
136 nvmem-cells = <&macaddr_uboot_1fc00>;
137 nvmem-cell-names = "mac-address";
143 phy-handle = <&swphy0>;
145 nvmem-cells = <&macaddr_uboot_1fc00>;
146 nvmem-cell-names = "mac-address";
147 mac-address-increment = <1>;
153 nvmem-cells = <&macaddr_uboot_1fc00>;
154 nvmem-cell-names = "mac-address";
158 switch-phy-swap = <1>;
163 compatible = "nvmem-cells";
164 #address-cells = <1>;
167 macaddr_uboot_1fc00: macaddr@1fc00 {