[U-Boot] [RESEND PATCH v3 13/18] usb: dwc3: Kconfig: get rid of obsolete mode selection

2019-06-27 Thread Jean-Jacques Hiblot
and keep only the USB_DWC3_GADGET option. Enable it by default if USB_GADGET and USB_DWC3 are enabled. It must be disabled for the evb-rk3328 as it uses DWC2 for the gadget and DWC3 for the host. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2: Select USB_GADGET_DUALSPEED

[U-Boot] [RESEND PATCH v3 08/18] usb: dwc3-generic: use platdata

2019-06-27 Thread Jean-Jacques Hiblot
Separate platform data from the private data. This is one step toward adding host support. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2: None drivers/usb/dwc3/dwc3-generic.c | 37 - 1 file changed, 23 insertions(+), 14 deletions

[U-Boot] [RESEND PATCH v3 14/18] ARM: keystone: increase PSC timeout

2019-06-27 Thread Jean-Jacques Hiblot
Turning off the USB clocks may take longer than 100us. Increase the timeout to 100ms. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2: None arch/arm/mach-keystone/include/mach/psc_defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach

[U-Boot] [RESEND PATCH v3 18/18] ARM: DTS: keystone: complete the description of the USB PHY devices

2019-06-27 Thread Jean-Jacques Hiblot
As the PHY driver now handles the transitions of USB power domain, we must add this information in the node of each PHY. Also, the phy are expected in the "phys" property, not "usb-phys". Also add the aliases for the USB ports on boards with more than a single port. Signed-

[U-Boot] [RESEND PATCH v3 17/18] configs: k2g_evm_defconfig: disable XHCI_DWC3 and enable KEYSTONE_USB_PHY

2019-06-27 Thread Jean-Jacques Hiblot
KEYSTONE_USB_PHY is now required for proper USB operations. XHCI_DWC3 can be disabled as the xhci-dwc3 is not used anymore USB_DWC3_GADGET can also be removed, it is now selected automatically. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2: None configs

[U-Boot] [RESEND PATCH v3 15/18] ARM: keystone: Do not enable the USB power domains at the board level

2019-06-27 Thread Jean-Jacques Hiblot
This breaks linux boot sequence. Observed on k2e and k2l platforms. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2: None board/ti/ks2_evm/board.c | 13 - 1 file changed, 13 deletions(-) diff --git a/board/ti/ks2_evm/board.c b/board/ti/ks2_evm/board.c

[U-Boot] [RESEND PATCH v3 11/18] usb: dwc3-generic: if no max speed is specified in DT, assume super speed

2019-06-27 Thread Jean-Jacques Hiblot
There is no need to fail if the maximum speed is not specified. If the speed is not specified, do the same as linux and assume super speed. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: - updated log message when defaulting to super speed Changes in v2: None drivers/usb/dwc3/dwc3

[U-Boot] [RESEND PATCH v3 03/18] dm: Add a No-op uclass

2019-06-27 Thread Jean-Jacques Hiblot
child devices (1 for device and 1 for host) but bind only one at a any given time. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: Add a test for the NOP uclass arch/sandbox/dts/test.dts | 12 +++ drivers/core/uclass.c | 5 +++ include

[U-Boot] [RESEND PATCH v3 16/18] phy: keystone-usb: handle the transition of the USB power domain

2019-06-27 Thread Jean-Jacques Hiblot
the required on/off sequence. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2: None drivers/phy/keystone-usb-phy.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/phy/keystone-usb-phy.c b/drivers/phy/keystone-usb-phy.c index e8146cabfa

[U-Boot] [RESEND PATCH v3 09/18] usb: dwc3-generic: factorize code

2019-06-27 Thread Jean-Jacques Hiblot
Factor code for re-usability. This is another step toward adding host support. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2: None drivers/usb/dwc3/dwc3-generic.c | 55 + 1 file changed, 35 insertions(+), 20 deletions(-) diff --git

[U-Boot] [RESEND PATCH v3 12/18] usb: dwc3: Add dwc3_of_parse() to get quirks information from DT

2019-06-27 Thread Jean-Jacques Hiblot
c5ac6116db35d. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2: Update commit log drivers/usb/dwc3/core.c | 65 + drivers/usb/dwc3/core.h | 1 + drivers/usb/dwc3/dwc3-generic.c | 6 ++- 3 files changed, 71 insertions

[U-Boot] [RESEND PATCH v3 06/18] usb: xhci: move xhci.h to include usb

2019-06-27 Thread Jean-Jacques Hiblot
The xhci.h header file is currently located under drivers/usb/xhci Move it to the include/usb folder to make it available to drivers that are not under drivers/usb/xhci Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2: None MAINTAINERS | 1

[U-Boot] [RESEND PATCH v3 05/18] usb: dwc3: switch to peripheral mode when exiting

2019-06-27 Thread Jean-Jacques Hiblot
This allow the phy to enter idle and then suspend. the K2 platforms require the PHY to be suspended before the USB domain clock can be turned off. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2: None drivers/usb/dwc3/core.c | 13 + 1 file changed, 13

[U-Boot] [RESEND PATCH v3 02/18] usb: host: remove the xhci-zynqmp driver

2019-06-27 Thread Jean-Jacques Hiblot
This driver is not used anymore. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2: None configs/avnet_ultra96_rev1_defconfig | 1 - .../xilinx_zynqmp_zc1751_xm015_dc1_defconfig | 1 - .../xilinx_zynqmp_zc1751_xm016_dc2_defconfig | 1

[U-Boot] [RESEND PATCH v3 07/18] usb: dwc3: always use the inlined version of dwc3_host_init/dwc3_host_exit

2019-06-27 Thread Jean-Jacques Hiblot
No one is actually implementing those functions. We could remove calls to these altogether, but it does not really hurt to keep the empty inlined version at the moment and it satisfies a symmetry with the gadget mode. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2

[U-Boot] [RESEND PATCH v3 04/18] usb: dwc3: Use UCLASS_NOP instead of UCLASS_MISC for the DWC3 generic glue

2019-06-27 Thread Jean-Jacques Hiblot
dwc3-generic has been broken since MISC uclass has been modified to scan DT sub-nodes after bind. Fixing it by a using the no-op uclass. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/usb/dwc3/dwc3-generic.c | 2 +- 1 file

[U-Boot] [RESEND PATCH v3 01/18] usb: dwc3-generic: remove dm_scan_fdt_dev() from the remove() callback

2019-06-27 Thread Jean-Jacques Hiblot
There is simply no reason to do that here. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2: None drivers/usb/dwc3/dwc3-generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/dwc3-generic.c b/drivers/usb/dwc3/dwc3-generic.c index

Re: [U-Boot] [PATCH v3 06/18] usb: xhci: move xhci.h to include usb

2019-06-27 Thread Jean-Jacques Hiblot
On 27/06/2019 13:11, Marek Vasut wrote: On 6/27/19 1:02 PM, Jean-Jacques Hiblot wrote: The xhci.h header file is currently located under drivers/usb/xhci Move it to the include/usb folder to make it available to drivers that are not under drivers/usb/xhci Signed-off-by: Jean-Jacques Hiblot

[U-Boot] [PATCH v3 00/18] Fixes for the DWC3 USB generic driver

2019-06-27 Thread Jean-Jacques Hiblot
nges in v2: Add a test for the NOP uclass Update commit log Select USB_GADGET_DUALSPEED if USB_DWC3_GADGET is selected Jean-Jacques Hiblot (18): usb: dwc3-generic: remove dm_scan_fdt_dev() from the remove() callback usb: host: remove the xhci-zynqmp driver dm: Add a No-op uclass usb:

[U-Boot] [PATCH v3 11/18] usb: dwc3-generic: if no max speed is specified in DT, assume super speed

2019-06-27 Thread Jean-Jacques Hiblot
There is no need to fail if the maximum speed is not specified. If the speed is not specified, do the same as linux and assume super speed. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: - updated log message when defaulting to super speed Changes in v2: None drivers/usb/dwc3/dwc3

[U-Boot] [PATCH v3 02/18] usb: host: remove the xhci-zynqmp driver

2019-06-27 Thread Jean-Jacques Hiblot
This driver is not used anymore. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2: None configs/avnet_ultra96_rev1_defconfig | 1 - .../xilinx_zynqmp_zc1751_xm015_dc1_defconfig | 1 - .../xilinx_zynqmp_zc1751_xm016_dc2_defconfig | 1

[U-Boot] [PATCH v3 18/18] ARM: DTS: keystone: complete the description of the USB PHY devices

2019-06-27 Thread Jean-Jacques Hiblot
As the PHY driver now handles the transitions of USB power domain, we must add this information in the node of each PHY. Also, the phy are expected in the "phys" property, not "usb-phys". Also add the aliases for the USB ports on boards with more than a single port. Signed-

[U-Boot] [PATCH v3 16/18] phy: keystone-usb: handle the transition of the USB power domain

2019-06-27 Thread Jean-Jacques Hiblot
the required on/off sequence. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2: None drivers/phy/keystone-usb-phy.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/phy/keystone-usb-phy.c b/drivers/phy/keystone-usb-phy.c index e8146cabfa

[U-Boot] [PATCH v3 03/18] dm: Add a No-op uclass

2019-06-27 Thread Jean-Jacques Hiblot
child devices (1 for device and 1 for host) but bind only one at a any given time. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: Add a test for the NOP uclass arch/sandbox/dts/test.dts | 12 +++ drivers/core/uclass.c | 5 +++ include

[U-Boot] [PATCH v3 09/18] usb: dwc3-generic: factorize code

2019-06-27 Thread Jean-Jacques Hiblot
Factor code for re-usability. This is another step toward adding host support. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2: None drivers/usb/dwc3/dwc3-generic.c | 55 + 1 file changed, 35 insertions(+), 20 deletions(-) diff --git

[U-Boot] [PATCH v3 15/18] ARM: keystone: Do not enable the USB power domains at the board level

2019-06-27 Thread Jean-Jacques Hiblot
This breaks linux boot sequence. Observed on k2e and k2l platforms. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2: None board/ti/ks2_evm/board.c | 13 - 1 file changed, 13 deletions(-) diff --git a/board/ti/ks2_evm/board.c b/board/ti/ks2_evm/board.c

[U-Boot] [PATCH v3 06/18] usb: xhci: move xhci.h to include usb

2019-06-27 Thread Jean-Jacques Hiblot
The xhci.h header file is currently located under drivers/usb/xhci Move it to the include/usb folder to make it available to drivers that are not under drivers/usb/xhci Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2: None MAINTAINERS | 1

[U-Boot] [PATCH v3 10/18] usb: dwc3-generic: add a new host driver that uses the dwc3 core

2019-06-27 Thread Jean-Jacques Hiblot
n for this is simply that the xhci layer expects a struct xhci_ctrl at the beginning of the private data and it seemed wasteful to include it also for the peripheral case. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2: None drivers/usb/dwc3/core.c | 2 +- drivers/usb

[U-Boot] [PATCH v3 17/18] configs: k2g_evm_defconfig: disable XHCI_DWC3 and enable KEYSTONE_USB_PHY

2019-06-27 Thread Jean-Jacques Hiblot
KEYSTONE_USB_PHY is now required for proper USB operations. XHCI_DWC3 can be disabled as the xhci-dwc3 is not used anymore USB_DWC3_GADGET can also be removed, it is now selected automatically. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2: None configs

[U-Boot] [PATCH v3 13/18] usb: dwc3: Kconfig: get rid of obsolete mode selection

2019-06-27 Thread Jean-Jacques Hiblot
and keep only the USB_DWC3_GADGET option. Enable it by default if USB_GADGET and USB_DWC3 are enabled. It must be disabled for the evb-rk3328 as it uses DWC2 for the gadget and DWC3 for the host. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2: Select USB_GADGET_DUALSPEED

[U-Boot] [PATCH v3 12/18] usb: dwc3: Add dwc3_of_parse() to get quirks information from DT

2019-06-27 Thread Jean-Jacques Hiblot
c5ac6116db35d. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2: Update commit log drivers/usb/dwc3/core.c | 65 + drivers/usb/dwc3/core.h | 1 + drivers/usb/dwc3/dwc3-generic.c | 6 ++- 3 files changed, 71 insertions

[U-Boot] [PATCH v3 14/18] ARM: keystone: increase PSC timeout

2019-06-27 Thread Jean-Jacques Hiblot
Turning off the USB clocks may take longer than 100us. Increase the timeout to 100ms. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2: None arch/arm/mach-keystone/include/mach/psc_defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach

[U-Boot] [PATCH v3 07/18] usb: dwc3: always use the inlined version of dwc3_host_init/dwc3_host_exit

2019-06-27 Thread Jean-Jacques Hiblot
No one is actually implementing those functions. We could remove calls to these altogether, but it does not really hurt to keep the empty inlined version at the moment and it satisfies a symmetry with the gadget mode. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2

[U-Boot] [PATCH v3 05/18] usb: dwc3: switch to peripheral mode when exiting

2019-06-27 Thread Jean-Jacques Hiblot
This allow the phy to enter idle and then suspend. the K2 platforms require the PHY to be suspended before the USB domain clock can be turned off. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2: None drivers/usb/dwc3/core.c | 13 + 1 file changed, 13

[U-Boot] [PATCH v3 08/18] usb: dwc3-generic: use platdata

2019-06-27 Thread Jean-Jacques Hiblot
Separate platform data from the private data. This is one step toward adding host support. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2: None drivers/usb/dwc3/dwc3-generic.c | 37 - 1 file changed, 23 insertions(+), 14 deletions

[U-Boot] [PATCH v3 04/18] usb: dwc3: Use UCLASS_NOP instead of UCLASS_MISC for the DWC3 generic glue

2019-06-27 Thread Jean-Jacques Hiblot
dwc3-generic has been broken since MISC uclass has been modified to scan DT sub-nodes after bind. Fixing it by a using the no-op uclass. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/usb/dwc3/dwc3-generic.c | 2 +- 1 file

[U-Boot] [PATCH v3 01/18] usb: dwc3-generic: remove dm_scan_fdt_dev() from the remove() callback

2019-06-27 Thread Jean-Jacques Hiblot
There is simply no reason to do that here. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2: None drivers/usb/dwc3/dwc3-generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/dwc3-generic.c b/drivers/usb/dwc3/dwc3-generic.c index

[U-Boot] [PATCH v1 08/11] mmc: When switching partition, use the timeout specified in the ext_csd

2019-06-27 Thread Jean-Jacques Hiblot
The e-MMC spec allows the e-MMC to specify a timeout for the partition switch command. It can take up to 2550 ms. There is no lower limit to this value in the spec, but do as the the linux driver does and force it to be at least 300ms. Signed-off-by: Jean-Jacques Hiblot --- drivers/mmc/mmc.c

[U-Boot] [PATCH v1 03/11] Revert "mmc: Add a new callback function to perform the 74 clocks cycle sequence"

2019-06-27 Thread Jean-Jacques Hiblot
This reverts commit 318a7a576bc49aa8b4207e694d3fbd48c663d6ac. The last and only user of this callback had been the omap_hsmmc driver. It is not used anymore. Removing the callback. Signed-off-by: Jean-Jacques Hiblot --- drivers/mmc/mmc-uclass.c | 13 - drivers/mmc/mmc.c

[U-Boot] [PATCH v1 10/11] mmc: do not change mode when accessing a boot partition

2019-06-27 Thread Jean-Jacques Hiblot
-Jacques Hiblot --- drivers/mmc/mmc.c | 36 1 file changed, 36 deletions(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index b0684596f9..709733747a 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -955,46 +955,10 @@ static int mmc_set_capacity

[U-Boot] [PATCH v1 11/11] mmc: retry a few times if a partition switch failed

2019-06-27 Thread Jean-Jacques Hiblot
This operation may fail. Retry it a few times before giving up and report a failure. Signed-off-by: Jean-Jacques Hiblot --- drivers/mmc/mmc.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 709733747a..cec39a9acf

[U-Boot] [PATCH v1 06/11] mmc: if possible, poll the busy state using DAT0

2019-06-27 Thread Jean-Jacques Hiblot
Using the DAT0 line as a rdy/busy line is an alternative to reading the status register of the card. It especially useful in situation where the bus is not in a good shape, like when modes are switched. This is also how the linux driver behaves. Signed-off-by: Jean-Jacques Hiblot --- drivers

[U-Boot] [PATCH v1 09/11] mmc: During a switch, poll on dat0 if available and check the final status

2019-06-27 Thread Jean-Jacques Hiblot
the status of the card. It is important to do so because the operation may have failed. Signed-off-by: Jean-Jacques Hiblot --- drivers/mmc/mmc.c | 49 ++- 1 file changed, 36 insertions(+), 13 deletions(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc

[U-Boot] [PATCH v1 07/11] mmc: use the generic timeout for cmd6 (SWITCH) provided in the ext_csd

2019-06-27 Thread Jean-Jacques Hiblot
Starting with rev 4.5, the eMMC can define a generic timeout for the SWITCH command. Signed-off-by: Jean-Jacques Hiblot --- drivers/mmc/mmc.c | 10 +- include/mmc.h | 2 ++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index

[U-Boot] [PATCH v1 04/11] mmc: omap_hsmmc: provide wait_dat0 even if UHS modes are not supported

2019-06-27 Thread Jean-Jacques Hiblot
This function can also be used for eMMC devices. Signed-off-by: Jean-Jacques Hiblot --- drivers/mmc/omap_hsmmc.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c index d8f36cd1db..3ea7f4e173 100644 --- a/drivers/mmc/omap_hsmmc.c +++ b

[U-Boot] [PATCH v1 00/11] Improvements on the MMC switch

2019-06-27 Thread Jean-Jacques Hiblot
/550855605 Jean-Jacques Hiblot (11): mmc: omap_hsmmc: reset FSM for DAT and CMD lines if needed before a new command mmc: omap_hsmmc: don't fill the send_init_stream callback Revert "mmc: Add a new callback function to perform the 74 clocks cycle sequence" mmc: omap_hsmm

[U-Boot] [PATCH v1 05/11] mmc: add mmc_poll_for_busy() and change the purpose of mmc_send_status()

2019-06-27 Thread Jean-Jacques Hiblot
-off-by: Jean-Jacques Hiblot --- drivers/mmc/mmc.c | 45 ++- drivers/mmc/mmc_private.h | 9 drivers/mmc/mmc_write.c | 4 ++-- 3 files changed, 37 insertions(+), 21 deletions(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index

[U-Boot] [PATCH v1 02/11] mmc: omap_hsmmc: don't fill the send_init_stream callback

2019-06-27 Thread Jean-Jacques Hiblot
This is not required. The MMC core sends CMD0 right after the initialization and it serves the same purpose. Signed-off-by: Jean-Jacques Hiblot --- drivers/mmc/omap_hsmmc.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c index

[U-Boot] [PATCH v1 01/11] mmc: omap_hsmmc: reset FSM for DAT and CMD lines if needed before a new command

2019-06-27 Thread Jean-Jacques Hiblot
happens after a mode switch. Signed-off-by: Jean-Jacques Hiblot --- drivers/mmc/omap_hsmmc.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c index 133cdc1352..5446ca8b8d 100644 --- a/drivers/mmc/omap_hsmmc.c

Re: [U-Boot] [PATCH] mmc: Do not poll using CMD13 when changing timing

2019-06-26 Thread Jean-Jacques Hiblot
On 26/06/2019 11:50, Marek Vasut wrote: On 6/26/19 11:22 AM, Jean-Jacques Hiblot wrote: On 25/06/2019 21:47, Marek Vasut wrote: On 6/25/19 9:07 PM, Jean-Jacques Hiblot wrote: On 25/06/2019 17:53, Marek Vasut wrote: On 6/25/19 4:13 PM, Jean-Jacques Hiblot wrote: Hi Marek, On 06/02/2019 14

Re: [U-Boot] [PATCH] mmc: Do not poll using CMD13 when changing timing

2019-06-26 Thread Jean-Jacques Hiblot
On 25/06/2019 21:47, Marek Vasut wrote: On 6/25/19 9:07 PM, Jean-Jacques Hiblot wrote: On 25/06/2019 17:53, Marek Vasut wrote: On 6/25/19 4:13 PM, Jean-Jacques Hiblot wrote: Hi Marek, On 06/02/2019 14:11, Marek Vasut wrote: When using CMD6 to switch eMMC card timing from HS200/HS400 to HS

Re: [U-Boot] [PATCH PATCH v3 00/12] Add support for applications of overlays in SPL

2019-06-25 Thread Jean-Jacques Hiblot
Hi Simon, On 22/06/2019 21:09, Simon Glass wrote: Hi Jean-Jacques, On Thu, 23 May 2019 at 11:39, Jean-Jacques Hiblot wrote: The purpose of this series is to provide the SPL with ability to apply overlays for u-boot. this is only a RFC so far, to get a feedback on the approach. Our use

Re: [U-Boot] [PATCH] mmc: Do not poll using CMD13 when changing timing

2019-06-25 Thread Jean-Jacques Hiblot
On 25/06/2019 17:53, Marek Vasut wrote: On 6/25/19 4:13 PM, Jean-Jacques Hiblot wrote: Hi Marek, On 06/02/2019 14:11, Marek Vasut wrote: When using CMD6 to switch eMMC card timing from HS200/HS400 to HS/legacy, do not poll for the completion status using CMD13, but rather wait 50mS. Once

Re: [U-Boot] [PATCH] mmc: Do not poll using CMD13 when changing timing

2019-06-25 Thread Jean-Jacques Hiblot
Hi Marek, On 06/02/2019 14:11, Marek Vasut wrote: When using CMD6 to switch eMMC card timing from HS200/HS400 to HS/legacy, do not poll for the completion status using CMD13, but rather wait 50mS. Once the card receives the CMD6 and starts executing it, the bus is in undefined state until both

Re: [U-Boot] [PATCH] mmc: Avoid HS400 mode when accessing boot partitions

2019-06-18 Thread Jean-Jacques Hiblot
On 18/06/2019 07:03, Peng Fan wrote: Subject: Re: [U-Boot] [PATCH] mmc: Avoid HS400 mode when accessing boot partitions On 6/17/19 4:46 PM, Jean-Jacques Hiblot wrote: On 17/06/2019 12:34, Marek Vasut wrote: On 6/17/19 11:09 AM, Jean-Jacques Hiblot wrote: On 15/06/2019 17:15, Marek Vasut

[U-Boot] [PATCH v1] test/py: add MMC/SD block write test

2019-06-17 Thread Jean-Jacques Hiblot
Add a standalone MMC block write test. This allows direct testing of MMC access rather than relying on doing so as a side-effect of e.g. DFU or UMS testing, which may not be enabled on all platforms. Signed-off-by: Jean-Jacques Hiblot --- This patch relies on patch "cmd: mem: Add a co

Re: [U-Boot] [PATCH] mmc: Avoid HS400 mode when accessing boot partitions

2019-06-17 Thread Jean-Jacques Hiblot
On 17/06/2019 12:34, Marek Vasut wrote: On 6/17/19 11:09 AM, Jean-Jacques Hiblot wrote: On 15/06/2019 17:15, Marek Vasut wrote: On 6/14/19 5:27 PM, Jean-Jacques Hiblot wrote: Marek, Faiz, On 11/06/2019 17:59, Faiz Abbas wrote: Hi Marek, On 11/06/19 3:34 PM, Marek Vasut wrote: On 6/11/19

Re: [U-Boot] [PATCH] mmc: Avoid HS400 mode when accessing boot partitions

2019-06-17 Thread Jean-Jacques Hiblot
On 15/06/2019 17:15, Marek Vasut wrote: On 6/14/19 5:27 PM, Jean-Jacques Hiblot wrote: Marek, Faiz, On 11/06/2019 17:59, Faiz Abbas wrote: Hi Marek, On 11/06/19 3:34 PM, Marek Vasut wrote: On 6/11/19 10:12 AM, Faiz Abbas wrote: Peng, Marek, On 11/06/19 6:47 AM, Peng Fan wrote

[U-Boot] [PATCH] cmd: mem: Add a command to fill the memory with random data

2019-06-14 Thread Jean-Jacques Hiblot
This command fills the memory with data produced by rand(). Signed-off-by: Jean-Jacques Hiblot --- cmd/Kconfig | 3 ++- cmd/mem.c | 48 2 files changed, 50 insertions(+), 1 deletion(-) diff --git a/cmd/Kconfig b/cmd/Kconfig index ea1a325eb3

Re: [U-Boot] [PATCH] mmc: Avoid HS400 mode when accessing boot partitions

2019-06-14 Thread Jean-Jacques Hiblot
Marek, Faiz, On 11/06/2019 17:59, Faiz Abbas wrote: Hi Marek, On 11/06/19 3:34 PM, Marek Vasut wrote: On 6/11/19 10:12 AM, Faiz Abbas wrote: Peng, Marek, On 11/06/19 6:47 AM, Peng Fan wrote: partitions On 6/10/19 7:59 AM, Peng Fan wrote: Subject: Re: [U-Boot] [PATCH] mmc: Avoid HS400

Re: [U-Boot] [PATCH] mmc: Avoid HS400 mode when accessing boot partitions

2019-06-11 Thread Jean-Jacques Hiblot
+ Jaehoon Hi Marek, On 10/06/2019 13:33, Marek Vasut wrote: On 6/10/19 7:59 AM, Peng Fan wrote: Subject: Re: [U-Boot] [PATCH] mmc: Avoid HS400 mode when accessing boot partitions Hi Marek, Peng, On 03/06/19 12:04 PM, Peng Fan wrote: Subject: [PATCH] mmc: Avoid HS400 mode when accessing

Re: [U-Boot] [PATCH v3] spl: add overall SPL size check

2019-05-28 Thread Jean-Jacques Hiblot
On 27/05/2019 17:15, Simon Goldschmidt wrote: Tom Rini mailto:tr...@konsulko.com>> schrieb am Mo., 27. Mai 2019, 16:54: On Mon, May 27, 2019 at 03:47:13PM +0200, Jean-Jacques Hiblot wrote: > Simon, > > > On 24/05/2019 22:10, Simon Goldschmidt wrote:

Re: [U-Boot] [PATCH v3] spl: add overall SPL size check

2019-05-27 Thread Jean-Jacques Hiblot
Simon, On 24/05/2019 22:10, Simon Goldschmidt wrote: Am 24.05.2019 um 22:07 schrieb Simon Goldschmidt: This adds a size check for SPL that can dynamically check generated SPL binaries (including devicetree) for a size limit that ensures this image plus global data, heap and stack fit in

Re: [U-Boot] [PATCHv2 2/2] SPL: Default to disabling legacy image support when using FIT

2019-05-23 Thread Jean-Jacques Hiblot
l move on to other available reviewed-by and tested-by : Jean-Jacques Hiblot Building for arm, the reduction in size is around 50 bytes JJ ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH] board: am335x/mux: configure the pins for 8-bit data transfer on MMC1

2019-05-23 Thread Jean-Jacques Hiblot
This is required for proper operation of the 8-bit data transfers. This fixes transient errors seen on BeagleBone Black. Signed-off-by: Jean-Jacques Hiblot --- board/ti/am335x/mux.c | 4 1 file changed, 4 insertions(+) diff --git a/board/ti/am335x/mux.c b/board/ti/am335x/mux.c index

[U-Boot] [PATCH PATCH v3 00/12] Add support for applications of overlays in SPL

2019-05-23 Thread Jean-Jacques Hiblot
dtso files and use .dts extension for the overlays - add dynamic allocation usage in a separate patch - defconfig change for the am335x_evm Jean-Jacques Hiblot (11): spl: fit: Make room in the FDT before applying overlays spl: fit: allocate a temporary buffer to load the overlays spl: fit: D

[U-Boot] [PATCH PATCH v3 07/12] Makefile: Fix tests for CONFIG_SPL_LOAD_FIT and CONFIG_SPL_FIT_GENERATOR

2019-05-23 Thread Jean-Jacques Hiblot
The current tests do to handle well the cases where those variables are not defined. When CONFIG_SPL_LOAD_FIT is not defined, U_BOOT_ITS gets defined as an empty string. Fixing it by using intermediate variables with the quotes removed Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None

[U-Boot] [PATCH PATCH v3 06/12] Makefile.lib: include /__symbols__ in dtb if SPL_LOAD_FIT_APPLY_OVERLAY is enabled

2019-05-23 Thread Jean-Jacques Hiblot
In order to apply an overlay to a DTB. The DTB must have been generated with the option '-@'. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2: None scripts/Makefile.lib | 4 1 file changed, 4 insertions(+) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib

[U-Boot] [PATCH PATCH v3 09/12] Makefile: Pass the board name to the FIT generator scripts

2019-05-23 Thread Jean-Jacques Hiblot
Currently the FIT generator scripts are passed only a list of dtbs. However some platforms may also require information about the board itself. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2: None Makefile | 2 +- arch/arm/mach-imx

[U-Boot] [PATCH PATCH v3 10/12] Makefile: Query the SPL Fit Generator for its dependencies

2019-05-23 Thread Jean-Jacques Hiblot
To reduce the complexity of the Makefile, let the generator tell what its dependencies are. For this purpose use the "--deps" option. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2: None Makefile | 9 ++--- arch/ar

[U-Boot] [PATCH PATCH v3 05/12] spl: fit: be more verbose when an error occurs when applying the overlays

2019-05-23 Thread Jean-Jacques Hiblot
and at least show which overlay is failing. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2: None common/spl/spl_fit.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/common/spl/spl_fit.c b/common/spl/spl_fit.c index d5e3858ed0..d772f2db64

[U-Boot] [PATCH PATCH v3 08/12] Makefile: Fix u-boot.itb generation when building outside the source tree

2019-05-23 Thread Jean-Jacques Hiblot
of the source directory. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2: None Makefile| 5 +++-- board/theobroma-systems/lion_rk3368/fit_spl_atf.its | 6 +++--- board/theobroma-systems/puma_rk3399/fit_spl_atf.its | 8 3

[U-Boot] [PATCH PATCH v3 11/12] spl: fit: constify the output parameter of spl_fit_get_image_name()

2019-05-23 Thread Jean-Jacques Hiblot
There is no need for it to be non-constant. Making it constant, allows to return constant string without warning. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2: None common/spl/spl_fit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[U-Boot] [PATCH PATCH v3 12/12] spl: fit: Allow the board to tell if more images must be loaded from FIT

2019-05-23 Thread Jean-Jacques Hiblot
a hand few of images. To address this problem, give the board-level code the opportunity to add to the list of images. The images from the FIT property are loaded first, and then the board_fit_get_additionnal_images() is called to get more image names. Signed-off-by: Jean-Jacques Hiblot

[U-Boot] [PATCH PATCH v3 02/12] spl: fit: Make room in the FDT before applying overlays

2019-05-23 Thread Jean-Jacques Hiblot
on the loadables. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2: None common/spl/spl_fit.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/common/spl/spl_fit.c b/common/spl/spl_fit.c index 3fbcb969f8..c1c982f002 100644 --- a/common/spl

[U-Boot] [PATCH PATCH v3 03/12] spl: fit: allocate a temporary buffer to load the overlays

2019-05-23 Thread Jean-Jacques Hiblot
If the node describing an overlay does not specify a load address, it will be loaded at the address previously used. Fixing it by allocating a temporary 64kB region that will be used as a default load address. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2: None

[U-Boot] [PATCH PATCH v3 04/12] spl: fit: Do not fail immediately if an overlay is not available

2019-05-23 Thread Jean-Jacques Hiblot
If one overlay that must be applied cannot be found in the FIT, the current implementation stops applying the overlays. Let's make it skip only the failing overlay instead. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2: None common/spl/spl_fit.c | 6 +- 1 file

[U-Boot] [PATCH PATCH v3 01/12] spl: fit: Add support for applying DT overlay

2019-05-23 Thread Jean-Jacques Hiblot
feature. Signed-off-by: Michal Simek Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: - Add a new config option: SPL_LOAD_FIT_APPLY_OVERLAY. By default, it is not selected. Changes in v2: None Kconfig | 10 ++ common/spl/spl_fit.c | 27 +

[U-Boot] [PATCH v2 00/18] Improvement for the DWC3 USB generic driver and fixes for the K2 platforms

2019-05-13 Thread Jean-Jacques Hiblot
- Select USB_GADGET_DUALSPEED if USB_DWC3_GADGET is selected Jean-Jacques Hiblot (18): usb: dwc3-generic: remove dm_scan_fdt_dev() from the remove() callback usb: host: remove the xhci-zynqmp driver dm: Add a No-op uclass usb: dwc3: Use UCLASS_NOP instead of UCLASS_MISC for the DWC3

[U-Boot] [PATCH v2 18/18] ARM: DTS: keystone: complete the description of the USB PHY devices

2019-05-13 Thread Jean-Jacques Hiblot
As the PHY driver now handles the transitions of USB power domain, we must add this information in the node of each PHY. Also, the phy are expected in the "phys" property, not "usb-phys". Also add the aliases for the USB ports on boards with more than a single port. Signed-

[U-Boot] [PATCH v2 11/18] usb: dwc3-generic: if no max speed is specified in DT, assume super speed

2019-05-13 Thread Jean-Jacques Hiblot
There is no need to fail if the maximum speed is not specified. If the speed is not specified, do the same as linux and assume super speed. Signed-off-by: Jean-Jacques Hiblot --- Changes in v2: None drivers/usb/dwc3/dwc3-generic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[U-Boot] [PATCH v2 14/18] ARM: keystone: increase PSC timeout

2019-05-13 Thread Jean-Jacques Hiblot
Turning off the USB clocks may take longer than 100us. Increase the timeout to 100ms. Signed-off-by: Jean-Jacques Hiblot --- Changes in v2: None arch/arm/mach-keystone/include/mach/psc_defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-keystone/include

[U-Boot] [PATCH v2 17/18] configs: k2g_evm_defconfig: disable XHCI_DWC3 and enable KEYSTONE_USB_PHY

2019-05-13 Thread Jean-Jacques Hiblot
KEYSTONE_USB_PHY is now required for proper USB operations. XHCI_DWC3 can be disabled as the xhci-dwc3 is not used anymore USB_DWC3_GADGET can also be removed, it is now selected automatically. Signed-off-by: Jean-Jacques Hiblot --- Changes in v2: None configs/k2g_evm_defconfig | 3 +-- 1

[U-Boot] [PATCH v2 13/18] usb: dwc3: Kconfig: get rid of obsolete mode selection

2019-05-13 Thread Jean-Jacques Hiblot
and keep only the USB_DWC3_GADGET option. Enable it by default if USB_GADGET and USB_DWC3 are enabled. It must be disabled for the evb-rk3328 as it uses DWC2 for the gadget and DWC3 for the host. Signed-off-by: Jean-Jacques Hiblot --- Changes in v2: Select USB_GADGET_DUALSPEED if USB_DWC3_GADGET

[U-Boot] [PATCH v2 10/18] usb: dwc3-generic: add a new host driver that uses the dwc3 core

2019-05-13 Thread Jean-Jacques Hiblot
n for this is simply that the xhci layer expects a struct xhci_ctrl at the beginning of the private data and it seemed wasteful to include it also for the peripheral case. Signed-off-by: Jean-Jacques Hiblot --- Changes in v2: None drivers/usb/dwc3/core.c | 2 +- drivers/usb/dwc3

[U-Boot] [PATCH v2 02/18] usb: host: remove the xhci-zynqmp driver

2019-05-13 Thread Jean-Jacques Hiblot
This driver is not used anymore. Signed-off-by: Jean-Jacques Hiblot --- Changes in v2: None configs/avnet_ultra96_rev1_defconfig | 1 - .../xilinx_zynqmp_zc1751_xm015_dc1_defconfig | 1 - .../xilinx_zynqmp_zc1751_xm016_dc2_defconfig | 1

[U-Boot] [PATCH v2 06/18] usb: xhci: move xhci.h to include usb

2019-05-13 Thread Jean-Jacques Hiblot
The xhci.h header file is currently located under drivers/usb/xhci Move it to the include/usb folder to make it available to drivers that are not under drivers/usb/xhci Signed-off-by: Jean-Jacques Hiblot --- Changes in v2: None MAINTAINERS | 1 + drivers/usb/host

[U-Boot] [PATCH v2 16/18] phy: keystone-usb: handle the transition of the USB power domain

2019-05-13 Thread Jean-Jacques Hiblot
the required on/off sequence. Signed-off-by: Jean-Jacques Hiblot --- Changes in v2: None drivers/phy/keystone-usb-phy.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/phy/keystone-usb-phy.c b/drivers/phy/keystone-usb-phy.c index e8146cabfa..14ac62 100644

[U-Boot] [PATCH v2 15/18] ARM: keystone: Do not enable the USB power domains at the board level

2019-05-13 Thread Jean-Jacques Hiblot
This breaks linux boot sequence. Observed on k2e and k2l platforms. Signed-off-by: Jean-Jacques Hiblot --- Changes in v2: None board/ti/ks2_evm/board.c | 13 - 1 file changed, 13 deletions(-) diff --git a/board/ti/ks2_evm/board.c b/board/ti/ks2_evm/board.c index eed62e9cac

[U-Boot] [PATCH v2 09/18] usb: dwc3-generic: factorize code

2019-05-13 Thread Jean-Jacques Hiblot
Factor code for re-usability. This is another step toward adding host support. Signed-off-by: Jean-Jacques Hiblot --- Changes in v2: None drivers/usb/dwc3/dwc3-generic.c | 55 + 1 file changed, 35 insertions(+), 20 deletions(-) diff --git a/drivers/usb/dwc3

[U-Boot] [PATCH v2 08/18] usb: dwc3-generic: use platdata

2019-05-13 Thread Jean-Jacques Hiblot
Separate platform data from the private data. This is one step toward adding host support. Signed-off-by: Jean-Jacques Hiblot --- Changes in v2: None drivers/usb/dwc3/dwc3-generic.c | 37 - 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/drivers

[U-Boot] [PATCH v2 12/18] usb: dwc3: Add dwc3_of_parse() to get quirks information from DT

2019-05-13 Thread Jean-Jacques Hiblot
c5ac6116db35d. Signed-off-by: Jean-Jacques Hiblot --- Changes in v2: - Update commit log drivers/usb/dwc3/core.c | 65 + drivers/usb/dwc3/core.h | 1 + drivers/usb/dwc3/dwc3-generic.c | 6 ++- 3 files changed, 71 insertions(+), 1 deletion

[U-Boot] [PATCH v2 04/18] usb: dwc3: Use UCLASS_NOP instead of UCLASS_MISC for the DWC3 generic glue

2019-05-13 Thread Jean-Jacques Hiblot
dwc3-generic has been broken since MISC uclass has been modified to scan DT sub-nodes after bind. Fixing it by a using the no-op uclass. Signed-off-by: Jean-Jacques Hiblot --- Changes in v2: None drivers/usb/dwc3/dwc3-generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v2 05/18] usb: dwc3: switch to peripheral mode when exiting

2019-05-13 Thread Jean-Jacques Hiblot
This allow the phy to enter idle and then suspend. the K2 platforms require the PHY to be suspended before the USB domain clock can be turned off. Signed-off-by: Jean-Jacques Hiblot --- Changes in v2: None drivers/usb/dwc3/core.c | 13 + 1 file changed, 13 insertions(+) diff

[U-Boot] [PATCH v2 07/18] usb: dwc3: always use the inlined version of dwc3_host_init/dwc3_host_exit

2019-05-13 Thread Jean-Jacques Hiblot
No one is actually implementing those functions. We could remove calls to these altogether, but it does not really hurt to keep the empty inlined version at the moment and it satisfies a symmetry with the gadget mode. Signed-off-by: Jean-Jacques Hiblot --- Changes in v2: None drivers/usb/dwc3

[U-Boot] [PATCH v2 03/18] dm: Add a No-op uclass

2019-05-13 Thread Jean-Jacques Hiblot
child devices (1 for device and 1 for host) but bind only one at a any given time. Signed-off-by: Jean-Jacques Hiblot --- Changes in v2: Add a test for the NOP uclass arch/sandbox/dts/test.dts | 12 +++ drivers/core/uclass.c | 5 +++ include/dm/uclass-id.h| 1 + test/dm/Makefile

[U-Boot] [PATCH v2 01/18] usb: dwc3-generic: remove dm_scan_fdt_dev() from the remove() callback

2019-05-13 Thread Jean-Jacques Hiblot
There is simply no reason to do that here. Signed-off-by: Jean-Jacques Hiblot --- Changes in v2: None drivers/usb/dwc3/dwc3-generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/dwc3-generic.c b/drivers/usb/dwc3/dwc3-generic.c index 3e6c494dc6

Re: [U-Boot] [PATCH v1 03/18] dm: Add a No-op uclass

2019-05-13 Thread Jean-Jacques Hiblot
Hi Simon, On 07/05/2019 05:52, Simon Glass wrote: Hi Jean-Jacques, On Fri, 5 Apr 2019 at 06:56, Jean-Jacques Hiblot wrote: This uclass is intended for devices that do not need any features from the uclass, including binding children. This will typically be used by devices that are used

Re: [U-Boot] DM for ci_udc

2019-05-07 Thread Jean-Jacques Hiblot
the already in-tree pattern. Jean-Jacques Hiblot (CC'ed) did a great job on porting / developing this code (moreover there is a u-boot command - bind/unbind which allows binding usb devices) In this UDCcase the bind/unbind commands are used only to bind the UDC ethernet (usbether). Other operations

Re: [U-Boot] [PATCH v1 00/18] Improvement for the DWC3 USB generic driver and fixes for the K2 platforms

2019-05-03 Thread Jean-Jacques Hiblot
On 29/04/2019 11:52, Marek Vasut wrote: On 4/29/19 11:09 AM, Jean-Jacques Hiblot wrote: Marek, This series fixes the linux boot on the K2 platforms. without it the K2 platforms are broken. Can you give it a look please ? Sure, can you rebase/repost please ? I don't have it in my mailbox

<    1   2   3   4   5   6   7   8   9   10   >