1 // SPDX-License-Identifier: GPL-2.0
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
10 model = "TP-Link TL-MR3020 V1";
11 compatible = "tplink,tl-mr3020-v1", "qca,ar9331";
16 led-failsafe = &system;
17 led-running = &system;
18 led-upgrade = &system;
22 compatible = "gpio-leds";
25 label = "tp-link:green:wlan";
26 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
27 linux,default-trigger = "phy0tpt";
31 label = "tp-link:green:lan";
32 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
36 label = "tp-link:green:wps";
37 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
41 label = "tp-link:green:3g";
42 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
43 trigger-sources = <&hub_port>;
44 linux,default-trigger = "usbport";
49 compatible = "gpio-keys";
53 linux,code = <KEY_RESTART>;
54 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
55 debounce-interval = <60>;
60 linux,input-type = <EV_SW>;
62 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
63 debounce-interval = <60>;
68 linux,input-type = <EV_SW>;
70 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
71 debounce-interval = <60>;
75 reg_usb_vbus: reg_usb_vbus {
76 compatible = "regulator-fixed";
77 regulator-name = "usb_vbus";
78 regulator-min-microvolt = <5000000>;
79 regulator-max-microvolt = <5000000>;
80 gpio = <&gpio 8 GPIO_ACTIVE_HIGH>;
86 clock-frequency = <25000000>;
101 vbus-supply = <®_usb_vbus>;
106 #trigger-source-cells = <0>;
115 num-chipselects = <1>;
118 /* Spansion S25FL032PIF SPI flash */
120 compatible = "jedec,spi-nor";
121 spi-max-frequency = <104000000>;
125 compatible = "fixed-partitions";
126 #address-cells = <1>;
131 reg = <0x000000 0x020000>;
136 compatible = "tplink,firmware";
138 reg = <0x020000 0x3c0000>;
143 reg = <0x3e0000 0x010000>;
147 art: partition@3f0000 {
149 reg = <0x3f0000 0x010000>;
160 mtd-mac-address = <&uboot 0x1fc00>;
164 switch-phy-addr-swap = <0>;
165 switch-phy-swap = <0>;
171 compatible = "syscon", "simple-mfd";
176 mtd-cal-data = <&art 0x1000>;
177 mtd-mac-address = <&uboot 0x1fc00>;