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>;
100 compatible = "fixed-layout";
101 #address-cells = <1>;
104 macaddr_uboot_1fc00: macaddr@1fc00 {
105 compatible = "mac-base";
107 #nvmem-cell-cells = <1>;
113 compatible = "tplink,firmware";
115 reg = <0x020000 0x7d0000>;
118 art: partition@7f0000 {
120 reg = <0x7f0000 0x010000>;
130 gpios = <18 GPIO_ACTIVE_HIGH>;
132 line-name = "tp-link:ext:lna0";
137 gpios = <19 GPIO_ACTIVE_HIGH>;
139 line-name = "tp-link:ext:lna1";
146 mtd-cal-data = <&art 0x1000>;
148 nvmem-cells = <&macaddr_uboot_1fc00 0>;
149 nvmem-cell-names = "mac-address";
155 phy-handle = <&swphy0>;
157 nvmem-cells = <&macaddr_uboot_1fc00 1>;
158 nvmem-cell-names = "mac-address";
164 nvmem-cells = <&macaddr_uboot_1fc00 0>;
165 nvmem-cell-names = "mac-address";
169 switch-phy-swap = <1>;