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";
15 led-failsafe = &led_wps;
16 led-running = &led_wps;
17 led-upgrade = &led_wps;
18 label-mac-device = ð0;
22 compatible = "gpio-leds";
26 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
27 linux,default-trigger = "phy0tpt";
32 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
37 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
42 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
43 trigger-sources = <&hub_port>;
44 linux,default-trigger = "usbport";
49 compatible = "gpio-keys";
53 linux,code = <KEY_RESTART>;
54 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
55 debounce-interval = <60>;
60 linux,input-type = <EV_SW>;
62 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
63 debounce-interval = <60>;
68 linux,input-type = <EV_SW>;
70 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
71 debounce-interval = <60>;
75 reg_usb_vbus: reg_usb_vbus {
76 compatible = "regulator-fixed";
77 regulator-name = "usb_vbus";
78 regulator-min-microvolt = <5000000>;
79 regulator-max-microvolt = <5000000>;
80 gpio = <&gpio 8 GPIO_ACTIVE_HIGH>;
86 clock-frequency = <25000000>;
97 vbus-supply = <®_usb_vbus>;
102 #trigger-source-cells = <0>;
113 num-chipselects = <1>;
115 /* Spansion S25FL032PIF SPI flash */
117 compatible = "jedec,spi-nor";
118 spi-max-frequency = <50000000>;
122 compatible = "fixed-partitions";
123 #address-cells = <1>;
128 reg = <0x000000 0x020000>;
133 compatible = "tplink,firmware";
135 reg = <0x020000 0x3c0000>;
140 reg = <0x3e0000 0x010000>;
144 art: partition@3f0000 {
146 reg = <0x3f0000 0x010000>;
156 mtd-mac-address = <&uboot 0x1fc00>;
160 switch-phy-addr-swap = <0>;
161 switch-phy-swap = <0>;
168 compatible = "syscon", "simple-mfd";
174 mtd-cal-data = <&art 0x1000>;
175 mtd-mac-address = <&uboot 0x1fc00>;