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";
19 device_type = "memory";
20 reg = <0x0 0x2000000>;
24 compatible = "gpio-leds";
27 label = "tp-link:green:wlan";
28 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
29 default-state = "off";
30 linux,default-trigger = "phy0tpt";
34 label = "tp-link:green:lan";
35 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
36 default-state = "off";
40 label = "tp-link:green:wps";
41 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
42 default-state = "off";
46 label = "tp-link:green:3g";
47 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
48 default-state = "off";
49 trigger-sources = <&hub_port>;
50 linux,default-trigger = "usbport";
55 compatible = "gpio-keys";
61 linux,code = <KEY_RESTART>;
62 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
63 debounce-interval = <60>;
68 linux,input-type = <EV_SW>;
70 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
71 debounce-interval = <60>;
76 linux,input-type = <EV_SW>;
78 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
79 debounce-interval = <60>;
83 reg_usb_vbus: reg_usb_vbus {
84 compatible = "regulator-fixed";
85 regulator-name = "usb_vbus";
86 regulator-min-microvolt = <5000000>;
87 regulator-max-microvolt = <5000000>;
88 gpio = <&gpio 8 GPIO_ACTIVE_HIGH>;
94 clock-frequency = <25000000>;
107 vbus-supply = <®_usb_vbus>;
112 #trigger-source-cells = <0>;
121 num-chipselects = <1>;
124 /* Spansion S25FL032PIF SPI flash */
125 spiflash: s25sl032p@0 {
126 #address-cells = <1>;
128 compatible = "jedec,spi-nor";
129 spi-max-frequency = <104000000>;
133 compatible = "fixed-partitions";
134 #address-cells = <1>;
139 reg = <0x000000 0x020000>;
145 reg = <0x020000 0x3c0000>;
150 reg = <0x3e0000 0x010000>;
154 art: partition@3f0000 {
156 reg = <0x3f0000 0x010000>;
165 phy4: ethernet-phy@4 {
172 phy-handle = <&phy4>;
174 mtd-mac-address = <&uboot 0x1fc00>;
183 switch-phy-addr-swap = <1>;
184 switch-phy-swap = <1>;
190 mtd-cal-data = <&art 0x1000>;
191 mtd-mac-address = <&uboot 0x1fc00>;