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-wr842n-v3", "qca,qca9533";
10 model = "TP-Link TL-WR842N v3";
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 label-mac-device = ð1;
21 compatible = "gpio-leds";
24 label = "green:power";
25 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
31 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
32 linux,default-trigger = "phy0tpt";
37 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
42 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
47 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
52 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
57 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
62 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
67 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
72 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
73 linux,default-trigger = "usbport";
74 trigger-sources = <&hub_port>;
79 compatible = "gpio-keys";
82 label = "Reset button";
83 linux,code = <KEY_RESTART>;
84 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
85 debounce-interval = <60>;
89 label = "RFKILL button";
90 linux,code = <KEY_RFKILL>;
91 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
92 debounce-interval = <60>;
104 #trigger-source-cells = <0>;
116 compatible = "jedec,spi-nor";
118 spi-max-frequency = <25000000>;
121 compatible = "fixed-partitions";
122 #address-cells = <1>;
127 reg = <0x000000 0x020000>;
132 compatible = "tplink,firmware";
134 reg = <0x020000 0xfd0000>;
137 art: partition@ff0000 {
139 reg = <0xff0000 0x010000>;
149 phy-handle = <&swphy4>;
151 mtd-mac-address = <&uboot 0x1fc00>;
152 mac-address-increment = <1>;
156 mtd-mac-address = <&uboot 0x1fc00>;
162 mtd-cal-data = <&art 0x1000>;
163 mtd-mac-address = <&uboot 0x1fc00>;