]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
usb: chipidea: imx: add USB support for i.MX94
authorXu Yang <xu.yang_2@nxp.com>
Fri, 19 Sep 2025 07:11:11 +0000 (15:11 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Oct 2025 07:11:50 +0000 (09:11 +0200)
Add new imx94_usbmisc_ops for i.MX94 due to it has same wakeup logic
as i.MX95, but it doesn't need workaround for ERR051725, so pullup
is not needed.

Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Acked-by: Peter Chen <peter.chen@kernel.org>
Link: https://lore.kernel.org/r/20250919071111.2558628-2-xu.yang_2@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/usbmisc_imx.c

index b1418885707c88a91aa89fefe5fdb0f85823a44d..bb027d2bd7008ed32d00c73fd87920a1b48c707b 100644 (file)
@@ -1224,6 +1224,14 @@ static const struct usbmisc_ops imx7ulp_usbmisc_ops = {
        .power_lost_check = usbmisc_imx7d_power_lost_check,
 };
 
+static const struct usbmisc_ops imx94_usbmisc_ops = {
+       .init = usbmisc_imx7d_init,
+       .set_wakeup = usbmisc_imx95_set_wakeup,
+       .charger_detection = imx7d_charger_detection,
+       .power_lost_check = usbmisc_imx7d_power_lost_check,
+       .vbus_comparator_on = usbmisc_imx7d_vbus_comparator_on,
+};
+
 static const struct usbmisc_ops imx95_usbmisc_ops = {
        .init = usbmisc_imx7d_init,
        .set_wakeup = usbmisc_imx95_set_wakeup,
@@ -1481,6 +1489,10 @@ static const struct of_device_id usbmisc_imx_dt_ids[] = {
                .compatible = "fsl,imx8ulp-usbmisc",
                .data = &imx7ulp_usbmisc_ops,
        },
+       {
+               .compatible = "fsl,imx94-usbmisc",
+               .data = &imx94_usbmisc_ops,
+       },
        {
                .compatible = "fsl,imx95-usbmisc",
                .data = &imx95_usbmisc_ops,