[openwrt/openwrt] ath79: qihoo,c301: use phy-supply for usb vbus

LEDE Commits lede-commits at lists.infradead.org
Sun Jul 12 04:21:11 EDT 2020


981213 pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/0997342f24a001af2638e6b740eb24c965ae073a

commit 0997342f24a001af2638e6b740eb24c965ae073a
Author: Chuanhong Guo <gch981213 at gmail.com>
AuthorDate: Sun Jul 12 15:39:18 2020 +0800

    ath79: qihoo,c301: use phy-supply for usb vbus
    
    Linux phy subsystem provides support for a phy regulator defined via
    phy-supply property. Use it to turn on usb power only when usb is
    probed.
    
    Signed-off-by: Chuanhong Guo <gch981213 at gmail.com>
---
 target/linux/ath79/dts/ar9344_qihoo_c301.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/target/linux/ath79/dts/ar9344_qihoo_c301.dts b/target/linux/ath79/dts/ar9344_qihoo_c301.dts
index 2d5b5b3ab2..2b5d920b8b 100644
--- a/target/linux/ath79/dts/ar9344_qihoo_c301.dts
+++ b/target/linux/ath79/dts/ar9344_qihoo_c301.dts
@@ -52,13 +52,12 @@
 		gpio = <&gpio 18 GPIO_ACTIVE_LOW>;
 	};
 
-	reg_usb_vbus {
+	usb_vbus: reg_usb_vbus {
 		compatible = "regulator-fixed";
 		regulator-name = "usb_vbus";
 		regulator-min-microvolt = <5000000>;
 		regulator-max-microvolt = <5000000>;
 		enable-active-high;
-		regulator-always-on;
 		gpio = <&gpio 19 GPIO_ACTIVE_HIGH>;
 	};
 };
@@ -202,6 +201,7 @@
 
 &usb_phy {
 	status = "okay";
+	phy-supply = <&usb_vbus>;
 };
 
 &pcie {



More information about the lede-commits mailing list