1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include <dt-bindings/leds/common.h>
5 #include "ar9341_tplink.dtsi"
8 model = "TP-Link TL-WR842N/ND v2";
9 compatible = "tplink,tl-wr842n-v2", "qca,ar9341";
12 label-mac-device = &wmac;
16 compatible = "gpio-keys";
20 linux,code = <KEY_RFKILL>;
21 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
22 debounce-interval = <60>;
27 linux,code = <KEY_RESTART>;
28 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
29 debounce-interval = <60>;
34 compatible = "gpio-export";
37 gpio-export,name = "tp-link:power:usb";
38 gpio-export,output = <1>;
39 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
46 function = LED_FUNCTION_USB;
47 color = <LED_COLOR_ID_GREEN>;
48 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
49 trigger-sources = <&hub_port>;
50 linux,default-trigger = "usbport";
58 compatible = "jedec,spi-nor";
60 spi-max-frequency = <25000000>;
63 compatible = "fixed-partitions";
69 reg = <0x000000 0x020000>;
73 compatible = "fixed-layout";
77 macaddr_uboot_1fc00: macaddr@1fc00 {
78 compatible = "mac-base";
80 #nvmem-cell-cells = <1>;
86 compatible = "tplink,firmware";
88 reg = <0x020000 0x7d0000>;
91 art: partition@7f0000 {
93 reg = <0x7f0000 0x010000>;
109 nvmem-cells = <&macaddr_uboot_1fc00 (-1)>;
110 nvmem-cell-names = "mac-address";
114 phy-handle = <&swphy4>;
116 nvmem-cells = <&macaddr_uboot_1fc00 0>;
117 nvmem-cell-names = "mac-address";
121 mtd-cal-data = <&art 0x1000>;
123 nvmem-cells = <&macaddr_uboot_1fc00 0>;
124 nvmem-cell-names = "mac-address";