]> www.infradead.org Git - users/willy/xarray.git/commitdiff
arm64: dts: imx95-15x15-evk: enable USB2.0 node
authorXu Yang <xu.yang_2@nxp.com>
Thu, 10 Apr 2025 06:49:07 +0000 (14:49 +0800)
committerShawn Guo <shawnguo@kernel.org>
Fri, 25 Apr 2025 01:17:05 +0000 (09:17 +0800)
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>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx95-15x15-evk.dts

index 514f2429dcbc2754aad23456fc312bda5edd338f..aa0b9a4c36880b4efb8f3980f748c8e1a6c1da54 100644 (file)
                startup-delay-us = <20000>;
        };
 
+       reg_usb_vbus: regulator-vbus {
+               compatible = "regulator-fixed";
+               regulator-name = "USB_VBUS";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               gpio = <&pcal6524 3 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+       };
+
        reg_vcc_12v: regulator-vcc-12v {
                compatible = "regulator-fixed";
                regulator-max-microvolt = <12000000>;
        status = "okay";
 };
 
+&usb2 {
+       dr_mode = "host";
+       vbus-supply = <&reg_usb_vbus>;
+       disable-over-current;
+       status = "okay";
+};
+
 &usb3 {
        status = "okay";
 };