Skip to content

Commit

Permalink
ath79: qihoo,c301: use phy-supply for usb vbus
Browse files Browse the repository at this point in the history
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@gmail.com>
  • Loading branch information
981213 committed Jul 12, 2020
1 parent 2dc5ce6 commit 0997342
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions target/linux/ath79/dts/ar9344_qihoo_c301.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
};
};
Expand Down Expand Up @@ -202,6 +201,7 @@

&usb_phy {
status = "okay";
phy-supply = <&usb_vbus>;
};

&pcie {
Expand Down

0 comments on commit 0997342

Please sign in to comment.