Skip to content

i.MX8MM: add host/gadget support

Peng Fan u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8tcpc: Add driver for USB typec port controller (TCPC)board/freescale/common/Kconfig board/freescale/common/Makefile board/freescale/common/tcpc.c +1 more+1497 -01 reply
1/8tcpc: Add driver for USB typec port controller (TCPC)+0 -01 reply
1/8tcpc: Add driver for USB typec port controller (TCPC)+0 -01 reply
1/8tcpc: Add driver for USB typec port controller (TCPC)+0 -01 reply
2/8power: regulator: add dummy helperinclude/power/regulator.h+114 -00 replies
3/8phy: nop-phy: add optional clkdrivers/phy/nop-phy.c+34 -01 reply
3/8phy: nop-phy: add optional clk+0 -00 replies
4/8usb: imx: add i.MX usb ehci driverMakefile arch/arm/include/asm/mach-imx/regs-usbphy.h arch/arm/include/asm/mach-imx/sys_proto.h +6 more+479 -01 reply
4/8usb: imx: add i.MX usb ehci driver+0 -00 replies
5/8imx8m: enable usb power domainarch/arm/include/asm/arch-imx8m/sys_proto.h arch/arm/mach-imx/imx8m/soc.c+56 -01 reply
5/8imx8m: enable usb power domain+0 -01 reply
6/8imx8mm_evk: add usbotg1 host supportarch/arm/dts/imx8mm-evk-u-boot.dtsi board/freescale/imx8mm_evk/Kconfig board/freescale/imx8mm_evk/imx8mm_evk.c +2 more+223 -00 replies
7/8usb: ci_udc: Convert driver to DM_USB_GADGETdrivers/usb/gadget/ci_udc.c drivers/usb/host/ehci-mx6.c include/usb/ci_udc.h+305 -181 reply
7/8usb: ci_udc: Convert driver to DM_USB_GADGET+0 -01 reply
7/8usb: ci_udc: Convert driver to DM_USB_GADGET+0 -01 reply
7/8usb: ci_udc: Convert driver to DM_USB_GADGET+0 -01 reply
8/8imx8mm_evk: add fastboot supportarch/arm/dts/imx8mm-evk-u-boot.dtsi configs/imx8mm_evk_defconfig include/configs/imx8mm_evk.h+43 -11 reply
8/8imx8mm_evk: add fastboot support+0 -00 replies

Reviews trailers per patch

4 of 18 patches have a Reviewed-by or Acked-by.

PatchYe Li
1/8
1/8
1/8
1/8
2/8
3/8
3/8
4/8
4/8
5/8
5/8
6/8
7/8R-b
7/8R-b
7/8R-b
7/8R-b
8/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/8] i.MX8MM: add host/gadget support

This patchset is based on
https://patchwork.ozlabs.org/project/uboot/list/?series=202112
https://patchwork.ozlabs.org/project/uboot/list/?series=202117

In this patchset, A new pure DM USB driver was added to driver/use/imx which will be used to hold i.MX DM USB stuff, the ehci-mx6.c will retire step by step after more code moved.

It also includes the DM GADGET part of ci udc, my future idea is to add gadget support in driver/usb/imx/ and use one driver to handle host and gadget support.

The i.MX8MM EVK board has a typec devices, so need to setup the typec, this piece code was added in board/freescale/common.

Stefano:
This might not be good to merge the patches into one patchset,
but to make people could easy to setup test, so send in a whole.

Marek:
Please see whether you are fine moving the code to drivers/usb/imx/

Peng Fan (6):
power: regulator: add dummy helper
phy: nop-phy: add optional clk
usb: imx: add i.MX usb ehci driver
imx8m: enable usb power domain
imx8mm_evk: add usbotg1 host support
imx8mm_evk: add fastboot support

Sherry Sun (1):
usb: ci_udc: Convert driver to DM_USB_GADGET

Ye Li (1):
tcpc: Add driver for USB typec port controller (TCPC)

 Makefile                                    |    1 +
 arch/arm/dts/imx8mm-evk-u-boot.dtsi         |   43 +
 arch/arm/include/asm/arch-imx8m/sys_proto.h |    1 +
 arch/arm/include/asm/mach-imx/regs-usbphy.h |    5 +
 arch/arm/include/asm/mach-imx/sys_proto.h   |    2 +
 arch/arm/mach-imx/imx8m/soc.c               |   55 +
 board/freescale/common/Kconfig              |    6 +
 board/freescale/common/Makefile             |    4 +
 board/freescale/common/tcpc.c               | 1018 +++++++++++++++++++
 board/freescale/common/tcpc.h               |  469 +++++++++
 board/freescale/imx8mm_evk/Kconfig          |    1 +
 board/freescale/imx8mm_evk/imx8mm_evk.c     |  181 ++++
 configs/imx8mm_evk_defconfig                |   23 +
 drivers/Makefile                            |    1 +
 drivers/phy/nop-phy.c                       |   34 +
 drivers/usb/Kconfig                         |    2 +
 drivers/usb/gadget/ci_udc.c                 |  305 +++++-
 drivers/usb/host/ehci-mx6.c                 |   15 +-
 drivers/usb/imx/Kconfig                     |   10 +
 drivers/usb/imx/Makefile                    |    5 +
 drivers/usb/imx/ehci-imx.c                  |  406 ++++++++
 drivers/usb/imx/imx-usb-misc.c              |   47 +
 include/configs/imx8mm_evk.h                |   17 +
 include/power/regulator.h                   |  114 +++
 include/usb/ci_udc.h                        |    3 +
 25 files changed, 2750 insertions(+), 18 deletions(-)
 create mode 100644 board/freescale/common/tcpc.c
 create mode 100644 board/freescale/common/tcpc.h
 create mode 100644 drivers/usb/imx/Kconfig
 create mode 100644 drivers/usb/imx/Makefile
 create mode 100644 drivers/usb/imx/ehci-imx.c
 create mode 100644 drivers/usb/imx/imx-usb-misc.c
Signature · 1 line
2.28.0