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>
7 #include <dt-bindings/leds/common.h>
10 model = "TP-Link TL-WR841HP v2";
11 compatible = "tplink,tl-wr841hp-v2", "qca,ar9344";
14 led-boot = &led_system;
15 led-failsafe = &led_system;
16 led-running = &led_system;
17 led-upgrade = &led_system;
18 label-mac-device = &wmac;
22 compatible = "gpio-keys";
25 linux,code = <KEY_RESTART>;
26 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
27 debounce-interval = <60>;
32 compatible = "gpio-leds";
35 function = LED_FUNCTION_WAN;
36 color = <LED_COLOR_ID_GREEN>;
37 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
42 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
47 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
52 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
57 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
61 function = LED_FUNCTION_WPS;
62 color = <LED_COLOR_ID_GREEN>;
63 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
67 function = LED_FUNCTION_WLAN;
68 color = <LED_COLOR_ID_GREEN>;
69 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
70 linux,default-trigger = "phy0tpt";
74 label = "green:system";
75 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
82 clock-frequency = <40000000>;
89 compatible = "jedec,spi-nor";
91 spi-max-frequency = <25000000>;
94 compatible = "fixed-partitions";
100 reg = <0x000000 0x020000>;
104 compatible = "fixed-layout";
105 #address-cells = <1>;
108 macaddr_uboot_1fc00: macaddr@1fc00 {
109 compatible = "mac-base";
111 #nvmem-cell-cells = <1>;
117 compatible = "tplink,firmware";
119 reg = <0x020000 0x7d0000>;
122 art: partition@7f0000 {
124 reg = <0x7f0000 0x010000>;
134 gpios = <18 GPIO_ACTIVE_HIGH>;
136 line-name = "tp-link:ext:lna0";
141 gpios = <19 GPIO_ACTIVE_HIGH>;
143 line-name = "tp-link:ext:lna1";
150 mtd-cal-data = <&art 0x1000>;
152 nvmem-cells = <&macaddr_uboot_1fc00 0>;
153 nvmem-cell-names = "mac-address";
159 phy-handle = <&swphy0>;
161 nvmem-cells = <&macaddr_uboot_1fc00 1>;
162 nvmem-cell-names = "mac-address";
168 nvmem-cells = <&macaddr_uboot_1fc00 0>;
169 nvmem-cell-names = "mac-address";
173 switch-phy-swap = <1>;