1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "ar9341_tplink.dtsi"
6 model = "TP-Link TL-WR842N/ND v2";
7 compatible = "tplink,tl-wr842n-v2", "qca,ar9341";
10 label-mac-device = &wmac;
14 compatible = "gpio-keys";
18 linux,code = <KEY_RFKILL>;
19 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
20 debounce-interval = <60>;
25 linux,code = <KEY_RESTART>;
26 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
27 debounce-interval = <60>;
32 compatible = "gpio-export";
35 gpio-export,name = "tp-link:power:usb";
36 gpio-export,output = <1>;
37 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
45 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
46 trigger-sources = <&hub_port>;
47 linux,default-trigger = "usbport";
55 compatible = "jedec,spi-nor";
57 spi-max-frequency = <25000000>;
60 compatible = "fixed-partitions";
66 reg = <0x000000 0x020000>;
71 compatible = "tplink,firmware";
73 reg = <0x020000 0x7d0000>;
76 art: partition@7f0000 {
78 reg = <0x7f0000 0x010000>;
92 #trigger-source-cells = <0>;
101 nvmem-cells = <&macaddr_uboot_1fc00>;
102 nvmem-cell-names = "mac-address";
103 mac-address-increment = <(-1)>;
107 phy-handle = <&swphy4>;
109 nvmem-cells = <&macaddr_uboot_1fc00>;
110 nvmem-cell-names = "mac-address";
114 mtd-cal-data = <&art 0x1000>;
116 nvmem-cells = <&macaddr_uboot_1fc00>;
117 nvmem-cell-names = "mac-address";
121 compatible = "nvmem-cells";
122 #address-cells = <1>;
125 macaddr_uboot_1fc00: macaddr@1fc00 {