On 10/29/26 1:56 PM, Nora Schiffer wrote:
On Thu, 2026-10-29 at 12:36 +0100, Mehmet Fide wrote:
Marek Vasut wrote:
I assume that usbmisc driver could also be reused by VF610 , paging
Mehmet on this topic.
Yes, it could. On Vybrid each controller has its own usbmisc
("fsl,vf610-usbmisc", usbmisc0 at 0x40034800, usbmisc1 at 0x400b4800,
index always 0). USBCx_CTRL has PWR_POL, OVER_CUR_POL and OVER_CUR_DIS
at bits 9, 8 and 7, the same as UCTRL on i.MX6, so the over-current and
power polarity code can be shared. ehci-vf sets OVER_CUR_POL and
OVER_CUR_DIS in that register directly today.
On the !DM_USB question: patch 3/9 of the ehci-vf v9 series removes the
!DM_USB path, so VF610 would only need the DM driver.
Once the driver is in, I can switch ehci-vf over to it and test it on
the Colibri VF50 and VF61.
It would be nice if we could get rid of !DM_USB in ehci-mx6 as well. I may have
missed a few, but I think the following are all defconfigs with
'CONFIG_USB_EHCI_MX[67]=y' and 'CONFIG_SPL_DM_USB is not set':
imx6dl_mamoj_defconfig
imx8mp_data_modul_edm_sbc_defconfig
imx8mn_ddr4_evk_defconfig
imx8mp_dhcom_drc02_defconfig
imx8mp_dhcom_pdk2_defconfig
imx8mp_dhcom_pdk3_defconfig
imx8mp_dhcom_picoitx_defconfig
imxrt1050-evk_defconfig
imxrt1050-evk_fspi_defconfig
kontron-osm-s-mx8mp_defconfig
kp_imx6q_tpc_defconfig
I can propose a patch to drop the !DM_USB code, but out of these the
imx8mn_ddr4_evk is the only one I have here for testing.
I have 7 of those. Keep in mind that MX8MP is DWC3 controller and is not
affected, MX8M{Q,M,N} is the chipidea EHCI.