1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
10 model = "TP-Link TL-MR3420 v2";
11 compatible = "tplink,tl-mr3420-v2", "qca,ar9341";
16 led-failsafe = &system;
17 led-running = &system;
18 led-upgrade = &system;
22 compatible = "gpio-keys";
24 pinctrl-names = "default";
25 pinctrl-0 = <&jtag_disable_pins>;
29 linux,code = <KEY_RESTART>;
30 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
31 debounce-interval = <60>;
36 linux,code = <KEY_RFKILL>;
37 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
38 debounce-interval = <60>;
43 compatible = "gpio-leds";
46 label = "tp-link:green:power";
47 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
52 label = "tp-link:green:wlan";
53 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
54 linux,default-trigger = "phy0tpt";
58 label = "tp-link:green:qss";
59 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
63 label = "tp-link:green:wan";
64 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
68 label = "tp-link:green:lan1";
69 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
73 label = "tp-link:green:lan2";
74 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
78 label = "tp-link:green:lan3";
79 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
83 label = "tp-link:green:lan4";
84 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
88 label = "tp-link:green:usb";
89 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
90 trigger-sources = <&hub_port>;
91 linux,default-trigger = "usbport";
97 clock-frequency = <25000000>;
109 gpios = <4 GPIO_ACTIVE_HIGH>;
111 line-name = "tp-link:power:usb";
121 compatible = "jedec,spi-nor";
123 spi-max-frequency = <25000000>;
126 compatible = "fixed-partitions";
127 #address-cells = <1>;
132 reg = <0x000000 0x020000>;
137 compatible = "tplink,firmware";
139 reg = <0x020000 0x3d0000>;
142 art: partition@3f0000 {
144 reg = <0x3f0000 0x010000>;
154 phy-handle = <&swphy0>;
155 mtd-mac-address = <&uboot 0x1fc00>;
156 mtd-mac-address-increment = <(-1)>;
162 mtd-mac-address = <&uboot 0x1fc00>;
166 switch-phy-swap = <1>;
173 mtd-cal-data = <&art 0x1000>;
174 mtd-mac-address = <&uboot 0x1fc00>;
178 #address-cells = <1>;
184 #trigger-source-cells = <0>;