ath79: add support for more AR7241 TP-Link boards
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar7241_tl-mr3x20.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar7241_tp-link.dtsi"
4
5 / {
6 gpio-export {
7 compatible = "gpio-export";
8 #size-cells = <0>;
9
10 gpio_usb_power {
11 gpio-export,name = "tp-link:power:usb";
12 gpio-export,output = <1>;
13 gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
14 };
15 };
16 };
17
18 &gpio_leds {
19 led3g {
20 label = "tp-link:green:3g";
21 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
22 default-state = "off";
23 trigger-sources = <&hub_port>;
24 linux,default-trigger = "usbport";
25 };
26 };
27
28 &usb {
29 status = "okay";
30
31 hub_port: port@1 {
32 reg = <1>;
33 #trigger-source-cells = <0>;
34 };
35 };
36
37 &usb_phy {
38 status = "okay";
39 };