1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca956x.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "tplink,tl-wr941hp-v1", "qca,tp9343";
10 model = "TP-Link TL-WR941HP v1";
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 6 GPIO_ACTIVE_LOW>;
30 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
31 linux,default-trigger = "phy0tpt";
36 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
42 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
47 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
52 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
57 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
62 compatible = "gpio-keys";
65 label = "range extender button";
67 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
68 debounce-interval = <60>;
72 label = "wifi button";
73 linux,code = <KEY_RFKILL>;
74 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
75 debounce-interval = <60>;
79 label = "reset button";
80 linux,code = <KEY_RESTART>;
81 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
82 debounce-interval = <60>;
87 linux,code = <KEY_WPS_BUTTON>;
88 gpios = <&gpio 4 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 = <0x0 0x020000>;
114 compatible = "tplink,firmware";
116 reg = <0x020000 0x730000>;
119 config: partition@750000 {
121 reg = <0x750000 0x0a0000>;
125 art: partition@7f0000 {
127 reg = <0x7f0000 0x010000>;
137 phy-handle = <&swphy0>;
139 nvmem-cells = <&macaddr_config_8>;
140 nvmem-cell-names = "mac-address";
141 mac-address-increment = <1>;
147 nvmem-cells = <&macaddr_config_8>;
148 nvmem-cell-names = "mac-address";
154 mtd-cal-data = <&art 0x1000>;
155 nvmem-cells = <&macaddr_config_8>;
156 nvmem-cell-names = "mac-address";
160 compatible = "nvmem-cells";
161 #address-cells = <1>;
164 macaddr_config_8: macaddr@8 {