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-MR3420 v2";
9 compatible = "tplink,tl-mr3420-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_HIGH>;
29 debounce-interval = <60>;
36 function = LED_FUNCTION_USB;
37 color = <LED_COLOR_ID_GREEN>;
38 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
39 trigger-sources = <&hub_port>;
40 linux,default-trigger = "usbport";
47 gpios = <4 GPIO_ACTIVE_HIGH>;
49 line-name = "tp-link:power:usb";
57 compatible = "jedec,spi-nor";
59 spi-max-frequency = <25000000>;
62 compatible = "fixed-partitions";
68 reg = <0x000000 0x020000>;
72 compatible = "fixed-layout";
76 macaddr_uboot_1fc00: macaddr@1fc00 {
77 compatible = "mac-base";
79 #nvmem-cell-cells = <1>;
85 compatible = "tplink,firmware";
87 reg = <0x020000 0x3d0000>;
90 art: partition@3f0000 {
92 reg = <0x3f0000 0x010000>;
108 nvmem-cells = <&macaddr_uboot_1fc00 (-1)>;
109 nvmem-cell-names = "mac-address";
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";