
Hi Jean-Jacques, Marek,
The K2G platforms can use the generic DWC3 driver instead of relying on the keystone-xhci driver. Benefits are:
- moving toward DM
- brings USB gadget for free
- allows us to remove some code
Tested on:
- K2G EVM
I'm not sure if I shall wait for Marek's PR to Tom (preferred) or send new PR to Marek?
Marek what do you think?
Changes in v2:
- rebased on latest version of u-boot-usb/master
- use DM_USB_GADGET instead of DM_USB_DEV
Jean-Jacques Hiblot (6): usb: dwc3-generic: make it compatible with "ti,keystone-dwc3" board: ks2_evm: Enable the USB clocks if DM_USB is used ARM: dts: k2g-evm: enable USB0 and USB1 PHY: Add phy driver for the keystone USB PHY usb: host: replace xhci-keystone driver by the generic dwc3 driver configs: k2g_evm: Enable DFU on K2G EVM
arch/arm/dts/keystone-k2g-evm.dts | 28 ++++ arch/arm/dts/keystone-k2g.dtsi | 56 ++++++++ board/ti/ks2_evm/board.c | 12 ++ configs/k2e_evm_defconfig | 7 + configs/k2e_hs_evm_defconfig | 7 + configs/k2g_evm_defconfig | 12 ++ configs/k2g_hs_evm_defconfig | 12 ++ configs/k2hk_evm_defconfig | 7 + configs/k2hk_hs_evm_defconfig | 7 + configs/k2l_evm_defconfig | 7 + configs/k2l_hs_evm_defconfig | 7 + drivers/phy/Kconfig | 10 ++ drivers/phy/Makefile | 1 + drivers/phy/keystone-usb-phy.c | 109 ++++++++++++++++ drivers/usb/dwc3/dwc3-generic.c | 1 + drivers/usb/host/Makefile | 1 - drivers/usb/host/xhci-keystone.c | 240
include/configs/ti_armv7_keystone2.h | 17 ++- 18 files changed, 294 insertions(+), 247 deletions(-) create mode 100644 drivers/phy/keystone-usb-phy.c delete mode 100644 drivers/usb/host/xhci-keystone.c
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de