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";
16 led-failsafe = &led_lan;
17 label-mac-device = ð0;
21 compatible = "gpio-leds";
23 pinctrl-names = "default";
24 pinctrl-0 = <&switch_led_disable_pins>;
27 label = "tp-link:green:wlan";
28 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
29 linux,default-trigger = "phy0tpt";
33 label = "tp-link:green:lan";
34 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
38 label = "tp-link:green:3g";
39 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
40 trigger-sources = <&hub_port>;
41 linux,default-trigger = "usbport";
46 compatible = "gpio-keys";
50 linux,code = <KEY_RESTART>;
51 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
52 debounce-interval = <60>;
57 linux,input-type = <EV_SW>;
59 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
60 debounce-interval = <60>;
65 linux,input-type = <EV_SW>;
67 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
68 debounce-interval = <60>;
72 reg_usb_vbus: reg_usb_vbus {
73 compatible = "regulator-fixed";
74 regulator-name = "usb_vbus";
75 regulator-min-microvolt = <5000000>;
76 regulator-max-microvolt = <5000000>;
77 gpio = <&gpio 18 GPIO_ACTIVE_HIGH>;
83 clock-frequency = <25000000>;
94 vbus-supply = <®_usb_vbus>;
99 #trigger-source-cells = <0>;
110 num-chipselects = <1>;
113 compatible = "jedec,spi-nor";
114 spi-max-frequency = <50000000>;
118 compatible = "fixed-partitions";
119 #address-cells = <1>;
124 reg = <0x000000 0x020000>;
129 compatible = "tplink,firmware";
131 reg = <0x020000 0x3d0000>;
134 art: partition@3f0000 {
136 reg = <0x3f0000 0x010000>;
146 mtd-mac-address = <&uboot 0x1fc00>;
150 switch-phy-addr-swap = <0>;
151 switch-phy-swap = <0>;
158 compatible = "syscon", "simple-mfd";
164 mtd-cal-data = <&art 0x1000>;
165 mtd-mac-address = <&uboot 0x1fc00>;