diff mbox series

[RFC,v2,4/4] arm64: dts: renesas: rz-smarc: Replace fixed regulator for USB VBUS

Message ID 20240607113745.73934-5-biju.das.jz@bp.renesas.com
State Superseded
Headers show
Series Add USB VBUS regulator for RZ/G2L | expand

Commit Message

Biju Das June 7, 2024, 11:37 a.m. UTC
Replace the fixed regulator for USB VBUS.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
---
v1->v2:
 * New patch.
---
 arch/arm64/boot/dts/renesas/rz-smarc-common.dtsi | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/renesas/rz-smarc-common.dtsi b/arch/arm64/boot/dts/renesas/rz-smarc-common.dtsi
index b7a3e6caa386..9105afbd5810 100644
--- a/arch/arm64/boot/dts/renesas/rz-smarc-common.dtsi
+++ b/arch/arm64/boot/dts/renesas/rz-smarc-common.dtsi
@@ -54,14 +54,6 @@  codec_dai: simple-audio-card,codec {
 		};
 	};
 
-	usb0_vbus_otg: regulator-usb0-vbus-otg {
-		compatible = "regulator-fixed";
-
-		regulator-name = "USB0_VBUS_OTG";
-		regulator-min-microvolt = <5000000>;
-		regulator-max-microvolt = <5000000>;
-	};
-
 	vccq_sdhi1: regulator-vccq-sdhi1 {
 		compatible = "regulator-gpio";
 		regulator-name = "SDHI1 VccQ";
@@ -139,6 +131,11 @@  &ohci1 {
 
 &phyrst {
 	status = "okay";
+	vbus_usb0: usb-vbus-regulator {
+		regulator-name = "usb_vbus";
+		regulator-min-microvolt = <0>;
+		regulator-max-microvolt = <3300000>;
+	};
 };
 
 &scif0 {
@@ -171,7 +168,7 @@  &usb2_phy0 {
 	pinctrl-0 = <&usb0_pins>;
 	pinctrl-names = "default";
 
-	vbus-supply = <&usb0_vbus_otg>;
+	vbus-supply = <&vbus_usb0>;
 	status = "okay";
 };