1 // SPDX-License-Identifier: GPL-2.0-only
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 model = "TP-Link TL-MR3020 V1";
10 compatible = "tplink,tl-mr3020-v1", "qca,ar9331";
14 led-failsafe = &led_wps;
15 led-running = &led_wps;
16 led-upgrade = &led_wps;
17 label-mac-device = ð0;
21 compatible = "gpio-leds";
25 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
26 linux,default-trigger = "phy0tpt";
31 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
36 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
41 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
42 trigger-sources = <&hub_port>;
43 linux,default-trigger = "usbport";
48 compatible = "gpio-keys";
52 linux,code = <KEY_RESTART>;
53 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
54 debounce-interval = <60>;
59 linux,input-type = <EV_SW>;
61 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
62 debounce-interval = <60>;
67 linux,input-type = <EV_SW>;
69 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
70 debounce-interval = <60>;
74 reg_usb_vbus: reg_usb_vbus {
75 compatible = "regulator-fixed";
76 regulator-name = "usb_vbus";
77 regulator-min-microvolt = <5000000>;
78 regulator-max-microvolt = <5000000>;
79 gpio = <&gpio 8 GPIO_ACTIVE_HIGH>;
85 clock-frequency = <25000000>;
90 vbus-supply = <®_usb_vbus>;
101 /* Spansion S25FL032PIF SPI flash */
103 compatible = "jedec,spi-nor";
104 spi-max-frequency = <50000000>;
108 compatible = "fixed-partitions";
109 #address-cells = <1>;
114 reg = <0x000000 0x020000>;
118 compatible = "fixed-layout";
119 #address-cells = <1>;
122 macaddr_uboot_1fc00: macaddr@1fc00 {
129 compatible = "tplink,firmware";
131 reg = <0x020000 0x3c0000>;
136 reg = <0x3e0000 0x010000>;
140 art: partition@3f0000 {
142 reg = <0x3f0000 0x010000>;
152 nvmem-cells = <&macaddr_uboot_1fc00>;
153 nvmem-cell-names = "mac-address";
157 switch-phy-addr-swap = <0>;
158 switch-phy-swap = <0>;
165 compatible = "syscon", "simple-mfd";
171 mtd-cal-data = <&art 0x1000>;
172 nvmem-cells = <&macaddr_uboot_1fc00>;
173 nvmem-cell-names = "mac-address";