[U-Boot] [PATCH 0/3] USB: Add cadence USB3 gadget driver and host driver

Igor Opaniuk igor.opaniuk at gmail.com
Thu Aug 1 12:09:29 UTC 2019


Hi Sherry,

On Tue, Jul 16, 2019 at 4:15 PM sherry sun <sherry.sun at nxp.com> wrote:
>
> From: Sherry Sun <sherry.sun at nxp.com>
>
> These patches introduce new Cadence USBSS driver to U-Boot.
>
> The first patch is to add the Cadence USB3 IP(CDNS3) driver for the usb
> gadget, but the host mode is not supported now. The second patch
> introduce the xhci-imx8 usb host driver separately. The cdns3 usb
> gadget driver and xhci-imx8 host driver both use DM mode.
>
> The current driver has been validated on i.MX8 platform.
>
> Sherry Sun (3):
>   USB: gadget: Add the cadence USB3 gadget driver
>   USB: host: Add the USB3 host driver
>   USB: gadget: core: introduce ->udc_set_speed() method
>
>  Makefile                              |    1 +
>  drivers/usb/Kconfig                   |    2 +
>  drivers/usb/cdns3/Kconfig             |   20 +
>  drivers/usb/cdns3/Makefile            |    5 +
>  drivers/usb/cdns3/cdns3-generic.c     |  176 ++
>  drivers/usb/cdns3/cdns3-nxp-reg-def.h |  158 ++
>  drivers/usb/cdns3/core.c              |  408 +++++
>  drivers/usb/cdns3/core.h              |  129 ++
>  drivers/usb/cdns3/dev-regs-macro.h    |  116 ++
>  drivers/usb/cdns3/dev-regs-map.h      |  117 ++
>  drivers/usb/cdns3/gadget-export.h     |   26 +
>  drivers/usb/cdns3/gadget.c            | 2278 +++++++++++++++++++++++++
>  drivers/usb/cdns3/gadget.h            |  238 +++
>  drivers/usb/cdns3/io.h                |   30 +
>  drivers/usb/cdns3/linux-compat.h      |   16 +
>  drivers/usb/gadget/epautoconf.c       |    4 +
>  drivers/usb/gadget/gadget_chips.h     |    7 +
>  drivers/usb/gadget/udc/Makefile       |    1 +
>  drivers/usb/gadget/udc/udc-core.c     |   23 +
>  drivers/usb/host/Kconfig              |    9 +
>  drivers/usb/host/Makefile             |    1 +
>  drivers/usb/host/xhci-imx8.c          |  311 ++++
>  include/cdns3-uboot.h                 |   26 +
>  include/linux/usb/gadget.h            |    5 +
>  include/usb/imx8_usb3_reg_def.h       |  455 +++++
>  scripts/Makefile.spl                  |    1 +
>  26 files changed, 4563 insertions(+)
>  create mode 100644 drivers/usb/cdns3/Kconfig
>  create mode 100644 drivers/usb/cdns3/Makefile
>  create mode 100644 drivers/usb/cdns3/cdns3-generic.c
>  create mode 100644 drivers/usb/cdns3/cdns3-nxp-reg-def.h
>  create mode 100644 drivers/usb/cdns3/core.c
>  create mode 100644 drivers/usb/cdns3/core.h
>  create mode 100644 drivers/usb/cdns3/dev-regs-macro.h
>  create mode 100644 drivers/usb/cdns3/dev-regs-map.h
>  create mode 100644 drivers/usb/cdns3/gadget-export.h
>  create mode 100644 drivers/usb/cdns3/gadget.c
>  create mode 100644 drivers/usb/cdns3/gadget.h
>  create mode 100644 drivers/usb/cdns3/io.h
>  create mode 100644 drivers/usb/cdns3/linux-compat.h
>  create mode 100644 drivers/usb/host/xhci-imx8.c
>  create mode 100644 include/cdns3-uboot.h
>  create mode 100644 include/usb/imx8_usb3_reg_def.h
>
> --
> 2.17.1
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot

Thanks for your patches!
Taking into account that this series introduces a brand new driver,
it would be really nice to also have proper device tree bindings
in doc/device-tree-bindings (so I can at least quickly enable it for my
board, test it and leave my T-b tags).

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