[PATCH v2 14/21] arm64: dts: renesas: r9a09g057: Add USB2.0 VBUS_SEL mux-controller support
Tommaso Merciai
tommaso.merciai.xr at bp.renesas.com
Wed Nov 5 07:39:10 PST 2025
Enable control of USB2.0 VBUSEN via the VBUS_SEL bit in the VBENCTL
register. According to the RZ/V2H(P) SoC hardware manual, OTG channels
require VBUS_SEL set, while HOST-only channels require it cleared.
Add #mux-state-cells = <1>; to the usb20phyrst and usb21phyrst reset
nodes to expose them as mux controllers.
Set the required mux-states in usb2_phy0 (OTG: state 1) and usb2_phy1
(HOST: state 0) nodes.
This enables proper VBUSEN management for OTG and HOST-only USB2.0
channels.
Signed-off-by: Tommaso Merciai <tommaso.merciai.xr at bp.renesas.com>
---
v1->v2:
- New patch
arch/arm64/boot/dts/renesas/r9a09g057.dtsi | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm64/boot/dts/renesas/r9a09g057.dtsi b/arch/arm64/boot/dts/renesas/r9a09g057.dtsi
index 40b15f1db930..b94a06b6f83e 100644
--- a/arch/arm64/boot/dts/renesas/r9a09g057.dtsi
+++ b/arch/arm64/boot/dts/renesas/r9a09g057.dtsi
@@ -989,6 +989,7 @@ usb2_phy0: usb-phy at 15800200 {
resets = <&usb20phyrst>;
#phy-cells = <1>;
power-domains = <&cpg>;
+ mux-states = <&usb20phyrst 1>;
status = "disabled";
};
@@ -1002,6 +1003,7 @@ usb2_phy1: usb-phy at 15810200 {
resets = <&usb21phyrst>;
#phy-cells = <1>;
power-domains = <&cpg>;
+ mux-states = <&usb21phyrst 0>;
status = "disabled";
};
@@ -1029,6 +1031,7 @@ usb20phyrst: usb20phy-reset at 15830000 {
resets = <&cpg 0xaf>;
power-domains = <&cpg>;
#reset-cells = <0>;
+ #mux-state-cells = <1>;
status = "disabled";
};
@@ -1039,6 +1042,7 @@ usb21phyrst: usb21phy-reset at 15840000 {
resets = <&cpg 0xaf>;
power-domains = <&cpg>;
#reset-cells = <0>;
+ #mux-state-cells = <1>;
status = "disabled";
};
--
2.43.0
More information about the linux-phy
mailing list