diff mbox series

[6/6] arm64: dts: imx95-19x19-evk: enable USB2.0 node

Message ID 20250219093104.2589449-7-xu.yang_2@nxp.com
State New
Headers show
Series add USB2.0 support for i.MX95-19x19 EVK board | expand

Commit Message

Xu Yang Feb. 19, 2025, 9:31 a.m. UTC
On this board, USB2.0 is a host-only port, add vbus regulator node
and enable USB2.0 node.

Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
---
 .../arm64/boot/dts/freescale/imx95-19x19-evk.dts | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

Comments

Xu Yang Feb. 20, 2025, 10:38 a.m. UTC | #1
On Wed, Feb 19, 2025 at 03:39:08PM -0500, Frank Li wrote:
> On Wed, Feb 19, 2025 at 05:31:04PM +0800, Xu Yang wrote:
> > On this board, USB2.0 is a host-only port, add vbus regulator node
> > and enable USB2.0 node.
> >
> > Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
> > ---
> >  .../arm64/boot/dts/freescale/imx95-19x19-evk.dts | 16 ++++++++++++++++
> >  1 file changed, 16 insertions(+)
> >
> > diff --git a/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts b/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts
> > index 25ac331f0318..0505cfe2778f 100644
> > --- a/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts
> > +++ b/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts
> > @@ -133,6 +133,15 @@ reg_slot_pwr: regulator-slot-pwr {
> >  		enable-active-high;
> >  	};
> >
> > +	reg_usb_vbus: regulator-vbus {
> > +		compatible = "regulator-fixed";
> > +		regulator-name = "USB_VBUS";
> > +		regulator-min-microvolt = <5000000>;
> > +		regulator-max-microvolt = <5000000>;
> > +		gpio = <&i2c7_pcal6524 3 GPIO_ACTIVE_HIGH>;
> > +		enable-active-high;
> > +	};
> > +
> 
> try alphabet order, regulator-vbus should after regulator-usdhc2

Okay, will do.

Thanks,
Xu Yang

> 
> Reviewed-by: Frank Li <Frank.Li@nxp.com>
> 
> 
> >  	reg_usdhc2_vmmc: regulator-usdhc2 {
> >  		compatible = "regulator-fixed";
> >  		pinctrl-names = "default";
> > @@ -461,6 +470,13 @@ &sai3 {
> >  	status = "okay";
> >  };
> >
> > +&usb2 {
> > +	dr_mode = "host";
> > +	disable-over-current;
> > +	vbus-supply = <&reg_usb_vbus>;
> > +	status = "okay";
> > +};
> > +
> >  &usb3 {
> >  	status = "okay";
> >  };
> > --
> > 2.34.1
> >
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts b/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts
index 25ac331f0318..0505cfe2778f 100644
--- a/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts
+++ b/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts
@@ -133,6 +133,15 @@  reg_slot_pwr: regulator-slot-pwr {
 		enable-active-high;
 	};
 
+	reg_usb_vbus: regulator-vbus {
+		compatible = "regulator-fixed";
+		regulator-name = "USB_VBUS";
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+		gpio = <&i2c7_pcal6524 3 GPIO_ACTIVE_HIGH>;
+		enable-active-high;
+	};
+
 	reg_usdhc2_vmmc: regulator-usdhc2 {
 		compatible = "regulator-fixed";
 		pinctrl-names = "default";
@@ -461,6 +470,13 @@  &sai3 {
 	status = "okay";
 };
 
+&usb2 {
+	dr_mode = "host";
+	disable-over-current;
+	vbus-supply = <&reg_usb_vbus>;
+	status = "okay";
+};
+
 &usb3 {
 	status = "okay";
 };