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>;
102 vbus-supply = <®_usb_vbus>;
107 #trigger-source-cells = <0>;
118 num-chipselects = <1>;
120 /* Spansion S25FL032PIF SPI flash */
122 compatible = "jedec,spi-nor";
123 spi-max-frequency = <50000000>;
127 compatible = "fixed-partitions";
128 #address-cells = <1>;
133 reg = <0x000000 0x020000>;
138 compatible = "tplink,firmware";
140 reg = <0x020000 0x3c0000>;
145 reg = <0x3e0000 0x010000>;
149 art: partition@3f0000 {
151 reg = <0x3f0000 0x010000>;
161 mtd-mac-address = <&uboot 0x1fc00>;
165 switch-phy-addr-swap = <0>;
166 switch-phy-swap = <0>;
173 compatible = "syscon", "simple-mfd";
179 mtd-cal-data = <&art 0x1000>;
180 mtd-mac-address = <&uboot 0x1fc00>;