[PATCH v3] dts: rockpro64: Disable usb regulators-always-on

Shantur Rathore i at shantur.com
Sat Dec 9 19:04:37 CET 2023


USB port regulators should be controlled by PHYs
so we remove always-on property and let PHY manage the
regulator.

Typec port has misconfigured phy-supply in upstream and
now that we are removing always-on, we need to fix the
phy-supply until its fixed upstream.

Signed-off-by: Shantur Rathore <i at shantur.com>

---

Changes in v3:
- Split up patches as seperate series

Changes in v2:
- As requested, added fix for regulator-always-on in RockPro64

 arch/arm/dts/rk3399-rockpro64-u-boot.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/arch/arm/dts/rk3399-rockpro64-u-boot.dtsi b/arch/arm/dts/rk3399-rockpro64-u-boot.dtsi
index 732727d9b0..638d567357 100644
--- a/arch/arm/dts/rk3399-rockpro64-u-boot.dtsi
+++ b/arch/arm/dts/rk3399-rockpro64-u-boot.dtsi
@@ -22,6 +22,18 @@
 	};
 };
 
+&u2phy0_host {
+	phy-supply = <&vcc5v0_typec>;
+};
+
+&vcc5v0_host {
+	/delete-property/ regulator-always-on;
+};
+
+&vcc5v0_typec {
+	/delete-property/ regulator-always-on;
+};
+
 &vdd_center {
 	regulator-min-microvolt = <950000>;
 	regulator-max-microvolt = <950000>;
-- 
2.40.1



More information about the U-Boot mailing list