From 8288af1e18adfe68bc556df93521881d1e5d0eda Mon Sep 17 00:00:00 2001 From: Chuanhong Guo Date: Thu, 2 Aug 2018 15:14:10 +0800 Subject: ath79: rename dts/image using manufacturer_board scheme This helps getting rid of SUPPORTED_DEVICES which can be auto-generated in image/Makefile. Signed-off-by: Chuanhong Guo --- .../linux/ath79/dts/ar7241_tplink_tl-mr3x20.dtsi | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 target/linux/ath79/dts/ar7241_tplink_tl-mr3x20.dtsi (limited to 'target/linux/ath79/dts/ar7241_tplink_tl-mr3x20.dtsi') diff --git a/target/linux/ath79/dts/ar7241_tplink_tl-mr3x20.dtsi b/target/linux/ath79/dts/ar7241_tplink_tl-mr3x20.dtsi new file mode 100644 index 0000000000..ad18945af4 --- /dev/null +++ b/target/linux/ath79/dts/ar7241_tplink_tl-mr3x20.dtsi @@ -0,0 +1,39 @@ +// 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>; + }; + }; +}; + +&gpio_leds { + led3g { + label = "tp-link:green:3g"; + gpios = <&gpio 8 GPIO_ACTIVE_LOW>; + default-state = "off"; + trigger-sources = <&hub_port>; + linux,default-trigger = "usbport"; + }; +}; + +&usb { + status = "okay"; + + hub_port: port@1 { + reg = <1>; + #trigger-source-cells = <0>; + }; +}; + +&usb_phy { + status = "okay"; +}; -- cgit v1.2.3