tn3399_openwrt/target/linux/ath79/dts/ar7241_tplink_tl-mr3x20.dtsi
Shiji Yang 4778f6e959 ath79: move usb led trigger node to SoC dtsi
These frequently used usb led triggers are universal. They should be
moved to SoC dtsi.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
2022-11-12 17:10:12 +01:00

34 lines
513 B
Plaintext

// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "ar7241_tplink.dtsi"
/ {
gpio-export {
compatible = "gpio-export";
#size-cells = <0>;
gpio_usb_power {
gpio-export,name = "tp-link:power:usb";
gpio-export,output = <1>;
gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
};
};
};
&leds {
led3g {
label = "green:3g";
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
trigger-sources = <&hub_port>;
linux,default-trigger = "usbport";
};
};
&usb {
status = "okay";
};
&usb_phy {
status = "okay";
};