1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca953x.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "tplink,tl-wr841hp-v3", "qca,qca9533";
10 model = "TP-Link TL-WR841HP v3";
13 label-mac-device = &wmac;
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
21 compatible = "gpio-leds";
25 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
26 linux,default-trigger = "phy0tpt";
30 label = "green:power";
31 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
37 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
42 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
47 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
52 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
57 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
62 compatible = "gpio-keys";
65 label = "Reset button";
66 linux,code = <KEY_RESTART>;
67 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
68 debounce-interval = <60>;
72 label = "WiFi button";
73 linux,code = <KEY_RFKILL>;
74 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
75 debounce-interval = <60>;
80 linux,code = <KEY_WPS_BUTTON>;
81 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
82 debounce-interval = <60>;
88 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
89 debounce-interval = <60>;
98 compatible = "jedec,spi-nor";
100 spi-max-frequency = <25000000>;
103 compatible = "fixed-partitions";
104 #address-cells = <1>;
109 reg = <0x000000 0x020000>;
113 compatible = "fixed-layout";
114 #address-cells = <1>;
117 macaddr_uboot_1fc00: macaddr@1fc00 {
118 compatible = "mac-base";
120 #nvmem-cell-cells = <1>;
126 compatible = "tplink,firmware";
128 reg = <0x020000 0x7d0000>;
131 art: partition@7f0000 {
133 reg = <0x7f0000 0x010000>;
143 phy-handle = <&swphy4>;
145 nvmem-cells = <&macaddr_uboot_1fc00 1>;
146 nvmem-cell-names = "mac-address";
150 nvmem-cells = <&macaddr_uboot_1fc00 0>;
151 nvmem-cell-names = "mac-address";
157 mtd-cal-data = <&art 0x1000>;
158 nvmem-cells = <&macaddr_uboot_1fc00 0>;
159 nvmem-cell-names = "mac-address";