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 = &led_wps;
17 led-running = &led_wps;
18 led-upgrade = &led_wps;
19 label-mac-device = ð0;
23 compatible = "gpio-leds";
26 label = "tp-link:green:wlan";
27 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
28 linux,default-trigger = "phy0tpt";
32 label = "tp-link:green:lan";
33 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
37 label = "tp-link:green:wps";
38 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
42 label = "tp-link:green:3g";
43 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
44 trigger-sources = <&hub_port>;
45 linux,default-trigger = "usbport";
50 compatible = "gpio-keys";
54 linux,code = <KEY_RESTART>;
55 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
56 debounce-interval = <60>;
61 linux,input-type = <EV_SW>;
63 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
64 debounce-interval = <60>;
69 linux,input-type = <EV_SW>;
71 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
72 debounce-interval = <60>;
76 reg_usb_vbus: reg_usb_vbus {
77 compatible = "regulator-fixed";
78 regulator-name = "usb_vbus";
79 regulator-min-microvolt = <5000000>;
80 regulator-max-microvolt = <5000000>;
81 gpio = <&gpio 8 GPIO_ACTIVE_HIGH>;
87 clock-frequency = <25000000>;
98 vbus-supply = <®_usb_vbus>;
103 #trigger-source-cells = <0>;
114 num-chipselects = <1>;
116 /* Spansion S25FL032PIF SPI flash */
118 compatible = "jedec,spi-nor";
119 spi-max-frequency = <50000000>;
123 compatible = "fixed-partitions";
124 #address-cells = <1>;
129 reg = <0x000000 0x020000>;
134 compatible = "tplink,firmware";
136 reg = <0x020000 0x3c0000>;
141 reg = <0x3e0000 0x010000>;
145 art: partition@3f0000 {
147 reg = <0x3f0000 0x010000>;
157 mtd-mac-address = <&uboot 0x1fc00>;
161 switch-phy-addr-swap = <0>;
162 switch-phy-swap = <0>;
169 compatible = "syscon", "simple-mfd";
175 mtd-cal-data = <&art 0x1000>;
176 mtd-mac-address = <&uboot 0x1fc00>;