[U-Boot] Upstreaming usb host drivers for iMX8/iMX8M

Igor Opaniuk igor.opaniuk at gmail.com
Thu Jun 27 09:49:04 UTC 2019


Hi Peng,

On Thu, Jun 27, 2019 at 8:32 AM Peng Fan <peng.fan at nxp.com> wrote:
>
>
> Hi Igor,
>
> > Subject: Upstreaming usb host drivers for iMX8/iMX8M
> >
> > Hi Peng, Ye, Peter,
> >
> > Currently there in no any usb host/gadget support in the mainline U-boot, and
> > seems that no one has posted anything yet to the mailing list (at least I
> > haven't found anything related to this in the ML archives).
> >
> > I've spent some time testing (usb host, ums etc.) the one in the downstream
> > NXP U-boot (I'm still not sure where is the official NXP downstream rep,
> > because there are no any updates in [1] for the last two years, so I looked into
> > [2], [3]), and just curious if there any plans to get it upstreamed in the near
> > future?
>
> In NXP downstream, there is work to migrate the i.MX8 usb/gadget to DM.
> When that ready, the patches will be posted to community.

So do you need any help with this? Won't you mind if we start
up-streaming at least xhci-imx8.c,
which is used in both our SoMs Apalis iMX8 and Colibri iMX8QXP. Based
on what I've seen in [1],
the initial conversion to DM_USB is already done. Is there anything
else that is expected to be changed in
xhci-imx8.c (by asking this I just want to avoid duplicating the effort)?

Frankly, this is currently a kind of showstopper for us, as it adds
some complications for the next release
of our BSP (we would like to enable usb host/gadget support or iMX8-based SoMS,
including all dependent features like fastboot/usb storage/ums etc.),
where we made a decision to move towards the usage of the mainline U-boot
(with the minimal divergence and minimal amount of legacy downstream
patches on top of it).

>
>
> Regards,
> Peng.
>
> >
> > Thanks and looking forward to your reply!
> >
> > [1]
> > https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgit.free
> > scale.com%2Fgit%2Fcgit.cgi%2Fimx%2Fuboot-imx.git&data=02%7C01%
> > 7Cpeng.fan%40nxp.com%7Ccb5c23c8a4764b489d6308d6fa32e9cf%7C686ea
> > 1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C636971493909583933&
> > sdata=HcUVX2n%2BdzUNtkuF%2BC4IoFRuMtZpZpJvBpwoqk20Lrk%3D&
> > reserved=0
> > [2]
> > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsource
> > .codeaurora.org%2Fexternal%2Fimx%2Fuboot-imx%2Ftree%2Fdrivers%2Fusb
> > %2Fhost%2Fxhci-imx8m.c%3Fh%3Dimx_v2017.03_4.9.88_imx8qxp_beta2&a
> > mp;data=02%7C01%7Cpeng.fan%40nxp.com%7Ccb5c23c8a4764b489d6308d
> > 6fa32e9cf%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C6369714
> > 93909583933&sdata=Dvp5XlU8Zcj9wJJ2cvD8taPCbitVKVjpGyyFHonTF%
> > 2Bs%3D&reserved=0
> > [3]
> > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsource
> > .codeaurora.org%2Fexternal%2Fimx%2Fuboot-imx%2Ftree%2Fdrivers%2Fusb
> > %2Fhost%2Fxhci-imx8.c%3Fh%3Dimx_v2017.03_4.9.88_imx8qxp_beta2&am
> > p;data=02%7C01%7Cpeng.fan%40nxp.com%7Ccb5c23c8a4764b489d6308d6f
> > a32e9cf%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C63697149
> > 3909583933&sdata=v5%2FiQYxvpLLPjj5QcHQ8dC8RfoFkNVfMbKQ79rW
> > wV4c%3D&reserved=0
> >
> > --
> > Best regards - Freundliche Grüsse - Meilleures salutations
> >
> > Igor Opaniuk
> >
> > mailto: igor.opaniuk at gmail.com
> > skype: igor.opanyuk
> > +380 (93) 836 40 67
> > https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fua.linke
> > din.com%2Fin%2Fiopaniuk&data=02%7C01%7Cpeng.fan%40nxp.com%7
> > Ccb5c23c8a4764b489d6308d6fa32e9cf%7C686ea1d3bc2b4c6fa92cd99c5c30
> > 1635%7C0%7C0%7C636971493909583933&sdata=gwm7kV8EAYWThz3
> > %2FtbvYc9ahqla2OkcR83MRmY5DK%2FI%3D&reserved=0

[1] https://source.codeaurora.org/external/imx/uboot-imx/tree/drivers/usb/host/xhci-imx8.c?h=imx_v2018.03_4.14.98_2.0.0_ga

Thanks!

-- 
Best regards - Freundliche Grüsse - Meilleures salutations

Igor Opaniuk

mailto: igor.opaniuk at gmail.com
skype: igor.opanyuk
+380 (93) 836 40 67
http://ua.linkedin.com/in/iopaniuk


More information about the U-Boot mailing list