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>
7 #include "qca953x.dtsi"
10 compatible = "tplink,tl-mr3420-v3", "qca,qca9531";
11 model = "TP-Link TL-MR3420 v3";
14 led-boot = &led_system;
15 led-failsafe = &led_system;
16 led-running = &led_system;
17 led-upgrade = &led_system;
18 label-mac-device = &wmac;
23 compatible = "spi-gpio";
27 sck-gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
28 mosi-gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
29 cs-gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
30 num-chipselects = <1>;
32 led_gpio: led_gpio@0 {
33 compatible = "fairchild,74hc595";
37 registers-number = <1>;
38 spi-max-frequency = <10000000>;
43 compatible = "gpio-export";
45 gpio_shift_register_oe {
46 gpio-export,name = "tp-link:oe:sr";
47 gpio-export,output = <0>;
48 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
51 gpio_shift_register_reset {
52 gpio-export,name = "tp-link:reset:sr";
53 gpio-export,output = <1>;
54 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
59 compatible = "gpio-leds";
62 label = "tp-link:green:system";
63 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
68 label = "tp-link:green:lan4";
69 gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
73 label = "tp-link:green:lan3";
74 gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
78 label = "tp-link:green:lan2";
79 gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
83 label = "tp-link:green:lan1";
84 gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
88 label = "tp-link:green:wan";
89 gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
93 label = "tp-link:orange:wan";
94 gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
98 label = "tp-link:green:wlan";
99 gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
100 linux,default-trigger = "phy0tpt";
104 label = "tp-link:green:usb";
105 gpios = <&led_gpio 7 GPIO_ACTIVE_LOW>;
106 trigger-sources = <&hub_port>;
107 linux,default-trigger = "usbport";
111 label = "tp-link:green:qss";
112 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
117 compatible = "gpio-keys";
120 label = "Reset button";
121 linux,code = <KEY_RESTART>;
122 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
123 debounce-interval = <60>;
127 label = "RF kill button";
128 linux,code = <KEY_RFKILL>;
129 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
130 debounce-interval = <60>;
146 compatible = "jedec,spi-nor";
148 spi-max-frequency = <25000000>;
151 compatible = "fixed-partitions";
152 #address-cells = <1>;
157 reg = <0x000000 0x020000>;
162 compatible = "tplink,firmware";
164 reg = <0x020000 0x3d0000>;
167 art: partition@3f0000 {
169 reg = <0x3f0000 0x010000>;
179 phy-handle = <&swphy4>;
181 mtd-mac-address = <&uboot 0x1fc00>;
182 mtd-mac-address-increment = <1>;
186 mtd-mac-address = <&uboot 0x1fc00>;
192 mtd-cal-data = <&art 0x1000>;
193 mtd-mac-address = <&uboot 0x1fc00>;
197 #address-cells = <1>;
203 #trigger-source-cells = <0>;