diff options
author | Dmytro Smyrnov <dioptimizer@hotmail.com> | 2018-06-26 17:01:47 +0300 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2018-06-28 20:31:47 +0200 |
commit | 40218a2632697c86ab077497fc99b0f7a3719926 (patch) | |
tree | 56a93d42f45b355a9cfc37d0d80d1fcbe3015dc0 /target/linux/ath79/dts/ar7241_tl-mr3x20.dtsi | |
parent | 25070f71062e57c08e27b921868178b09274602a (diff) | |
download | upstream-40218a2632697c86ab077497fc99b0f7a3719926.tar.gz upstream-40218a2632697c86ab077497fc99b0f7a3719926.tar.bz2 upstream-40218a2632697c86ab077497fc99b0f7a3719926.zip |
ath79: add support for more AR7241 TP-Link boards
Its common AP99(AR7241) platform with following devices:
TP-Link TL-WR841N/ND v7 (SoC AR7241 / Wifi AR9287 / without USB)
TP-Link TL-MR3220 v1 (SoC AR7241 / Wifi AR9285 / USB support)
TP-Link TL-MR3420 v1 (SoC AR7241 / Wifi AR9287 / USB support)
Signed-off-by: Dmytro Smyrnov <dioptimizer@hotmail.com>
Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ath79/dts/ar7241_tl-mr3x20.dtsi')
-rw-r--r-- | target/linux/ath79/dts/ar7241_tl-mr3x20.dtsi | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/target/linux/ath79/dts/ar7241_tl-mr3x20.dtsi b/target/linux/ath79/dts/ar7241_tl-mr3x20.dtsi new file mode 100644 index 0000000000..bd83cdb7c1 --- /dev/null +++ b/target/linux/ath79/dts/ar7241_tl-mr3x20.dtsi @@ -0,0 +1,39 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include "ar7241_tp-link.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"; +}; |