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>;
70 compatible = "fixed-layout";
74 macaddr_uboot_1fc00: macaddr@1fc00 {
75 compatible = "mac-base";
77 #nvmem-cell-cells = <1>;
83 compatible = "tplink,firmware";
85 reg = <0x020000 0x7d0000>;
88 art: partition@7f0000 {
90 reg = <0x7f0000 0x010000>;
106 nvmem-cells = <&macaddr_uboot_1fc00 (-1)>;
107 nvmem-cell-names = "mac-address";
111 phy-handle = <&swphy4>;
113 nvmem-cells = <&macaddr_uboot_1fc00 0>;
114 nvmem-cell-names = "mac-address";
118 mtd-cal-data = <&art 0x1000>;
120 nvmem-cells = <&macaddr_uboot_1fc00 0>;
121 nvmem-cell-names = "mac-address";