[U-Boot] [PATCH v2 14/14] configs: am335x_boneblack_vboot: enable DM_USB and RNDIS boot in SPl

2018-12-04 Thread Jean-Jacques Hiblot
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

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

2018-12-04 Thread 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

[U-Boot] [PATCH v2 00/14] Add support for DM_USB and DM_USB_DEV to TI's am335x and am43xx_evm platforms

2018-12-04 Thread Jean-Jacques Hiblot
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

Re: [U-Boot] [PATCH v4 00/10] Improvements for the dwc3_generic driver

2018-12-06 Thread Jean-Jacques Hiblot
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

[U-Boot] [RESEND PATCH v3 03/19] dm: device: Allow using uclass_find_device_by_seq() without OF_CONTROL

2018-12-07 Thread Jean-Jacques Hiblot
() 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

[U-Boot] [RESEND PATCH v3 04/19] configs: am335x: am57x: dra7x: Enable CONFIG_SPL_DM_SEQ_ALIAS

2018-12-07 Thread Jean-Jacques Hiblot
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

[U-Boot] [RESEND PATCH v3 06/19] i2c: omap24xx_i2c: Use platdata to probe the device

2018-12-07 Thread Jean-Jacques Hiblot
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

[U-Boot] [RESEND PATCH v3 02/19] dm: i2c: Make i2c_get_chip_for_busnum() fail if the chip is not detected

2018-12-07 Thread Jean-Jacques Hiblot
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

[U-Boot] [RESEND PATCH v3 05/19] i2c: omap24xx_i2c: Move away from SoC specific headers for reg offset

2018-12-07 Thread Jean-Jacques Hiblot
-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

[U-Boot] [RESEND PATCH v3 01/19] cmd: Kconfig: Do not include EEPROM if DM_I2C is used without DM_I2C_COMPAT

2018-12-07 Thread Jean-Jacques Hiblot
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

[U-Boot] [RESEND PATCH v3 07/19] am335x: Register the I2C controllers if DM_I2C is used.

2018-12-07 Thread Jean-Jacques Hiblot
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

[U-Boot] [RESEND PATCH v3 10/19] power: make most tps drivers and the twl4030 driver compatible with DM_I2C

2018-12-07 Thread Jean-Jacques Hiblot
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

[U-Boot] [RESEND PATCH v3 18/19] drivers: core: nullify gd->dm_root after dm_uninit()

2018-12-07 Thread Jean-Jacques Hiblot
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

[U-Boot] [RESEND PATCH v3 12/19] configs: am335x_pdu001: remove CONFIG_DM_I2C_COMPAT

2018-12-07 Thread Jean-Jacques Hiblot
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

[U-Boot] [RESEND PATCH v3 13/19] ti: remove usage of DM_I2C_COMPAT and don't disable DM_I2C in SPL

2018-12-07 Thread Jean-Jacques Hiblot
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_

[U-Boot] [RESEND PATCH v3 17/19] drivers: core: Add the option SPL_DM_DEVICE_REMOVE to the Kconfig

2018-12-07 Thread Jean-Jacques Hiblot
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

[U-Boot] [RESEND PATCH v3 19/19] dra7: Allow selecting a new dtb after board detection.

2018-12-07 Thread Jean-Jacques Hiblot
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

[U-Boot] [RESEND PATCH v3 14/19] am57xx: remove non-DM I2C code

2018-12-07 Thread Jean-Jacques Hiblot
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

[U-Boot] [RESEND PATCH v3 08/19] dts: am43x: omap5: Add node for I2C in SPL

2018-12-07 Thread Jean-Jacques Hiblot
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

[U-Boot] [RESEND PATCH v3 09/19] omap: detect the board after DM is available

2018-12-07 Thread Jean-Jacques Hiblot
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

Re: [U-Boot] [PATCH v3 00/19] DM_I2C_COMPAT removal for all ti platforms

2018-12-07 Thread Jean-Jacques Hiblot
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

[U-Boot] [RESEND PATCH v3 00/19] DM_I2C_COMPAT removal for all ti platforms

2018-12-07 Thread Jean-Jacques Hiblot
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

[U-Boot] [RESEND PATCH v3 16/19] lib: fdtdec: Add function re-setup the fdt more effeciently

2018-12-07 Thread Jean-Jacques Hiblot
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

[U-Boot] [RESEND PATCH v3 15/19] configs: dra7xx-evm: increase the size of the malloc's pool before relocation

2018-12-07 Thread 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

[U-Boot] [RESEND PATCH v3 11/19] ti: common: board_detect: Allow DM I2C without CONFIG_DM_I2C_COMPAT

2018-12-07 Thread Jean-Jacques Hiblot
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

Re: [U-Boot] [RESEND PATCH v3 1/3] Don't enable CONFIG_SPL_DM_USB for non-DM SPL

2018-12-10 Thread Jean-Jacques Hiblot
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

Re: [U-Boot] Regression: dm: i2c: Make i2c_get_chip_for_busnum() fail if the chip is not detected

2018-12-11 Thread Jean-Jacques Hiblot
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.

Re: [U-Boot] [PATCH] Drivers: USB: MUSB: Remove legacy CONFIG_USB_DA8XX

2018-12-11 Thread Jean-Jacques Hiblot
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

Re: [U-Boot] [PATCH] Drivers: USB: Remove Legacy CONFIG_USB_DAVINCI

2018-12-11 Thread Jean-Jacques Hiblot
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 /

Re: [U-Boot] [PATCH] Drivers: USB: MUSB: Remove legacy CONFIG_USB_DA8XX

2018-12-11 Thread Jean-Jacques Hiblot
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

Re: [U-Boot] [PATCH] Drivers: USB: Remove Legacy CONFIG_USB_DAVINCI

2018-12-11 Thread Jean-Jacques Hiblot
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

[U-Boot] policy regarding unused code

2018-12-11 Thread Jean-Jacques Hiblot
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 _

Re: [U-Boot] policy regarding unused code

2018-12-11 Thread Jean-Jacques Hiblot
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

Re: [U-Boot] policy regarding unused code

2018-12-11 Thread Jean-Jacques Hiblot
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

Re: [U-Boot] Regression: dm: i2c: Make i2c_get_chip_for_busnum() fail if the chip is not detected

2018-12-11 Thread Jean-Jacques Hiblot
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

Re: [U-Boot] Regression: dm: i2c: Make i2c_get_chip_for_busnum() fail if the chip is not detected

2018-12-11 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH] i2c: tegra: Fix regression by implementing a dummy probe_chip() callback

2018-12-11 Thread Jean-Jacques Hiblot
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

Re: [U-Boot] policy regarding unused code

2018-12-12 Thread Jean-Jacques Hiblot
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

Re: [U-Boot] [PATCH] Drivers: USB: MUSB: Remove legacy CONFIG_USB_DA8XX

2018-12-12 Thread Jean-Jacques Hiblot
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_

Re: [U-Boot] policy regarding unused code

2018-12-12 Thread Jean-Jacques Hiblot
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

Re: [U-Boot] [PATCH 1/1] usb: musb-new: sunxi: Fix null pointer access

2018-12-13 Thread Jean-Jacques Hiblot
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

Re: [U-Boot] [PATCH 1/1] usb: musb-new: sunxi: Fix null pointer access

2018-12-13 Thread Jean-Jacques Hiblot
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

Re: [U-Boot] changing of fastboot index

2018-12-14 Thread Jean-Jacques Hiblot
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_

[U-Boot] [PATCH v1 0/2] Fix USB port indexes for USB gadget commands

2018-12-15 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v1 1/2] dm: usb: udc: Use SEQ_ALIAS to index the USB gadget ports

2018-12-15 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v1 2/2] ARM: dts: define USB aliases for all omap5 platforms

2018-12-15 Thread Jean-Jacques Hiblot
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

Re: [U-Boot] [PATCH v3 0/7] Fixes/Addition to use the USB Ethernet gadget with the DWC3 gadget controller

2018-08-08 Thread Jean-Jacques Hiblot
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

Re: [U-Boot] [PATCH v3 0/7] Fixes/Addition to use the USB Ethernet gadget with the DWC3 gadget controller

2018-08-08 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v4 2/7] net: eth-uclass: Fix for DM USB ethernet support

2018-08-09 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v4 5/7] dm: convert device_get_global_by_of_offset() to device_get_global_by_ofnode()

2018-08-09 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v4 4/7] dm: print the index of the device when dumping the dm tree

2018-08-09 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v4 6/7] device: expose the functions used to remove and unbind children of a device

2018-08-09 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v4 3/7] uclass: Add dev_get_uclass_index() to get the uclass/index of a device

2018-08-09 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v4 1/7] usb: gadget: Add bcdDevice for the DWC3 USB Gadget Controller

2018-08-09 Thread Jean-Jacques Hiblot
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

Re: [U-Boot] [PATCH v3 0/7] Fixes/Addition to use the USB Ethernet gadget with the DWC3 gadget controller

2018-08-09 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v4 7/7] cmd: Add bind/unbind commands to bind a device to a driver from the command line

2018-08-09 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v4 0/7] Fixes/Addition to use the USB Ethernet gadget with the DWC3 gadget controller

2018-08-09 Thread Jean-Jacques Hiblot
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

Re: [U-Boot] [PATCH v4 0/7] Fixes/Addition to use the USB Ethernet gadget with the DWC3 gadget controller

2018-08-13 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v2 4/7] dwc3_generic: do not probe the USB device driver when it's bound

2018-09-04 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v2 1/7] usb: gadget: Do not call board_usb_xxx() directly in USB gadget drivers

2018-09-04 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v2 2/7] usb: introduce a separate config option for DM USB device

2018-09-04 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v2 6/7] dwc3-generic: Handle the PHYs, the clocks and the reset lines

2018-09-04 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v2 5/7] dwc3: move phy operation to core.c

2018-09-04 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v2 0/7] [RESEND] Improvements for the dwc3_generic driver

2018-09-04 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v2 3/7] usb: udc: implement DM versions of usb_gadget_initialize()/_release()/_handle_interrupt()

2018-09-04 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v2 7/7] dwc3-generic: Add select_dr_mode operation

2018-09-04 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v7 02/11] phy: ti-pip3-phy: Add support for USB3 PHY

2018-09-04 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v7 03/11] phy: Add a new driver for OMAP's USB2 PHYs

2018-09-04 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v7 04/11] dwc3-generic: Add support for the TI DWC3 glue

2018-09-04 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v7 07/11] dts: dra7x: make ocp2scp@4a080000 compatible with simple-bus

2018-09-04 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v7 09/11] configs: am57xx_evm: Enable DM_USB and DM_USB_DEV

2018-09-04 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v7 06/11] board; ti: am57xx: turn on USB clocks

2018-09-04 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v7 05/11] board: ti: dra7xx-evm: turn on USB clocks in late init stage

2018-09-04 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v7 00/11] [RESEND] Add support for DM_USB and DM_USB_DEV for TI's DRA7 EVMs and AM57 EVMs platforms.

2018-09-04 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v7 01/11] syscon: dm: Add a new method to get a regmap from DTS

2018-09-04 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v7 08/11] configs: enable DM_USB and DM_USB_DEV for all DRA7 platforms

2018-09-04 Thread Jean-Jacques Hiblot
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:

[U-Boot] [PATCH v7 10/11] board: ti: dra7-evm: remove USB platform code

2018-09-04 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v7 11/11] board: ti: am57xx: remove USB platform code

2018-09-04 Thread Jean-Jacques Hiblot
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

Re: [U-Boot] [PATCH 3/3] ARM: DTS: various omap3: Remove cd-inverted from u-boot.dtsi

2018-09-05 Thread Jean-Jacques Hiblot
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

Re: [U-Boot] [PATCH 1/3] gpio: omap_gpio: Add xlate function to support GPIO_ACTIVE_LOW

2018-09-05 Thread Jean-Jacques Hiblot
 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

Re: [U-Boot] [PATCH 2/3] mmc: omap_mmc: Remove invert references with gpio xlate available

2018-09-05 Thread Jean-Jacques Hiblot
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/

Re: [U-Boot] [PATCH v1 1/7] usb: gadget: Do not call board_usb_xxx() directly in USB gadget drivers

2018-05-29 Thread Jean-Jacques Hiblot
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

Re: [U-Boot] [PATCH v1 2/7] usb: introduce a separate config option for DM USB device

2018-05-29 Thread Jean-Jacques Hiblot
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

Re: [U-Boot] [PATCH v1 0/7] Improvements for the dwc3_generic driver

2018-05-29 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v2 1/7] usb: gadget: Do not call board_usb_xxx() directly in USB gadget drivers

2018-05-29 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v2 3/7] usb: udc: implement DM versions of usb_gadget_initialize()/_release()/_handle_interrupt()

2018-05-29 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v2 0/7] Improvements for the dwc3_generic driver

2018-05-29 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v2 4/7] dwc3_generic: do not probe the USB device driver when it's bound

2018-05-29 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v2 2/7] usb: introduce a separate config option for DM USB device

2018-05-29 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v2 6/7] dwc3-generic: Handle the PHYs, the clocks and the reset lines

2018-05-29 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v2 7/7] dwc3-generic: Add select_dr_mode operation

2018-05-29 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v2 5/7] dwc3: move phy operation to core.c

2018-05-29 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v7 03/11] phy: Add a new driver for OMAP's USB2 PHYs

2018-05-29 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v7 02/11] phy: ti-pip3-phy: Add support for USB3 PHY

2018-05-29 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v7 08/11] configs: enable DM_USB and DM_USB_DEV for all DRA7 platforms

2018-05-29 Thread Jean-Jacques Hiblot
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:

[U-Boot] [PATCH v7 04/11] dwc3-generic: Add support for the TI DWC3 glue

2018-05-29 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v7 07/11] dts: dra7x: make ocp2scp@4a080000 compatible with simple-bus

2018-05-29 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v7 05/11] board: ti: dra7xx-evm: turn on USB clocks in late init stage

2018-05-29 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v7 06/11] board; ti: am57xx: turn on USB clocks

2018-05-29 Thread Jean-Jacques Hiblot
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

[U-Boot] [PATCH v7 01/11] syscon: dm: Add a new method to get a regmap from DTS

2018-05-29 Thread Jean-Jacques Hiblot
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

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