1 // SPDX-License-Identifier: GPL-2.0-only
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 model = "TP-Link TL-MR3020 V1";
11 compatible = "tplink,tl-mr3020-v1", "qca,ar9331";
15 led-failsafe = &led_wps;
16 led-running = &led_wps;
17 led-upgrade = &led_wps;
18 label-mac-device = ð0;
22 compatible = "gpio-leds";
25 function = LED_FUNCTION_WLAN;
26 color = <LED_COLOR_ID_GREEN>;
27 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
28 linux,default-trigger = "phy0tpt";
32 function = LED_FUNCTION_LAN;
33 color = <LED_COLOR_ID_GREEN>;
34 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
38 function = LED_FUNCTION_WPS;
39 color = <LED_COLOR_ID_GREEN>;
40 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
45 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
46 trigger-sources = <&hub_port>;
47 linux,default-trigger = "usbport";
52 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 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
89 clock-frequency = <25000000>;
94 vbus-supply = <®_usb_vbus>;
105 /* Spansion S25FL032PIF SPI flash */
107 compatible = "jedec,spi-nor";
108 spi-max-frequency = <50000000>;
112 compatible = "fixed-partitions";
113 #address-cells = <1>;
118 reg = <0x000000 0x020000>;
122 compatible = "fixed-layout";
123 #address-cells = <1>;
126 macaddr_uboot_1fc00: macaddr@1fc00 {
133 compatible = "tplink,firmware";
135 reg = <0x020000 0x3c0000>;
140 reg = <0x3e0000 0x010000>;
144 art: partition@3f0000 {
146 reg = <0x3f0000 0x010000>;
156 nvmem-cells = <&macaddr_uboot_1fc00>;
157 nvmem-cell-names = "mac-address";
161 switch-phy-addr-swap = <0>;
162 switch-phy-swap = <0>;
169 compatible = "syscon", "simple-mfd";
175 mtd-cal-data = <&art 0x1000>;
176 nvmem-cells = <&macaddr_uboot_1fc00>;
177 nvmem-cell-names = "mac-address";