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 compatible = "gpio-leds";
22 label = "tp-link:green:wlan";
23 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
24 default-state = "off";
25 linux,default-trigger = "phy0tpt";
29 label = "tp-link:green:lan";
30 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
31 default-state = "off";
35 label = "tp-link:green:wps";
36 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
37 default-state = "off";
41 label = "tp-link:green:3g";
42 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
43 default-state = "off";
44 trigger-sources = <&hub_port>;
45 linux,default-trigger = "usbport";
50 compatible = "gpio-keys";
56 linux,code = <KEY_RESTART>;
57 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
58 debounce-interval = <60>;
63 linux,input-type = <EV_SW>;
65 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
66 debounce-interval = <60>;
71 linux,input-type = <EV_SW>;
73 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
74 debounce-interval = <60>;
78 reg_usb_vbus: reg_usb_vbus {
79 compatible = "regulator-fixed";
80 regulator-name = "usb_vbus";
81 regulator-min-microvolt = <5000000>;
82 regulator-max-microvolt = <5000000>;
83 gpio = <&gpio 8 GPIO_ACTIVE_HIGH>;
89 clock-frequency = <25000000>;
102 vbus-supply = <®_usb_vbus>;
107 #trigger-source-cells = <0>;
116 num-chipselects = <1>;
119 /* Spansion S25FL032PIF SPI flash */
120 spiflash: s25sl032p@0 {
121 #address-cells = <1>;
123 compatible = "jedec,spi-nor";
124 spi-max-frequency = <104000000>;
128 compatible = "fixed-partitions";
129 #address-cells = <1>;
134 reg = <0x000000 0x020000>;
140 reg = <0x020000 0x3c0000>;
145 reg = <0x3e0000 0x010000>;
149 art: partition@3f0000 {
151 reg = <0x3f0000 0x010000>;
160 phy4: ethernet-phy@4 {
167 phy-handle = <&phy4>;
169 mtd-mac-address = <&uboot 0x1fc00>;
178 switch-phy-addr-swap = <1>;
179 switch-phy-swap = <1>;
185 mtd-cal-data = <&art 0x1000>;
186 mtd-mac-address = <&uboot 0x1fc00>;