[U-Boot] [PATCH 1/1] test/py: error message test_efi_selftest_device_tree

2019-07-05 Thread Heinrich Schuchardt
Correct the error message in test_efi_selftest_device_tree(). Signed-off-by: Heinrich Schuchardt --- test/py/tests/test_efi_selftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/py/tests/test_efi_selftest.py b/test/py/tests/test_efi_selftest.py index

Re: [U-Boot] [U-Boot,v9,0/9] Update SiFive Unleashed Drivers

2019-07-05 Thread Sagar Shrikant Kadam
Hi Anup, Tested the entire V9 series with OpenSBI and mainline u-boot based on commit fc6c0e29a28f6 ("Prepare v2019.07-rc4") along with few Ramon Fried's patches present in your riscv_unleashed_clk_sync_v9 branch: between commit fc6c0e29a28f6 ("Prepare v2019.07-rc4") and commit 1a417ef71ce1

[U-Boot] Getting address and size of loadable images through DT

2019-07-05 Thread Rossier Daniel
Dear all, I would like to use a FIT its description with two images (one hypervisor, one Linux kernel). I'm starting the hypervisor with bootm and I would like to retrieve the start address and size of the Linux kernel image in my hypervisor. Ideally, I would like to get that through a

[U-Boot] [PATCH v5 0/6] android: implement A/B boot process

2019-07-05 Thread Igor Opaniuk
*** This patch series depends on [4], [5], [6] and should be applied after these paticular patches. This patch series adds support for Android A/B boot process [1]. Main steps of A/B boot process are: - A/B metadata integrity check - looking for the current slot (where the system should be

[U-Boot] [PATCH 1/1] disk: efi: buffer overflow in part_get_info_efi()

2019-07-05 Thread Heinrich Schuchardt
In part_get_info_efi() we use the output of print_efiname() to set info->name[]. The size of info->name is PART_NAME_LEN = 32 but print_efiname() returns a string with a maximum length of PARTNAME_SZ + 1 = 37. Use snprintf() instead of sprintf() to avoid buffer overflow. Signed-off-by: Heinrich

Re: [U-Boot] [PATCH v5 6/6] env: am57xx: Implement A/B boot process

2019-07-05 Thread Eugeniu Rosca
Hi Igor, On Fri, Jul 05, 2019 at 03:37:36PM +0300, Igor Opaniuk wrote: [..] > include/environment/ti/boot.h | 58 +++ [..] > - "name=boot,size=20M,uuid=${uuid_gpt_boot};" \ FWIW this patch doesn't apply to u-boot/master due to the above line. FWIW the size of

[U-Boot] [PATCH 4/4] dm: Fix parameter description of dev_read_name()

2019-07-05 Thread Bin Meng
The comments of dev_read_name() wrongly describe "node" as its parameter. Signed-off-by: Bin Meng --- include/dm/read.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/dm/read.h b/include/dm/read.h index 60b727c..ddb05d1 100644 --- a/include/dm/read.h +++

[U-Boot] [PATCH 3/4] dm: core: Set correct "status" value for a node

2019-07-05 Thread Bin Meng
Per device tree spec, "status" property can have a value of "okay", or "disabled", but not "disable". Signed-off-by: Bin Meng --- drivers/core/ofnode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/core/ofnode.c b/drivers/core/ofnode.c index c72c6e2..bbea729

[U-Boot] [PATCH 1/4] dm: timer: Skip device that does not have a valid ofnode in pre_probe()

2019-07-05 Thread Bin Meng
It is possible that a timer device has a null ofnode, hence there is no need to further parse DT for the clock rate. Signed-off-by: Bin Meng --- drivers/timer/timer-uclass.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/timer/timer-uclass.c b/drivers/timer/timer-uclass.c

[U-Boot] [PATCH 2/4] dm: core: Call clk_set_defaults() during probe() only for a valid ofnode

2019-07-05 Thread Bin Meng
Without a valid ofnode, it's meaningless to call clk_set_defaults() to process various properties. Signed-off-by: Bin Meng --- drivers/core/device.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/core/device.c b/drivers/core/device.c index

[U-Boot] [PULL] u-boot-mips

2019-07-05 Thread Daniel Schwierzeck
Hi Tom, please pull a fix for network instability on MT7688 Gardena Smart Gateway. This should go into 2019.07, thanks. The following changes since commit 1f83431f0053f6fb20c511c391ffc687433848cf: board: amlogic: add mailing-list to MAINTAINERS (2019-07-04 11:36:52 -0400) are available in

[U-Boot] [PATCH v2 10/16] stm32mp1: key: add stm32key command

2019-07-05 Thread Patrick Delaunay
Add dedicated command to register in fuse a public hash key provided by keygen tool. Signed-off-by: Patrick Delaunay --- Changes in v2: None arch/arm/mach-stm32mp/Kconfig| 8 +++ arch/arm/mach-stm32mp/Makefile | 1 + arch/arm/mach-stm32mp/cmd_stm32key.c | 101

[U-Boot] [PATCH v2 14/16] stm32mp1: add check for presence of environment in boot device

2019-07-05 Thread Patrick Delaunay
For boot from flash, check presence of default environment to force save env. Signed-off-by: Patrick Delaunay --- Changes in v2: None include/configs/stm32mp1.h | 4 1 file changed, 4 insertions(+) diff --git a/include/configs/stm32mp1.h b/include/configs/stm32mp1.h index

[U-Boot] [PATCH v2 13/16] stm32mp1: configs: Add CONFIG_OF_SPL_REMOVE_PROPS

2019-07-05 Thread Patrick Delaunay
Removes unused device tree property in SPL to reduce the SPL size by 1kB Signed-off-by: Patrick Delaunay --- Changes in v2: None configs/stm32mp15_basic_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/stm32mp15_basic_defconfig b/configs/stm32mp15_basic_defconfig index

[U-Boot] [PATCH v2 15/16] stm32mp1: force boot_net_usb_start

2019-07-05 Thread Patrick Delaunay
Prevent USB enumeration and avoid unnecessary delay in bootcmd_pxe as Ethernet device is not attached to USB. Signed-off-by: Patrick Delaunay --- Changes in v2: None include/configs/stm32mp1.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/configs/stm32mp1.h

[U-Boot] [PATCH v2 09/16] stm32mp1: add stboard command

2019-07-05 Thread Patrick Delaunay
Allow to update board identification in OTP 59. Signed-off-by: Patrick Delaunay --- Changes in v2: None board/st/stm32mp1/Kconfig | 7 ++ board/st/stm32mp1/Makefile | 1 + board/st/stm32mp1/cmd_stboard.c | 145 3 files changed, 153

[U-Boot] [PATCH v2 12/16] stm32mp1: cosmetic: remove unnecessary include

2019-07-05 Thread Patrick Delaunay
Remove post.h include as it is used in spl.c Signed-off-by: Patrick Delaunay --- Changes in v2: None board/st/stm32mp1/spl.c | 1 - 1 file changed, 1 deletion(-) diff --git a/board/st/stm32mp1/spl.c b/board/st/stm32mp1/spl.c index a7844f2..e19be0f 100644 --- a/board/st/stm32mp1/spl.c +++

[U-Boot] [PATCH v2 16/16] ARM: dts: stm32mp1: sync device tree with v5.2-rc4

2019-07-05 Thread Patrick Delaunay
Synchronize device tree with v5.2-rc4 label and update the associated u-boot dtsi. Signed-off-by: Patrick Delaunay --- Changes in v2: - missing alignment on ethernet@5800a000 - set ethernet0 phy-mode to "rgmii-id" for dk1 (needed modification not yet upstreamed)

[U-Boot] [PATCH v2 11/16] stm32mp1: update README

2019-07-05 Thread Patrick Delaunay
Add latest information and correct some information. Signed-off-by: Patrick Delaunay --- Changes in v2: None board/st/stm32mp1/README | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/board/st/stm32mp1/README b/board/st/stm32mp1/README index b0c8325..dc36a21

[U-Boot] [PATCH v2 06/16] stm32mp1: export get_cpu_package function

2019-07-05 Thread Patrick Delaunay
Prepare update of package information update in Linux device tree. Signed-off-by: Patrick Delaunay --- Changes in v2: None arch/arm/mach-stm32mp/cpu.c| 7 +-- arch/arm/mach-stm32mp/include/mach/sys_proto.h | 9 + 2 files changed, 10 insertions(+), 6

[U-Boot] [PATCH v2 07/16] stm32mp1: update package information in device tree

2019-07-05 Thread Patrick Delaunay
Signed-off-by: Patrick Delaunay --- Changes in v2: None arch/arm/Kconfig | 1 + arch/arm/mach-stm32mp/Makefile | 1 + arch/arm/mach-stm32mp/fdt.c| 45 ++ 3 files changed, 47 insertions(+) create mode 100644

[U-Boot] [PATCH v2 00/16] stm32m1 patches for v2019.10

2019-07-05 Thread Patrick Delaunay
Some remaining patches for stm32mp1 - some cleanup in files - add 2 specific commands for stm32mp1 board - use OF_SYSTEM_SETUP to update kernel device tree - synchronization with latest device tree Changes in v2: - missing alignment on ethernet@5800a000 - set ethernet0 phy-mode to "rgmii-id"

[U-Boot] [PATCH v2 08/16] stm32mp1: update device tree with ETZPC status

2019-07-05 Thread Patrick Delaunay
U-Boot should disable nodes in device tree if needed according ETZPC status in ft_system_setup(). ETZPC itself use an array on addresses to do the match between the status bits and the node. Signed-off-by: Benjamin Gaignard Signed-off-by: Patrick Delaunay --- Changes in v2: None

[U-Boot] [PATCH v2 05/16] dt-bindings: pinctrl: stm32: add new entry for package information

2019-07-05 Thread Patrick Delaunay
Add "st,package" entry. Possibles values are: -STM32MP_PKG_AA for LFBGA448 (18*18) package -STM32MP_PKG_AB for LFBGA354 (16*16) package -STM32MP_PKG_AC for TFBGA361 (12*12) package -STM32MP_PKG_AD for TFBGA257 (10*10) package see Linux commit 966d9b928f626a54a0c27c0fdae1e3dfe9bab416 for v5.2-rc1

[U-Boot] [PATCH v2 04/16] stm32mp1: syscon: remove stgen

2019-07-05 Thread Patrick Delaunay
Reduce difference with kernel Linux device tree. Signed-off-by: Patrick Delaunay --- Changes in v2: None arch/arm/dts/stm32mp157-u-boot.dtsi| 7 --- arch/arm/mach-stm32mp/include/mach/stm32.h | 2 +- arch/arm/mach-stm32mp/syscon.c | 1 - drivers/clk/clk_stm32mp1.c

[U-Boot] [PATCH v2 03/16] stm32mp1: syscon: remove etzpc support

2019-07-05 Thread Patrick Delaunay
Support for ETZPC is removed as this device is not present in Linux kernel device tree. Signed-off-by: Patrick Delaunay --- Changes in v2: None arch/arm/mach-stm32mp/include/mach/stm32.h | 1 - arch/arm/mach-stm32mp/syscon.c | 1 - 2 files changed, 2 deletions(-) diff --git

[U-Boot] [PATCH v2 02/16] stm32mp1: call regulators_enable_boot_on in board_init

2019-07-05 Thread Patrick Delaunay
U-Boot activates regulators by reading the "regulator-boot-on" property in DT; it is requested by M4 early Boot feature. Signed-off-by: Patrick Delaunay --- Changes in v2: None board/st/stm32mp1/stm32mp1.c | 4 1 file changed, 4 insertions(+) diff --git a/board/st/stm32mp1/stm32mp1.c

[U-Boot] [PATCH v2 01/16] stm32mp1: deactivate WATCHDOG in defconfig

2019-07-05 Thread Patrick Delaunay
Deactivate WATCHDOG by default in u-boot to avoid issue to boot kernel and rootfs without the needed daemon to reload it. Signed-off-by: Patrick Delaunay --- Changes in v2: None configs/stm32mp15_basic_defconfig | 2 -- configs/stm32mp15_trusted_defconfig | 2 -- 2 files changed, 4

Re: [U-Boot] [PATCH] mips: mt76xx: Implement new d-cache fix in last_stage_init()

2019-07-05 Thread Daniel Schwierzeck
Hi Stefan, Am 05.07.19 um 16:42 schrieb Stefan Roese: > Hi Daniel, > > On 28.05.19 08:11, Stefan Roese wrote: >> With commit 06985289d452 ("watchdog: Implement generic watchdog_reset() >> version") the init sequence has changed in arch_misc_init(), resulting >> in a re-appearance of the d-cache

Re: [U-Boot] [PATCH v1 0/3] Fixes for the DWC3-generic glue driver

2019-07-05 Thread Jean-Jacques Hiblot
On 05/07/2019 14:16, Marek Vasut wrote: On 7/5/19 9:43 AM, Jean-Jacques Hiblot wrote: Marek, Ideally this series should be merged in u-boot-usb/master. I was hoping for something which doesn't add uclasses, but maybe that's not easily possible? So, I'll apply this and we'll see.

Re: [U-Boot] pull request: raspberry pi updates

2019-07-05 Thread Tom Rini
On Fri, Jul 05, 2019 at 01:27:24PM +0200, Matthias Brugger wrote: > > > On 26/06/2019 13:09, Matthias Brugger wrote: > > > > > > On 25/06/2019 09:58, Matthias Brugger wrote: > >> > >> > >> On 24/06/2019 20:11, Tom Rini wrote: > >>> On Wed, Jun 12, 2019 at 04:25:33PM -0400, Tom Rini wrote: >

Re: [U-Boot] [PATCH] mips: mt76xx: Implement new d-cache fix in last_stage_init()

2019-07-05 Thread Stefan Roese
Hi Daniel, On 28.05.19 08:11, Stefan Roese wrote: With commit 06985289d452 ("watchdog: Implement generic watchdog_reset() version") the init sequence has changed in arch_misc_init(), resulting in a re-appearance of the d-cache issue on MT7688 boards (e.g. gardena). When this happens, the first

Re: [U-Boot] [PATCH v3 3/7] usb: storage: submit_int_msg -> usb_int_msg

2019-07-05 Thread Bin Meng
On Fri, Jul 5, 2019 at 6:44 PM Michal Suchanek wrote: > > Use the wrapper because the unwrapped function prototype will be changed > in the following patch. > > Signed-off-by: Michal Suchanek > --- > v2: usb_submit_int_msg -> usb_int_msg > v3: fix indentation > --- > common/usb_storage.c | 4

Re: [U-Boot] [PATCH v3 2/7] usb: usb_submit_int_msg -> usb_int_msg

2019-07-05 Thread Bin Meng
On Fri, Jul 5, 2019 at 6:44 PM Michal Suchanek wrote: > > This aligns naming with usb_bulk_msg and usb_control_msg. > > Signed-off-by: Michal Suchanek > --- > v2: new patch > --- > common/usb.c | 2 +- > common/usb_kbd.c | 6 +++--- > include/usb.h| 2 +- > 3 files changed, 5

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

2019-07-05 Thread Marek Vasut
On 7/5/19 9:34 AM, Jean-Jacques Hiblot wrote: > Marek, > > On 04/07/2019 15:38, Marek Vasut wrote: >> On 7/4/19 9:37 AM, Jean-Jacques Hiblot wrote: >>> Hi Marek, >>> >>> On 02/07/2019 14:32, Jean-Jacques Hiblot wrote: On 02/07/2019 14:10, Marek Vasut wrote: > On 7/2/19 2:06 PM,

Re: [U-Boot] [PATCH v1 0/3] Fixes for the DWC3-generic glue driver

2019-07-05 Thread Marek Vasut
On 7/5/19 9:43 AM, Jean-Jacques Hiblot wrote: > Marek, > > Ideally this series should be merged in u-boot-usb/master. I was hoping for something which doesn't add uclasses, but maybe that's not easily possible? So, I'll apply this and we'll see. ___

Re: [U-Boot] [PATCH v3 5/7] usb: add usb_int_msg_nonblock

2019-07-05 Thread Marek Vasut
On 7/5/19 12:44 PM, Michal Suchanek wrote: > Variant of the int_msg wrapper that does not introduce excessive retry > delay on error. > > Signed-off-by: Michal Suchanek > --- > v2: usb_submit_int_msg -> usb_int_msg > --- > common/usb.c | 9 + > include/usb.h | 2 ++ > 2 files changed,

Re: [U-Boot] [PATCH v3 1/7] usb_kdb: only process events succesfully received

2019-07-05 Thread Marek Vasut
On 7/5/19 12:44 PM, Michal Suchanek wrote: > Causes unbound key repeat on error otherwise. > > Signed-off-by: Michal Suchanek > --- > v2: fix indentation What changed in V3 ? > --- > common/usb_kbd.c | 7 +++ > 1 file changed, 3 insertions(+), 4 deletions(-) > > diff --git

[U-Boot] [PATCH] i.mx7: board: Add support for the Ronetix's i.MX7-CM board

2019-07-05 Thread Ilko Iliev
This commit provides support for Ronetix GmbH i.MX7-CM board. Supported peripherals: ETH, SD, eMMC, USB, I2C EEPROM, PMIC, QSPI Nor Flash U-boot console output: U-Boot 2019.07-rc4-00358-g1f83431f00-dirty (Jul 05 2019-13:55:21 +0200) CPU: Freescale i.MX7D rev1.2 1000 MHz (running at 792 MHz)

[U-Boot] [PATCH v5 6/6] env: am57xx: Implement A/B boot process

2019-07-05 Thread Igor Opaniuk
From: Ruslan Trofymenko Add support for A/B boot process on AM57xx based boards: 1. Define 'slot_suffix' variable (using 'ab_select' command) 2. Extend 'emmc_android_boot' boot command (add commands for A/B boot process) 'ab_select' command is used to decide which slot should be used

[U-Boot] [PATCH v5 5/6] doc: android: Add simple guide for A/B updates

2019-07-05 Thread Igor Opaniuk
From: Ruslan Trofymenko Add a short documentation for A/B enablement and 'ab_select' command usage. Signed-off-by: Ruslan Trofymenko Signed-off-by: Igor Opaniuk Signed-off-by: Sam Protsenko Reviewed-by: Alistair Strachan Reviewed-by: Sam Protsenko Reviewed-by: Simon Glass ---

[U-Boot] [PATCH v5 4/6] test/py: Add base test case for A/B updates

2019-07-05 Thread Igor Opaniuk
From: Ruslan Trofymenko Add sandbox test for 'ab_select' command. Test: ./test/py/test.py --bd sandbox --build -k test_ab Signed-off-by: Ruslan Trofymenko Signed-off-by: Igor Opaniuk Signed-off-by: Sam Protsenko Reviewed-by: Alistair Strachan Reviewed-by: Sam Protsenko Reviewed-by: Simon

[U-Boot] [PATCH v5 3/6] cmd: Add 'ab_select' command

2019-07-05 Thread Igor Opaniuk
From: Ruslan Trofymenko For A/B system update support the Android boot process requires to send 'androidboot.slot_suffix' parameter as a command line argument. This patch implementes 'ab_select' command which allows us to obtain current slot by processing the A/B metadata. The patch was

[U-Boot] [PATCH v5 2/6] common: Implement A/B metadata

2019-07-05 Thread Igor Opaniuk
From: Ruslan Trofymenko This patch determines the A/B-specific bootloader message structure that is the basis for implementation of recovery and A/B update functions. A/B metadata is stored in this structure and used to decide which slot should we use to boot the device. Also some basic

[U-Boot] [PATCH v5 1/6] disk: part: Extend API to get partition info

2019-07-05 Thread Igor Opaniuk
From: Ruslan Trofymenko This patch adds part_get_info_by_dev_and_name_or_num() function which allows us to get partition info from its number or name. Partition of interest is specified by string like "device_num:partition_number" or "device_num#partition_name". The patch was extracted from

Re: [U-Boot] [PATCH v2] ARM: imx6: DHCOM i.MX6 PDK: Switch to DM for I2C

2019-07-05 Thread Marek Vasut
On 7/5/19 12:46 PM, Ludwig Zenz wrote: [...] > static int setup_dhcom_mac_from_fuse(void) > { > + struct udevice *dev; > unsigned char enetaddr[6]; > int ret; > > @@ -228,13 +142,13 @@ static int setup_dhcom_mac_from_fuse(void) > return 0; > } > > -

Re: [U-Boot] [PATCH] rockchip: make_fit_atf.py: fix loadables property set error

2019-07-05 Thread Mark Kettenis
> From: Kever Yang > Date: Fri, 5 Jul 2019 19:38:42 +0800 > > Hi Christoph, > > > On 07/05/2019 05:15 PM, Christoph Müllner wrote: > > > > On 04.07.19 11:44, Andy Yan wrote: > >> Commit b238e4b00ced ("rockchip: Cleanup of make_fit_atf.py.") set > >> firmware = "atf_1"; > >> loadables =

Re: [U-Boot] [PATCH] rockchip: make_fit_atf.py: fix loadables property set error

2019-07-05 Thread Kever Yang
Hi Christoph, On 07/05/2019 05:15 PM, Christoph Müllner wrote: > > On 04.07.19 11:44, Andy Yan wrote: >> Commit b238e4b00ced ("rockchip: Cleanup of make_fit_atf.py.") set >> firmware = "atf_1"; >> loadables = "uboot","atf_1","atf_2"; >> >> Actually it should be: >> firmware = "atf_1"; >>

Re: [U-Boot] pull request: raspberry pi updates

2019-07-05 Thread Matthias Brugger
On 26/06/2019 13:09, Matthias Brugger wrote: > > > On 25/06/2019 09:58, Matthias Brugger wrote: >> >> >> On 24/06/2019 20:11, Tom Rini wrote: >>> On Wed, Jun 12, 2019 at 04:25:33PM -0400, Tom Rini wrote: On Wed, Jun 12, 2019 at 10:21:22PM +0200, Heinrich Schuchardt wrote: > On 6/12/19

Re: [U-Boot] [PATCH] ARM: imx6: DHCOM i.MX6 PDK: Switch to DM for I2C

2019-07-05 Thread Ludwig Zenz
On 7/4/19 5:20 PM, Marek Vasut wrote: > On 7/4/19 9:09 AM, Ludwig Zenz wrote: > > Marek Vasut Wednesday 3rd July 2019 14:06: > >> > >> On 7/3/19 10:20 AM, Ludwig Zenz wrote: > >> [...] > >> > >>> static int setup_dhcom_mac_from_fuse(void) > >>> { > >>> + struct udevice *dev; > >>> unsigned

Re: [U-Boot] [PATCH v2 4/5] riscv: sifive: fu540: Enable SiFive SPI and MMC SPI drivers

2019-07-05 Thread Anup Patel
On Fri, Jul 5, 2019 at 12:22 PM Bin Meng wrote: > > On Fri, Jul 5, 2019 at 2:29 PM Bin Meng wrote: > > > > On Sat, Jun 29, 2019 at 2:57 PM Anup Patel wrote: > > > > > > From: Bhargav Shah > > > > > > This patch enables SiFive SPI and MMC SPI drivers for the > > > SiFive Unleashed board. > > >

Re: [U-Boot] [PATCH v2 3/5] mmc: mmc_spi: Re-write driver using DM framework

2019-07-05 Thread Anup Patel
On Fri, Jul 5, 2019 at 11:59 AM Bin Meng wrote: > > On Sat, Jun 29, 2019 at 2:57 PM Anup Patel wrote: > > > > From: Bhargav Shah > > > > This patch rewrites MMC SPI driver using U-Boot DM > > framework and get it's working on SiFive Unleashed > > board. > > > > Signed-off-by: Bhargav Shah > >

Re: [U-Boot] [PATCH v2 1/5] spi: Add SiFive SPI driver

2019-07-05 Thread Anup Patel
On Fri, Jul 5, 2019 at 11:58 AM Bin Meng wrote: > > On Sat, Jun 29, 2019 at 2:56 PM Anup Patel wrote: > > > > From: Bhargav Shah > > > > This patch adds SiFive SPI driver. The driver is 100% DM driver > > and it determines input clock using clk framework. > > > > The SiFive SPI block is found

[U-Boot] [PATCH v2] ARM: imx6: DHCOM i.MX6 PDK: Switch to DM for I2C

2019-07-05 Thread Ludwig Zenz
This patch enables DM I2C for DHCOM i.MX6 PDK2 boards and removes non DM I2C code. The only I2C EEPROM with ethaddr (MAC) is defined in the device tree. Use UCLASS_I2C_EEPROM to find and read the ethaddr. Tested with DHCOM i.MX6dl and DHCOM i.MX6q. Signed-off-by: Ludwig Zenz --- Changes in v2:

[U-Boot] [PATCH v3 5/7] usb: add usb_int_msg_nonblock

2019-07-05 Thread Michal Suchanek
Variant of the int_msg wrapper that does not introduce excessive retry delay on error. Signed-off-by: Michal Suchanek --- v2: usb_submit_int_msg -> usb_int_msg --- common/usb.c | 9 + include/usb.h | 2 ++ 2 files changed, 11 insertions(+) diff --git a/common/usb.c b/common/usb.c

[U-Boot] [PATCH v3 6/7] usb: kbd: use usb_int_msg_nonblock for polling

2019-07-05 Thread Michal Suchanek
With the following patch it avoids excessive delays with USB 1.1 keyboard connected to high-speed USB hub conncted to dwc2. Signed-off-by: Michal Suchanek --- v2: usb_submit_int_msg -> usb_int_msg --- common/usb_kbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v3 7/7] dwc2: use the nonblock argument in submit_int_msg

2019-07-05 Thread Michal Suchanek
An USB 1.1 keyboard connected to dwc2 through a high-speed hub does not report status until it changes. With this patch you can enable keyboard by pressing a key while USB devices are probed. Without a keypress no state is reported and the probe times out. We don't want to wait for a keypress or

[U-Boot] [PATCH v3 3/7] usb: storage: submit_int_msg -> usb_int_msg

2019-07-05 Thread Michal Suchanek
Use the wrapper because the unwrapped function prototype will be changed in the following patch. Signed-off-by: Michal Suchanek --- v2: usb_submit_int_msg -> usb_int_msg v3: fix indentation --- common/usb_storage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH v3 4/7] usb: Add nonblock argument to submit_int_msg

2019-07-05 Thread Michal Suchanek
This will be used to implement non-blocking keyboard polling in case of errors. Signed-off-by: Michal Suchanek --- v2: ad missing hunk from last patch --- common/usb.c | 2 +- drivers/usb/host/dwc2.c | 12 +++- drivers/usb/host/ehci-hcd.c | 13

[U-Boot] [PATCH v3 2/7] usb: usb_submit_int_msg -> usb_int_msg

2019-07-05 Thread Michal Suchanek
This aligns naming with usb_bulk_msg and usb_control_msg. Signed-off-by: Michal Suchanek --- v2: new patch --- common/usb.c | 2 +- common/usb_kbd.c | 6 +++--- include/usb.h| 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/common/usb.c b/common/usb.c index

[U-Boot] [PATCH v3 1/7] usb_kdb: only process events succesfully received

2019-07-05 Thread Michal Suchanek
Causes unbound key repeat on error otherwise. Signed-off-by: Michal Suchanek --- v2: fix indentation --- common/usb_kbd.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/common/usb_kbd.c b/common/usb_kbd.c index cc99c6be0720..fc9419e0238a 100644 --- a/common/usb_kbd.c

Re: [U-Boot] [PATCH] rockchip: make_fit_atf.py: fix loadables property set error

2019-07-05 Thread Christoph Müllner
Hi Andy, On 05.07.19 12:06, Andy Yan wrote: > Hi  Christoph: > > On 2019/7/5 下午5:15, Christoph Müllner wrote: >> >> On 04.07.19 11:44, Andy Yan wrote: >>> Commit b238e4b00ced ("rockchip: Cleanup of make_fit_atf.py.") set >>> firmware = "atf_1"; >>> loadables = "uboot","atf_1","atf_2"; >>> >>>

Re: [U-Boot] [PATCH] rockchip: make_fit_atf.py: fix loadables property set error

2019-07-05 Thread Andy Yan
Hi  Christoph: On 2019/7/5 下午5:15, Christoph Müllner wrote: On 04.07.19 11:44, Andy Yan wrote: Commit b238e4b00ced ("rockchip: Cleanup of make_fit_atf.py.") set firmware = "atf_1"; loadables = "uboot","atf_1","atf_2"; Actually it should be: firmware = "atf_1"; loadables =

[U-Boot] [PATCH v3] drivers: net: phy: Ignore PHY ID 0 during PHY probing

2019-07-05 Thread Alex Marginean
Current code fails to probe some C45 PHYs that also respond to C22 reads. This is the case for PHYs like Aquantia AQR112, Marvell 88X2242 (as previously posted on the u-boot list). If the PHY ID reads all 0s just ignore it and try the next devad. Signed-off-by: Alex Marginean Reviewed-By: Ramon

Re: [U-Boot] buildman cause PC hang for long time

2019-07-05 Thread Peng Fan
> Subject: [U-Boot] buildman cause PC hang for long time > > Hi Simon, Resolved. Kconfig was wrongly used in my patch. Thanks, Peng. > > I am adding i.MX8MM/8MN to upstream, but when run > " ./tools/buildman/buildman aarch64 -x > tegra,ls1,ls2,mvebu,uniphier,sunxi,samsung,rockchip,xilinx -j8

Re: [U-Boot] [PATCH] rockchip: make_fit_atf.py: fix loadables property set error

2019-07-05 Thread Christoph Müllner
On 04.07.19 11:44, Andy Yan wrote: > Commit b238e4b00ced ("rockchip: Cleanup of make_fit_atf.py.") set > firmware = "atf_1"; > loadables = "uboot","atf_1","atf_2"; > > Actually it should be: > firmware = "atf_1"; > loadables = "uboot","atf_2","atf_3"; Does "atf_1" not need to be among

Re: [U-Boot] [PATCH v2] drivers: net: phy: Ignore PHY ID 0 during PHY probing

2019-07-05 Thread Bin Meng
On Fri, Jul 5, 2019 at 4:38 PM Alex Marginean wrote: > > Current code fails to probe some C45 PHYs that also respond to C22 reads. > This is the case for PHYs like Aquantia AQR112, Marvell 88X2242 (as > previously posted on the u-boot list). > If the PHY ID reads all 0s just ignore it and try the

Re: [U-Boot] [PATCH] board: amlogic: add mailing-list to MAINTAINERS

2019-07-05 Thread Neil Armstrong
On 05/07/2019 02:01, Tom Rini wrote: > On Thu, Jul 04, 2019 at 03:59:38PM +0200, Neil Armstrong wrote: > >> Add missing mailing-list to the amlogic boards MAINTAINERS file. >> >> Signed-off-by: Neil Armstrong > > Since you're going on vacation and this makes sense for the current > release, I'm

[U-Boot] [PATCH v2] drivers: net: phy: Ignore PHY ID 0 during PHY probing

2019-07-05 Thread Alex Marginean
Current code fails to probe some C45 PHYs that also respond to C22 reads. This is the case for PHYs like Aquantia AQR112, Marvell 88X2242 (as previously posted on the u-boot list). If the PHY ID reads all 0s just ignore it and try the next addr. Signed-off-by: Alex Marginean Reviewed-By: Ramon

Re: [U-Boot] [PATCH v1 0/3] Fixes for the DWC3-generic glue driver

2019-07-05 Thread Jean-Jacques Hiblot
Marek, Ideally this series should be merged in u-boot-usb/master. JJ On 05/07/2019 09:33, Jean-Jacques Hiblot wrote: This series fixes the current breakage of the DWC3 generic driver Those patches were part of a larger series that also fixes the K2 platforms. However since the other series

Re: [U-Boot] [PATCH v2 00/99] ram: rk3399: Add LPDDR4 support

2019-07-05 Thread Kever Yang
Jagan, On 07/04/2019 06:54 PM, Jagan Teki wrote: > Hi Kever, > > On Thu, Jul 4, 2019 at 3:57 PM Kever Yang wrote: >> Jagan, >> >> >> On 06/26/2019 06:22 PM, Jagan Teki wrote: >> >> On Wed, Jun 26, 2019 at 12:12 AM Ezequiel Garcia >> wrote: >> >> Hi Jagan, >> >> Thanks for your hard work. I'm

[U-Boot] [PATCH v1 0/3] Fixes for the DWC3-generic glue driver

2019-07-05 Thread Jean-Jacques Hiblot
This series fixes the current breakage of the DWC3 generic driver Those patches were part of a larger series that also fixes the K2 platforms. However since the other series will not make it in this release, sending in a much smaller one. JJ Jean-Jacques Hiblot (3): usb: dwc3-generic: remove

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

2019-07-05 Thread Jean-Jacques Hiblot
Marek, On 04/07/2019 15:38, Marek Vasut wrote: On 7/4/19 9:37 AM, Jean-Jacques Hiblot wrote: Hi Marek, On 02/07/2019 14:32, Jean-Jacques Hiblot wrote: On 02/07/2019 14:10, Marek Vasut wrote: On 7/2/19 2:06 PM, Jean-Jacques Hiblot wrote: On 02/07/2019 13:38, Marek Vasut wrote: On 7/2/19

[U-Boot] [PATCH v1 2/3] dm: Add a No-op uclass

2019-07-05 Thread Jean-Jacques Hiblot
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 to bind child devices but do not use dm_scan_fdt_dev() to do it. That is for example the case of several USB wrappers that have 2

[U-Boot] [PATCH v1 1/3] usb: dwc3-generic: remove dm_scan_fdt_dev() from the remove() callback

2019-07-05 Thread Jean-Jacques Hiblot
There is simply no reason to do that here. Signed-off-by: Jean-Jacques Hiblot --- 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..70431facb3 100644 ---

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

2019-07-05 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 --- drivers/usb/dwc3/dwc3-generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [U-Boot] [PATCH] rockchip: make_fit_atf.py: fix loadables property set error

2019-07-05 Thread Kever Yang
Hi Christoph,     Could you check this issue on your side?     This is pretty important for rk3399, this will break the support for ATF for rk3399 boards other than puma. On 07/04/2019 05:44 PM, Andy Yan wrote: > Commit b238e4b00ced ("rockchip: Cleanup of make_fit_atf.py.") set > firmware =

Re: [U-Boot] [PATCH v2 4/5] riscv: sifive: fu540: Enable SiFive SPI and MMC SPI drivers

2019-07-05 Thread Bin Meng
On Fri, Jul 5, 2019 at 2:29 PM Bin Meng wrote: > > On Sat, Jun 29, 2019 at 2:57 PM Anup Patel wrote: > > > > From: Bhargav Shah > > > > This patch enables SiFive SPI and MMC SPI drivers for the > > SiFive Unleashed board. > > > > Signed-off-by: Bhargav Shah > > Signed-off-by: Anup Patel > >

Re: [U-Boot] [PATCH v2 4/5] riscv: sifive: fu540: Enable SiFive SPI and MMC SPI drivers

2019-07-05 Thread Bin Meng
On Sat, Jun 29, 2019 at 2:57 PM Anup Patel wrote: > > From: Bhargav Shah > > This patch enables SiFive SPI and MMC SPI drivers for the > SiFive Unleashed board. > > Signed-off-by: Bhargav Shah > Signed-off-by: Anup Patel > --- > board/sifive/fu540/Kconfig | 8 > 1 file changed, 8

Re: [U-Boot] [PATCH v2 3/5] mmc: mmc_spi: Re-write driver using DM framework

2019-07-05 Thread Bin Meng
On Sat, Jun 29, 2019 at 2:57 PM Anup Patel wrote: > > From: Bhargav Shah > > This patch rewrites MMC SPI driver using U-Boot DM > framework and get it's working on SiFive Unleashed > board. > > Signed-off-by: Bhargav Shah > Signed-off-by: Anup Patel > --- > drivers/mmc/Kconfig | 18 ++ >

Re: [U-Boot] [PATCH v2 5/5] doc: sifive-fu540: Update README for SiFive SPI and MMC SPI drivers

2019-07-05 Thread Bin Meng
On Sat, Jun 29, 2019 at 2:57 PM Anup Patel wrote: > > This patch removes SiFive SPI driver and MMC SPI drive from the TODO > list in SiFive FU540 README. > > Signed-off-by: Anup Patel > --- > doc/README.sifive-fu540 | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > Reviewed-by: Bin

Re: [U-Boot] [PATCH v2 2/5] mmc: skip select_mode_and_width for MMC SPI host

2019-07-05 Thread Bin Meng
On Sat, Jun 29, 2019 at 2:57 PM Anup Patel wrote: > > The MMC mode and width are fixed for MMC SPI host hence we skip > sd_select_mode_and_width() and mmc_select_mode_and_width() for > MMC SPI host. > > Signed-off-by: Anup Patel > --- > drivers/mmc/mmc.c | 14 ++ > 1 file changed,

Re: [U-Boot] [PATCH v2 1/5] spi: Add SiFive SPI driver

2019-07-05 Thread Bin Meng
On Sat, Jun 29, 2019 at 2:56 PM Anup Patel wrote: > > From: Bhargav Shah > > This patch adds SiFive SPI driver. The driver is 100% DM driver > and it determines input clock using clk framework. > > The SiFive SPI block is found on SiFive FU540 SOC and is used to > access flash and MMC devices on