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 default-state = "off";
25 linux,default-trigger = "phy0tpt";
29 label = "tp-link:green:lan";
30 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
31 default-state = "off";
35 label = "tp-link:green:3g";
36 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
37 default-state = "off";
38 trigger-sources = <&hub_port>;
39 linux,default-trigger = "usbport";
44 compatible = "gpio-keys-polled";
49 linux,code = <KEY_RESTART>;
50 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
51 debounce-interval = <60>;
56 linux,input-type = <EV_SW>;
58 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
59 debounce-interval = <60>;
64 linux,input-type = <EV_SW>;
66 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
67 debounce-interval = <60>;
71 reg_usb_vbus: reg_usb_vbus {
72 compatible = "regulator-fixed";
73 regulator-name = "usb_vbus";
74 regulator-min-microvolt = <5000000>;
75 regulator-max-microvolt = <5000000>;
76 gpio = <&gpio 18 GPIO_ACTIVE_HIGH>;
82 clock-frequency = <25000000>;
97 vbus-supply = <®_usb_vbus>;
102 #trigger-source-cells = <0>;
111 num-chipselects = <1>;
115 compatible = "jedec,spi-nor";
116 spi-max-frequency = <104000000>;
120 compatible = "fixed-partitions";
121 #address-cells = <1>;
126 reg = <0x000000 0x020000>;
132 reg = <0x020000 0x3d0000>;
135 art: partition@3f0000 {
137 reg = <0x3f0000 0x010000>;
147 mtd-mac-address = <&uboot 0x1fc00>;
151 switch-phy-addr-swap = <0>;
152 switch-phy-swap = <0>;
158 compatible = "syscon", "simple-mfd";
163 mtd-cal-data = <&art 0x1000>;
164 mtd-mac-address = <&uboot 0x1fc00>;