]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: imx8qm-mek: add usbotg1 and related nodes
authorFrank Li <Frank.Li@nxp.com>
Tue, 28 Oct 2025 20:30:47 +0000 (16:30 -0400)
committerShawn Guo <shawnguo@kernel.org>
Sun, 16 Nov 2025 09:45:53 +0000 (17:45 +0800)
Add usbotg1 and related nodes.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8qm-mek.dts

index c11789be0ef9bdd7f4b0d805fd966ac314e05f61..df1a536ee88f869a5076dff208ef609151102394 100644 (file)
                enable-active-high;
        };
 
+       reg_usb_otg1_vbus: regulator-usbotg1-vbus {
+               compatible = "regulator-fixed";
+               regulator-name = "usb_otg1_vbus";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               gpio = <&lsio_gpio4 3 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+       };
+
        reg_vref_1v8: regulator-adc-vref {
                compatible = "regulator-fixed";
                regulator-name = "vref_1v8";
        status = "okay";
 };
 
+&usbphy1 {
+       status = "okay";
+};
+
 &usb3_phy {
        status = "okay";
 };
 
+&usbotg1 {
+       vbus-supply = <&reg_usb_otg1_vbus>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_usbotg1>;
+       srp-disable;
+       hnp-disable;
+       adp-disable;
+       disable-over-current;
+       status = "okay";
+};
+
 &usbotg3 {
        status = "okay";
 };
                >;
        };
 
+       pinctrl_usbotg1: usbotg1grp {
+               fsl,pins = <
+                       IMX8QM_USB_SS3_TC0_LSIO_GPIO4_IO03              0x06000021
+               >;
+       };
+
        pinctrl_usdhc1: usdhc1grp {
                fsl,pins = <
                        IMX8QM_EMMC0_CLK_CONN_EMMC0_CLK                         0x06000041