Enable DM_USB and DM_USB_GADGET for this platform. Also enable RNDIS boot
support (SPL load u-boot over USB RNDIS).
This is an example of how to use DM_USB on a am335x-based board.
A subsequent series will take this a step further and modify more
defconfigs.
Signed-off-by: Jean-Jacques Hiblot
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 xhc
instead of CONFIG_DM_USB_GADGET
- use CONFIG_SPL_DM_USB and CONFIG_SPL_DM_USB_GADGET
- don't fail to bind "ti-musb-wrapper" if it is not possible to bind
either the host or the gadget driver.
- simplify #ifdef trickery thanks to the new SPL_DM_USB option
Jean-Jacques Hiblot (14):
spl: drivers: L
vulder
Thank you for testing
On 11/29/18 10:52 AM, Jean-Jacques Hiblot wrote:
This series aims at bringing improvements to the dwc3_generic driver so
that it can be used by most of the platforms using the dwc3 controller.
I tested this on with DRA7 and AM57x platforms for both Peripheral and
() cannot be used.
Signed-off-by: Jean-Jacques Hiblot
Reviewed-by: Simon Glass
---
Changes in v3: None
Changes in v2:
- don't use the DT to find the req_seq number if SPL_OF_PLATDATA is used.
Instead do it as if SPL_OF_CONTROL is not defined.
drivers/core/device.c
Those platforms need CONFIG_SPL_DM_SEQ_ALIAS because they enable both
DM_I2C and SPL_DM. Without CONFIG_SPL_DM_SEQ_ALIAS, it is not possible to
get the I2C bus with i2c_get_chip_for_busnum().
Signed-off-by: Jean-Jacques Hiblot
Reviewed-by: Felix Brack
Tested-by: Felix Brack
---
Changes in v3
This allows the driver to be used without OF_CONTROL.
AM335x support DM_SPL but does not use SPL_OF_CONTROL. Enabling DM_I2C in
SPL thus requires that the omap I2C can be passed platdata.
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v3: None
Changes in v2: None
arch/arm/include/asm/arch
i2c_get_chip_for_busnum() really should check the presence of the chip on
the bus. Most of the users of this function assume that this is done.
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v3:
- removed commit introducing dm_i2c_probe_device(). Instead probe the
presence of the chip on
-off-by: Andreas Dannenberg
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v3: None
Changes in v2: None
arch/arm/include/asm/arch-am33xx/i2c.h | 45
arch/arm/include/asm/arch-omap3/i2c.h | 47
arch/arm/include/asm/arch-omap4/i2c.h | 45
arch/arm/include/asm/arch-omap5/i2c.h
The implementation of the EEPROM commands does not support the DM I2C API.
Prevent compilation breakage by not enabling it if the non-DM API is not
available (if DM_I2C is used without DM_I2C_COMPAT)
Signed-off-by: Jean-Jacques Hiblot
Reviewed-by: Simon Glass
---
Changes in v3: None
Changes
If DM_I2C is used , the I2C controllers must be registered as U_BOOT_DEVICE
because OF_CONTROL is not used in the SPL.
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v3: None
Changes in v2: None
arch/arm/mach-omap2/am33xx/board.c | 15 +++
1 file changed, 15 insertions(+)
diff
am335x evms and am335x boneblack vboot)
- twl4030 (used by omap3_logicpd)
- tps65217 (used by brppt1)
- twl6030
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v3: None
Changes in v2:
- Also add DM_I2C support to the twl6030 driver
drivers/power/palmas.c | 39
To reset the DM after a new dtb is loaded, we need to call dm_uninit()
and then dm_init(). This fails however because gd->dm_root is not nullified
by dm_uninit().
Fixing it by setting gd->dm_root in dm_uninit().
Signed-off-by: Jean-Jacques Hiblot
Reviewed-by: Simon Glass
---
Changes
Remove the last call to the non-DM I2C API.
Also remove the #undef CONFIG_DM_I2C_COMPAT because it is not defined
in the common header file anymore.
Signed-off-by: Jean-Jacques Hiblot
Reviewed-by: Felix Brack
Tested-by: Felix Brack
---
Changes in v3: None
Changes in v2:
- remove the
h buildman:
buildman -dle am33xx ti omap3 omap4 omap5 davinci keystone
boot tested with:
am335x_evm, am335x_boneblack, am335x_boneblack_vboot (DM version),
am57xx_evm, dra7xx_evm, k2g_evm, am437x_evm
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v3: None
Changes in v2:
- Fixed warning in power_
include the support for device removal
in the SPL.
Signed-off-by: Jean-Jacques Hiblot
Reviewed-by: Simon Glass
Seeries-changes:3
- update commit message
---
Changes in v3: None
Changes in v2: None
drivers/core/Kconfig | 12 ++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff
detection is a new dtb would better match the platform.
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v3: None
Changes in v2: None
arch/arm/mach-omap2/hwinit-common.c | 20
configs/dra7xx_evm_defconfig| 2 ++
2 files changed, 22 insertions(+)
diff --git a/arch/arm
am57xx configs uses DM_I2C both in SPL and u-boot.
Remove code for non-DM I2C support.
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v3: None
Changes in v2: None
board/ti/am57xx/board.c | 36 +++-
1 file changed, 3 insertions(+), 33 deletions(-)
diff --git
Signed-off-by: Jean-Jacques Hiblot
Reviewed-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
arch/arm/dts/am437x-gp-evm-u-boot.dtsi | 4
arch/arm/dts/omap5-u-boot.dtsi | 4
2 files changed, 8 insertions(+)
diff --git a/arch/arm/dts/am437x-gp-evm-u-boot.dtsi
b
In order to use DM_I2C, we need to move the board detection after the
early SPL initialization.
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v3: None
Changes in v2: None
arch/arm/mach-omap2/am33xx/board.c | 9 ++---
arch/arm/mach-omap2/hwinit-common.c | 5 ++---
2 files changed, 8
On 06/12/2018 19:40, Adam Ford wrote:
On Tue, Nov 27, 2018 at 11:04 PM Heiko Schocher wrote:
Hello Adam,
Am 26.11.2018 um 20:18 schrieb Adam Ford:
On Sat, Oct 27, 2018 at 4:46 PM Adam Ford wrote:
On Mon, Oct 22, 2018 at 9:13 AM Jean-Jacques Hiblot wrote:
This series remove the usage of
Allow DM I2C without CONFIG_DM_I2C_COMPAT
Jean-Jacques Hiblot (17):
cmd: Kconfig: Do not include EEPROM if DM_I2C is used without
DM_I2C_COMPAT
dm: i2c: Make i2c_get_chip_for_busnum() fail if the chip is not
detected
dm: device: Allow using uclass_find_device_by_seq() without OF_CO
before the I2C is initialized and only then the final dtb can be
selected.
To speed up the process and reduce memory usage, introduce a new function
fdtdec_setup_best_match() that re-use the DTBs loaded in memory by
fdtdec_setup() to select the best match.
Signed-off-by: Jean-Jacques Hiblot
initialize the DRAM.
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v3: None
Changes in v2: None
configs/dra7xx_evm_defconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configs/dra7xx_evm_defconfig b/configs/dra7xx_evm_defconfig
index 27f6b5d..a57dc07 100644
--- a/configs
CONFIG_DM_I2C_COMPAT
go ahead and add an I2C handling implementation that directly uses the
I2C DM functionality.
Signed-off-by: Andreas Dannenberg
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v3: None
Changes in v2: None
board/ti/common/board_detect.c | 54
pends on SPL_DM && DM_USB
default y
source "drivers/usb/host/Kconfig"
Reviewed-by: Jean-Jacques Hiblot
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot
On 11/12/2018 05:41, Heiko Schocher wrote:
Hello Stephen,
Am 10.12.2018 um 19:23 schrieb Stephen Warren:
The following commit:
dm: i2c: Make i2c_get_chip_for_busnum() fail if the chip is not
detected
i2c_get_chip_for_busnum() really should check the presence of
the chip on
the bus.
like his A-B/R-B.
Looks good to me, so I'll pick it once I have it, thanks!
This is good to see some code removal
Thanks
Reviewed-by: Jean-Jacques Hiblot
diff --git a/drivers/usb/musb/Kconfig b/drivers/usb/musb/Kconfig
index 7e6be03f4a..2508b6ed0d 100644
--- a/drivers/usb/musb/Kconf
862..7620114bec 100644
--- a/drivers/usb/musb/musb_udc.c
+++ b/drivers/usb/musb/musb_udc.c
@@ -46,8 +46,6 @@
#include "omap3.h"
#elif defined(CONFIG_USB_AM35X)
#include "am35x.h"
-#elif defined(CONFIG_USB_DAVINCI)
-#include "davinci.h"
#endif
/
On 11/12/2018 10:47, Jean-Jacques Hiblot wrote:
On 10/12/2018 20:01, Marek Vasut wrote:
On 12/10/2018 05:35 PM, Adam Ford wrote:
There don't appear to be any boards enabling CONFIG_USB_DA8XX,
and there is a newer version of the MUSB driver, so let's remove
the legacy version of i
On 11/12/2018 10:49, Jean-Jacques Hiblot wrote:
On 10/12/2018 17:00, Adam Ford wrote:
This patch removes CONFIG_USB_DAVINCI. It's a legacy option
that isn't defined anywhere, and there is a newer MUSB driver.
Signed-off-by: Adam Ford
diff --git a/drivers/usb/musb/Kconfig b/driver
Hi Tom,
Is there such a policy described somewhere ?
There are quite a pieces of code that are not used/compiled because no
config enables it.
A random pick among many others:
- CONFIG_FPGA_LATTICE
- CONFIG_MESON_SPIFC
- CONFIG_POWER_BATTERY_TRATS2
- CONFIG_UPDATE_TFTP
JJ
_
On 11/12/2018 16:25, Jean-Jacques Hiblot wrote:
Hi Tom,
Is there such a policy described somewhere ?
There are quite a pieces of code that are not used/compiled because no
config enables it.
A random pick among many others:
- CONFIG_FPGA_LATTICE
- CONFIG_MESON_SPIFC
On 11/12/2018 17:35, Tom Rini wrote:
On Tue, Dec 11, 2018 at 04:46:01PM +0100, Jean-Jacques Hiblot wrote:
On 11/12/2018 16:25, Jean-Jacques Hiblot wrote:
Hi Tom,
Is there such a policy described somewhere ?
There are quite a pieces of code that are not used/compiled because no
config
On 11/12/2018 18:10, Stephen Warren wrote:
On 12/11/18 2:44 AM, Jean-Jacques Hiblot wrote:
On 11/12/2018 05:41, Heiko Schocher wrote:
Hello Stephen,
Am 10.12.2018 um 19:23 schrieb Stephen Warren:
The following commit:
dm: i2c: Make i2c_get_chip_for_busnum() fail if the chip is not
On 11/12/2018 19:22, Stephen Warren wrote:
On 12/11/18 11:12 AM, Stephen Warren wrote:
On 12/11/18 10:41 AM, Jean-Jacques Hiblot wrote:
On 11/12/2018 18:10, Stephen Warren wrote:
On 12/11/18 2:44 AM, Jean-Jacques Hiblot wrote:
On 11/12/2018 05:41, Heiko Schocher wrote:
Hello Stephen,
Am
e regression by providing a dummy implementation of probe_chip()
that does nothing.
Signed-off-by: Jean-Jacques Hiblot
Tested-by: Stephen Warren
---
drivers/i2c/tegra186_bpmp_i2c.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/drivers/i2c/tegra186_bpmp_i2c.c b/drivers/i2c/tegra186_b
Tom, Rick,
On 11/12/2018 19:17, Tom Rini wrote:
On Tue, Dec 11, 2018 at 06:01:23PM +0100, Jean-Jacques Hiblot wrote:
On 11/12/2018 17:35, Tom Rini wrote:
On Tue, Dec 11, 2018 at 04:46:01PM +0100, Jean-Jacques Hiblot wrote:
On 11/12/2018 16:25, Jean-Jacques Hiblot wrote:
Hi Tom,
Is there
On 12/12/2018 14:55, Adam Ford wrote:
On Tue, Dec 11, 2018 at 3:51 AM Jean-Jacques Hiblot wrote:
On 11/12/2018 10:47, Jean-Jacques Hiblot wrote:
On 10/12/2018 20:01, Marek Vasut wrote:
On 12/10/2018 05:35 PM, Adam Ford wrote:
There don't appear to be any boards enabling CONFIG_USB_
dd an option to build a fuller database
of options').
- subtract set#2 from set#1
JJ
From: Jean-Jacques Hiblot
Date: Wed, 12 Dec 2018 16:15:21 +0100
Subject: [PATCH] simple tool to find unused options
Signed-off-by: Jean-Jacques Hiblot
---
tools/find_unused_config_optio
On 05/12/2018 13:57, Marek Vasut wrote:
On 12/05/2018 01:49 PM, Stefan Mavrodiev wrote:
When the device is in peripheral mode
Can you have two devices, one in peripheral mode and one in host mode,
on the same system ?
It is possible with the musb-new. Using DM_USB and DM_USB_GADGET, I did
i
On 13/12/2018 15:05, Marek Vasut wrote:
On 12/13/2018 03:03 PM, Jean-Jacques Hiblot wrote:
On 05/12/2018 13:57, Marek Vasut wrote:
On 12/05/2018 01:49 PM, Stefan Mavrodiev wrote:
When the device is in peripheral mode
Can you have two devices, one in peripheral mode and one in host mode,
on
On 12/12/2018 21:52, Sam Protsenko wrote:
Hi Jean-Jacques,
After commit aec0081093e7 ("configs: am57xx_evm: Enable DM_USB and
DM_USB_DEV") I noticed that "fastboot 1" command doesn't work anymore
on BeagleBoard X15. Instead, "fastboot 0" works.
I can see that this happens because in dwc3_glue_
DT to get the port
index right.
Tested on:
- dra76 evm
- am572 evm
Jean-Jacques Hiblot (2):
dm: usb: udc: Use SEQ_ALIAS to index the USB gadget ports
ARM: dts: define USB aliases for all omap5 platforms
arch/arm/dts/omap5-u-boot.dtsi | 5 +
drivers/usb/gadget/udc/udc-uclass.c | 5
must set the DM_UC_FLAG_SEQ_ALIAS flag and follow the existing
naming convention: use "usb" for the name of the gadget UCLASS_DRIVER
(same as for the UCLASS_USB).
If no alias is provided, then the index falls back to the order in which
the bindings took place.
Signed-off-by: Jean-Jacq
This allows us to properly map the USB controller indexes
Tested on dra76 evm, am572 evm
Signed-off-by: Jean-Jacques Hiblot
---
arch/arm/dts/omap5-u-boot.dtsi | 5 +
1 file changed, 5 insertions(+)
diff --git a/arch/arm/dts/omap5-u-boot.dtsi b/arch/arm/dts/omap5-u-boot.dtsi
index
ke a false positive to me.
It can be fixed by assigning an initialization value to ret.
Does that require a v4 ?
JJ
Best regards,
Eugeniu.
On Wed, Aug 8, 2018 at 8:36 AM Michal Simek wrote:
Hi Lukasz,
On 22.6.2018 14:25, Jean-Jacques Hiblot wrote:
This series implements 2 fixes to be able
On 08/08/2018 15:08, Eugeniu Rosca wrote:
On Wed, Aug 8, 2018 at 1:36 PM Jean-Jacques Hiblot wrote:
Hi all,
On 08/08/2018 11:17, Eugeniu Rosca wrote:
Hello,
FWIW, patch "[7/7] cmd: Add bind/unbind commands to bind a device to a
driver from the command line" contributes with
ing uclass_priv->state
Signed-off-by: Jean-Jacques Hiblot
Acked-by: Joe Hershberger
---
Changes in v4: None
Changes in v3: None
Changes in v2: None
net/eth-uclass.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/net/eth-uclass.c b/net/eth-uclass.c
index fa3f549..91d861b
Also add device_find_global_by_ofnode() that also find a device based on
the OF node, but doesn't probe the device.
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v4: None
Changes in v3:
- new commit
Changes in v2: None
arch/arm/mach-rockchip/rk3188-board-spl.c | 2 +-
arch/arm
Command "dm tree" dumps the devices with class, driver, name information.
Add the index of the device in the class too, because the information is
useful for the bind/unbind commands.
Signed-off-by: Jean-Jacques Hiblot
Reviewed-by: Simon Glass
---
Changes in v4: None
Changes in v3
Also add a 'drv' parameter to filter the children to remove/unbind.
Exporting those functions is a preparatory work for the addition of the
bind/unbind commands.
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v4: None
Changes in v3:
- new
Changes in v2: None
drivers/core/devic
This function is the reciprocal of uclass_find_device().
It will be used to print the index information in dm tree dump.
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v4: None
Changes in v3:
- update commit log
- fixed problem with the function name
Changes in v2: None
drivers/core
Add an entry in usb_gadget_controller_number() for the DWC3 gadget
controller. Without it, it is not possible to bind the USB Ethernet driver.
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v4: None
Changes in v3: None
Changes in v2: None
drivers/usb/gadget/gadget_chips.h | 2 ++
1 file
On 08/08/2018 18:54, Tom Rini wrote:
On Wed, Aug 08, 2018 at 06:44:07PM +0200, Eugeniu Rosca wrote:
On Wed, Aug 8, 2018 at 6:18 PM Jean-Jacques Hiblot wrote:
On 08/08/2018 15:08, Eugeniu Rosca wrote:
[snip]
I think having a warning-free build is a basic policy everybody is
expected to
bitsream is
fetched from a mass storage or ethernet)
usage example:
bind usb_dev_generic 0 usb_ether
unbind usb_dev_generic 0 usb_ether
or
unbind eth 1
bind /ocp/omap_dwc3@4838/usb@4839 usb_ether
unbind /ocp/omap_dwc3@4838/usb@4839
Signed-off-by: Jean-Jacques Hiblot
---
Changes in
ce.
- Update the API to be able to bind/unbind based on DTS node path
- Add a Kconfig option to select the bind/unbind commands
Jean-Jacques Hiblot (7):
usb: gadget: Add bcdDevice for the DWC3 USB Gadget Controller
net: eth-uclass: Fix for DM USB ethernet support
uclass: Add dev_get_uclas
not specific to usb device.
- Update the API to be able to bind/unbind based on DTS node path
- Add a Kconfig option to select the bind/unbind commands
Jean-Jacques Hiblot (7):
usb: gadget: Add bcdDevice for the DWC3 USB Gadget Controller
net: eth-uclass: Fix for DM USB ethernet su
The driver will be probed when usb_gadget_initialize() is called.
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v2: None
drivers/usb/dwc3/dwc3-generic.c | 7 ---
1 file changed, 7 deletions(-)
diff --git a/drivers/usb/dwc3/dwc3-generic.c b/drivers/usb/dwc3/dwc3-generic.c
index
Add 2 functions to wrap the calls to board_usb_init() and
board_usb_cleanup().
This is a preparatory work for DM support for UDC drivers (DM_USB_DEV).
Signed-off-by: Jean-Jacques Hiblot
Reviewed-by: Lukasz Majewski
---
Changes in v2:
- Updated commit log
- Fixed typo in thordown.c
cmd
Using CONFIG_DM_USB for this purpose prevents using DM_USB for host and not
for device.
Signed-off-by: Jean-Jacques Hiblot
Reviewed-by: Lukasz Majewski
---
Changes in v2:
- select DM_USB_DEV by default for zynqmp platforms
arch/arm/Kconfig| 2 ++
drivers/usb/Kconfig
This make the driver more generic. At this point this driver can replace
the dwc3-of-simple implementation.
Make the description in the Kconfig more generic too.
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v2: None
drivers/usb/dwc3/Kconfig| 7 +-
drivers/usb/dwc3/dwc3
Those operations can be used for peripheral operation as well as host
operation.
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v2: None
drivers/usb/dwc3/core.c | 88 -
drivers/usb/dwc3/ep0.c | 1 -
drivers/usb/host/xhci-dwc3.c | 93
andle the PHYs is
shared with the host side
- handles clock and reset
- bind host controller to the more generic driver 'xhci-dwc3'
Changes in v2:
- Updated commit log
- Fixed typo in thordown.c
- select DM_USB_DEV by default for zynqmp platforms
Jean-Jacques Hiblot (7):
usb: gadget: D
When DM_USB_DEV the platform code for the USB device must be replaced by
calls to a USB device driver.
usb_gadget_initialize() probes the USB device driver.
usb_gadget_release() removes the USB device driver.
Signed-off-by: Jean-Jacques Hiblot
Reviewed-by: Lukasz Majewski
---
Changes in v2
The select_dr_mode operation is executed when the glue driver is probed.
The role of this optional function is to configure the operating mode
of the controller at the glue level.
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v2: None
drivers/usb/dwc3/dwc3-generic.c | 26
From: Vignesh R
Add support to handle USB3 PHYs present on AM57xx/DRA7xx SoCs. This is
needed to move AM57xx to DM_USB.
Signed-off-by: Vignesh R
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v7: None
Changes in v6:
- ti-pipe3-phy: take PLL out of IDLE in pipe3_init(). The PLL may have
This drivers supports the USB2 PHY found on omap5 and dra7 SOCs.
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v7: None
Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2:
- omap-usb2-phy: Implement power_on and power_off callbacks
drivers/phy
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v7: None
Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None
drivers/usb/dwc3/dwc3-generic.c | 85 +
1 file changed, 85 insertions(+)
diff --git a/drivers
This is required when DM_USB is used, to bind the USB phys.
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v7: None
Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2:
- split dts changes in 2 commits: one for binding the children of
ocp2scp
Enable DM_USB and DM_USB_DEV for AM57xx based boards.
Signed-off-by: Vignesh R
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v7:
- Fixed build issue "multiple definition of `usb_gadget_handle_interrupts'"
Changes in v6:
- AM57 configs: enable DM_USB and DM_USB_DEV. Use
From: Vignesh R
Enable USB clocks in late init stage to support ports under DM_USB.
Signed-off-by: Vignesh R
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v7: None
Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2:
- am57xx boards: when DM_USB
For USB ports that use the Driver Model, turn on the clocks during the
late init stage.
Signed-off-by: Jean-Jacques Hiblot
Reviewed-by: Tom Rini
---
Changes in v7: None
Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None
board/ti/dra7xx/evm.c
cks
- am57xx boards: when DM_USB is used, turn on the required USB clocks
- split dts changes in 2 commits: one for binding the children of
ocp2scp@4a08, and one to disable USB1 on all DRA7 EVMs
- Enable DM_USB in am57xx_evm_defconfig. USB3 (super speed) is supported.
Jean-Jacques Hiblot (9
syscon_regmap_lookup_by_phandle() can be used to get the regmap of a syscon
device from a reference in the DTS. It operates similarly to the linux
version of the namesake function.
Signed-off-by: Jean-Jacques Hiblot
Reviewed-by: Simon Glass
---
Changes in v7:
- replace remaining if
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v7:
- Fix build issue "multiple definition of `usb_gadget_handle_interrupts'"
Changes in v6:
- DRA7 configs: enable DM_USB and DM_USB_DEV. Use DWC3_GENERIC in place of
DWC3_OF_SIMPLE. disable non DM USB options
Changes in v5:
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v7: None
Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None
board/ti/dra7xx/evm.c | 105 --
1 file changed, 105 deletions(-)
diff --git a/board/ti
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v7: None
Changes in v6:
- Supports DM USB for peripherals
- Removed DTS changes that disabled USB1 on DRA7 because DM_USB_DEV is
now supported
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None
board/ti/am57xx
Hi Adam,
On 05/09/2018 11:35, Adam Ford wrote:
With the omap_mmc driver no longer supporting cd-inverted, this
patch removes all these references since they are not needed.
Signed-off-by: Adam Ford
diff --git a/arch/arm/dts/am3517-evm-u-boot.dtsi
b/arch/arm/dts/am3517-evm-u-boot.dtsi
index
Adam,
On 05/09/2018 11:35, Adam Ford wrote:
The gpio driver doesn't current support knowing whether or not
GPIO is active low or high. It simply returns the value. The
side effect of this, is that the MMC routines which check
the status card detect or write protect must use a u-boot specific
Adam,
On 05/09/2018 11:35, Adam Ford wrote:
With omap_gpio now translating GPIO_ACTIVE_LOW, any boards
using the 'invert' option will no longer need to do this. This
patch removes the support for 'invert' from the MMC driver.
Signed-off-by: Adam Ford
diff --git a/drivers/mmc/omap_hsmmc.c b/
On 28/05/2018 10:35, Michal Simek wrote:
On 25.5.2018 11:32, Jean-Jacques Hiblot wrote:
Add 2 functions to wrap the calls to board_usb_init() and
board_usb_cleanup().
Here should be written why you need this change.
M
I'll update the commit log.
It's a preparatory work for DM s
On 28/05/2018 10:37, Michal Simek wrote:
On 25.5.2018 11:32, Jean-Jacques Hiblot wrote:
Using CONFIG_DM_USB for this purpose prevents using DM_USB for host and not
for device.
Signed-off-by: Jean-Jacques Hiblot
---
drivers/usb/Kconfig | 6 ++
drivers/usb/dwc3/core.c
On 28/05/2018 12:25, Michal Simek wrote:
Hi,
On 28.5.2018 11:47, Jean-Jacques Hiblot wrote:
Hi Michal
On 28/05/2018 10:32, Michal Simek wrote:
Hi Jean,
On 25.5.2018 11:32, Jean-Jacques Hiblot wrote:
This series aims at bringing improvements to the dwc3_generic driver so
that it can be
Add 2 functions to wrap the calls to board_usb_init() and
board_usb_cleanup().
This is a preparatory work for DM support for UDC drivers (DM_USB_DEV).
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v2:
- Updated commit log
- Fixed typo in thordown.c
cmd/fastboot.c | 4
When DM_USB_DEV the platform code for the USB device must be replaced by
calls to a USB device driver.
usb_gadget_initialize() probes the USB device driver.
usb_gadget_release() removes the USB device driver.
Signed-off-by: Jean-Jacques Hiblot
Reviewed-by: Lukasz Majewski
---
Changes in v2
bind host controller to the more generic driver 'xhci-dwc3'
Changes in v2:
- Updated commit log
- Fixed typo in thordown.c
- select DM_USB_DEV by default for zynqmp platforms
Jean-Jacques Hiblot (7):
usb: gadget: Do not call board_usb_xxx() directly in USB gadget
drivers
us
The driver will be probed when usb_gadget_initialize() is called.
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v2: None
drivers/usb/dwc3/dwc3-generic.c | 7 ---
1 file changed, 7 deletions(-)
diff --git a/drivers/usb/dwc3/dwc3-generic.c b/drivers/usb/dwc3/dwc3-generic.c
index
Using CONFIG_DM_USB for this purpose prevents using DM_USB for host and not
for device.
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v2:
- select DM_USB_DEV by default for zynqmp platforms
arch/arm/Kconfig| 2 ++
drivers/usb/Kconfig | 6 ++
drivers/usb
This make the driver more generic. At this point this driver can replace
the dwc3-of-simple implementation.
Make the description in the Kconfig more generic too.
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v2: None
drivers/usb/dwc3/Kconfig| 7 +-
drivers/usb/dwc3/dwc3
The select_dr_mode operation is executed when the glue driver is probed.
The role of this optional function is to configure the operating mode
of the controller at the glue level.
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v2: None
drivers/usb/dwc3/dwc3-generic.c | 26
Those operations can be used for peripheral operation as well as host
operation.
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v2: None
drivers/usb/dwc3/core.c | 88 -
drivers/usb/dwc3/ep0.c | 1 -
drivers/usb/host/xhci-dwc3.c | 93
This drivers supports the USB2 PHY found on omap5 and dra7 SOCs.
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v7: None
Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2:
- omap-usb2-phy: Implement power_on and power_off callbacks
drivers/phy
From: Vignesh R
Add support to handle USB3 PHYs present on AM57xx/DRA7xx SoCs. This is
needed to move AM57xx to DM_USB.
Signed-off-by: Vignesh R
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v7: None
Changes in v6:
- ti-pipe3-phy: take PLL out of IDLE in pipe3_init(). The PLL may have
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v7:
- Fix build issue "multiple definition of `usb_gadget_handle_interrupts'"
Changes in v6:
- DRA7 configs: enable DM_USB and DM_USB_DEV. Use DWC3_GENERIC in place of
DWC3_OF_SIMPLE. disable non DM USB options
Changes in v5:
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v7: None
Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None
drivers/usb/dwc3/dwc3-generic.c | 85 +
1 file changed, 85 insertions(+)
diff --git a/drivers
This is required when DM_USB is used, to bind the USB phys.
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v7: None
Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2:
- split dts changes in 2 commits: one for binding the children of
ocp2scp
For USB ports that use the Driver Model, turn on the clocks during the
late init stage.
Signed-off-by: Jean-Jacques Hiblot
Reviewed-by: Tom Rini
---
Changes in v7: None
Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None
board/ti/dra7xx/evm.c
From: Vignesh R
Enable USB clocks in late init stage to support ports under DM_USB.
Signed-off-by: Vignesh R
Signed-off-by: Jean-Jacques Hiblot
---
Changes in v7: None
Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2:
- am57xx boards: when DM_USB
syscon_regmap_lookup_by_phandle() can be used to get the regmap of a syscon
device from a reference in the DTS. It operates similarly to the linux
version of the namesake function.
Signed-off-by: Jean-Jacques Hiblot
Reviewed-by: Simon Glass
---
Changes in v7:
- replace remaining if
101 - 200 of 1392 matches
Mail list logo