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>
7 #include <dt-bindings/leds/common.h>
10 compatible = "tplink,tl-wr842n-v3", "qca,qca9533";
11 model = "TP-Link TL-WR842N v3";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 label-mac-device = ð1;
22 compatible = "gpio-leds";
25 function = LED_FUNCTION_POWER;
26 color = <LED_COLOR_ID_GREEN>;
27 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
32 function = LED_FUNCTION_WLAN;
33 color = <LED_COLOR_ID_GREEN>;
34 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
35 linux,default-trigger = "phy0tpt";
40 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
44 function = LED_FUNCTION_WAN;
45 color = <LED_COLOR_ID_GREEN>;
46 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
50 function = LED_FUNCTION_WAN;
51 color = <LED_COLOR_ID_RED>;
52 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
57 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
62 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
67 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
72 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
76 function = LED_FUNCTION_USB;
77 color = <LED_COLOR_ID_GREEN>;
78 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
79 linux,default-trigger = "usbport";
80 trigger-sources = <&hub_port0>;
85 compatible = "gpio-keys";
88 label = "Reset button";
89 linux,code = <KEY_RESTART>;
90 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
91 debounce-interval = <60>;
95 label = "RFKILL button";
96 linux,code = <KEY_RFKILL>;
97 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
98 debounce-interval = <60>;
115 compatible = "jedec,spi-nor";
117 spi-max-frequency = <25000000>;
120 compatible = "fixed-partitions";
121 #address-cells = <1>;
126 reg = <0x000000 0x020000>;
130 compatible = "fixed-layout";
131 #address-cells = <1>;
134 macaddr_uboot_1fc00: macaddr@1fc00 {
135 compatible = "mac-base";
137 #nvmem-cell-cells = <1>;
143 compatible = "tplink,firmware";
145 reg = <0x020000 0xfd0000>;
148 art: partition@ff0000 {
150 reg = <0xff0000 0x010000>;
160 phy-handle = <&swphy4>;
162 nvmem-cells = <&macaddr_uboot_1fc00 1>;
163 nvmem-cell-names = "mac-address";
167 nvmem-cells = <&macaddr_uboot_1fc00 0>;
168 nvmem-cell-names = "mac-address";
174 mtd-cal-data = <&art 0x1000>;
175 nvmem-cells = <&macaddr_uboot_1fc00 0>;
176 nvmem-cell-names = "mac-address";