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-MR3040 V2";
11 compatible = "tplink,tl-mr3040-v2", "qca,ar9331";
15 led-failsafe = &led_lan;
19 compatible = "gpio-leds";
22 label = "tp-link:green:wlan";
23 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
24 linux,default-trigger = "phy0tpt";
28 label = "tp-link:green:lan";
29 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
33 label = "tp-link:green:3g";
34 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
35 trigger-sources = <&hub_port>;
36 linux,default-trigger = "usbport";
41 compatible = "gpio-keys-polled";
46 linux,code = <KEY_RESTART>;
47 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
48 debounce-interval = <60>;
53 linux,input-type = <EV_SW>;
55 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
56 debounce-interval = <60>;
61 linux,input-type = <EV_SW>;
63 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
64 debounce-interval = <60>;
68 reg_usb_vbus: reg_usb_vbus {
69 compatible = "regulator-fixed";
70 regulator-name = "usb_vbus";
71 regulator-min-microvolt = <5000000>;
72 regulator-max-microvolt = <5000000>;
73 gpio = <&gpio 18 GPIO_ACTIVE_HIGH>;
79 clock-frequency = <25000000>;
94 vbus-supply = <®_usb_vbus>;
99 #trigger-source-cells = <0>;
108 num-chipselects = <1>;
112 compatible = "jedec,spi-nor";
113 spi-max-frequency = <104000000>;
117 compatible = "fixed-partitions";
118 #address-cells = <1>;
123 reg = <0x000000 0x020000>;
128 compatible = "tplink,firmware";
130 reg = <0x020000 0x3d0000>;
133 art: partition@3f0000 {
135 reg = <0x3f0000 0x010000>;
145 mtd-mac-address = <&uboot 0x1fc00>;
149 switch-phy-addr-swap = <0>;
150 switch-phy-swap = <0>;
156 compatible = "syscon", "simple-mfd";
161 mtd-cal-data = <&art 0x1000>;
162 mtd-mac-address = <&uboot 0x1fc00>;