[U-Boot] [PATCH v3 0/4] USB: Add cadence USB3 gadget/host/phy driver
Sherry Sun
sherry.sun at nxp.com
Fri Aug 16 06:10:09 UTC 2019
These patches introduce new Cadence driver to U-Boot.
The first patch is to add the Cadence USB3 IP(CDNS3) core and driver for
the usb gadget.
The second patch introduce the xhci-imx8 usb host driver separately.
The third patch introduce the cdns3 phy driver which can be used for both
cdns3 host driver and gadget driver.
The cdns3 usb gadget/host/phy driver are all used DM mode.
The current driver has been validated on i.MX8 platform.
If someone want to test it, please note that the additional dts nodes/
config macros/clock driver are also essential. You can also get
my test patches at https://github.com/sherrysun1/u-boot-imx.git to
start your test quickly.
Changes in v3:
- Changed all compatible from "Cadence,usb3" to "cdns,usb3".
- Use wait_for_bit_le32() and clrsetbits_le32() globally.
- Use u32 instead of unint_32 globally.
- Split cdns3_set_role() into two functions:
cdns3_host_role_set() and cdns3_gadget_role_set().
Sherry Sun (4):
USB: gadget: Add the cadence USB3 gadget driver
USB: host: Add the USB3 host driver
phy: Add USB PHY driver for the cadence USB3
USB: gadget: core: introduce ->udc_set_speed() method
Makefile | 1 +
doc/device-tree-bindings/usb/cdns-usb3.txt | 39 +
drivers/phy/Kconfig | 8 +
drivers/phy/Makefile | 1 +
drivers/phy/cdns3-usb-phy.c | 243 +++
drivers/usb/Kconfig | 2 +
drivers/usb/cdns3/Kconfig | 20 +
drivers/usb/cdns3/Makefile | 5 +
drivers/usb/cdns3/cdns3-generic.c | 115 +
drivers/usb/cdns3/cdns3-nxp-reg-def.h | 89 +
drivers/usb/cdns3/core.c | 194 ++
drivers/usb/cdns3/core.h | 118 ++
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 | 2218 ++++++++++++++++++++
drivers/usb/cdns3/gadget.h | 225 ++
drivers/usb/cdns3/io.h | 30 +
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 | 189 ++
include/linux/usb/gadget.h | 5 +
scripts/Makefile.spl | 1 +
27 files changed, 3807 insertions(+)
create mode 100644 doc/device-tree-bindings/usb/cdns-usb3.txt
create mode 100644 drivers/phy/cdns3-usb-phy.c
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/host/xhci-imx8.c
--
2.17.1
More information about the U-Boot
mailing list