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 default-state = "off";
28 linux,default-trigger = "phy0tpt";
32 label = "tp-link:green:lan";
33 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
34 default-state = "off";
38 label = "tp-link:green:wps";
39 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
40 default-state = "off";
44 label = "tp-link:green:3g";
45 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
46 default-state = "off";
47 trigger-sources = <&hub_port>;
48 linux,default-trigger = "usbport";
53 compatible = "gpio-keys";
57 linux,code = <KEY_RESTART>;
58 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
59 debounce-interval = <60>;
64 linux,input-type = <EV_SW>;
66 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
67 debounce-interval = <60>;
72 linux,input-type = <EV_SW>;
74 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
75 debounce-interval = <60>;
79 reg_usb_vbus: reg_usb_vbus {
80 compatible = "regulator-fixed";
81 regulator-name = "usb_vbus";
82 regulator-min-microvolt = <5000000>;
83 regulator-max-microvolt = <5000000>;
84 gpio = <&gpio 8 GPIO_ACTIVE_HIGH>;
90 clock-frequency = <25000000>;
102 #address-cells = <1>;
105 vbus-supply = <®_usb_vbus>;
110 #trigger-source-cells = <0>;
119 num-chipselects = <1>;
122 /* Spansion S25FL032PIF SPI flash */
124 compatible = "jedec,spi-nor";
125 spi-max-frequency = <104000000>;
129 compatible = "fixed-partitions";
130 #address-cells = <1>;
135 reg = <0x000000 0x020000>;
140 compatible = "tplink,firmware";
142 reg = <0x020000 0x3c0000>;
147 reg = <0x3e0000 0x010000>;
151 art: partition@3f0000 {
153 reg = <0x3f0000 0x010000>;
164 mtd-mac-address = <&uboot 0x1fc00>;
168 switch-phy-addr-swap = <0>;
169 switch-phy-swap = <0>;
175 compatible = "syscon", "simple-mfd";
180 mtd-cal-data = <&art 0x1000>;
181 mtd-mac-address = <&uboot 0x1fc00>;