mbox series

[U-Boot,v1,0/6] Add support for DM_USB and DM_USB_DEV to TI's K2G platforms

Message ID 1542382442-5351-1-git-send-email-jjhiblot@ti.com
Headers show
Series Add support for DM_USB and DM_USB_DEV to TI's K2G platforms | expand

Message

Jean-Jacques Hiblot Nov. 16, 2018, 3:33 p.m. UTC
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



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

Comments

Jean-Jacques Hiblot Nov. 16, 2018, 3:36 p.m. UTC | #1
I forgot to mention that this series applies on top of the series 
"[PATCH v7 00/11] [RESEND] Add support for DM_USB and DM_USB_DEV for 
TI's DRA7 EVMs and AM57 EVMs platforms."

On 16/11/2018 16:33, Jean-Jacques Hiblot wrote:
> 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
>
>
>
> 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
>