[U-Boot] [PATCH v4 3/8] Enable CONFIG_BLK and CONFIG_DM_MMC to Kconfig

2018-08-06 Thread Yinbo Zhu
This enables the folowing to Kconfig: CONFIG_BLK CONFIG_DM_MMC Signed-off-by: Yinbo Zhu --- Change in v4: keep the same revision v4 for the entire set. configs/ls1021atwr_nor_SECURE_BOOT_defconfig |2 ++ configs/ls1021atwr_nor_defconfig

Re: [U-Boot] [U-Boot, v4, 9/9] ARM: dts: stm32: remove cd-inverted for stm32f746-disco

2018-08-06 Thread Patrice CHOTARD
Hi Tom On 08/05/2018 01:39 AM, Tom Rini wrote: > On Wed, Jul 25, 2018 at 05:49:12PM +0200, Patrice Chotard wrote: > >> As cd-inverted property is no more used by arm_pl180_mmci driver, >> remove it. Update cd-gpios active level accordingly. >> >> Reported-by: Tuomas Tynkkynen >> Signed-off-by:

Re: [U-Boot] [U-Boot, u-boot, 2/2] clk: clk_meson: Add mux and div support for reparent and rate setting

2018-08-06 Thread Neil Armstrong
Hi Tom, On 05/08/2018 01:39, Tom Rini wrote: > On Thu, Jul 26, 2018 at 03:54:04PM +0200, Neil Armstrong wrote: > >> This patch adds support for : >> - Rate calculation through muxes and generic dividers >> - Basic gate setting propagation >> - Reparenting for muxes >> - Clock rate setting

[U-Boot] [PATCH v4 08/17] timer: Sort Makefile entries

2018-08-06 Thread Mario Six
Makefile entries should be sorted. Signed-off-by: Mario Six --- Notes: v3 -> v4: New in v4 drivers/timer/Makefile | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/timer/Makefile b/drivers/timer/Makefile index ee2fcb1fa71..71c54048540 100644

[U-Boot] [PATCH v4 09/17] timer: Add MPC83xx timer driver

2018-08-06 Thread Mario Six
Add a timer driver for the MPC83xx architecture. Signed-off-by: Mario Six --- Notes: v3 -> v4: * Removed superfluous get_timer (switched to usage of standard function) * Improved error handling and debug reporting * Added full documentation v2 -> v3: * Got rid of

[U-Boot] [PATCH v4 11/17] init: Fix documentation

2018-08-06 Thread Mario Six
The documentation in init.h is not in kernel-doc format. Fix this. Signed-off-by: Mario Six --- Notes: v3 -> v4: New in v4 include/init.h | 27 ++- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/include/init.h b/include/init.h index

[U-Boot] [PATCH v4 14/17] cpu: Add cpu_probe_all method

2018-08-06 Thread Mario Six
Add a method to probe all CPUs of the board. Signed-off-by: Mario Six --- Notes: v3 -> v4: New in v4 drivers/cpu/cpu-uclass.c | 23 +++ include/cpu.h| 7 +++ 2 files changed, 30 insertions(+) diff --git a/drivers/cpu/cpu-uclass.c

Re: [U-Boot] [PATCH] gpio: xilinx: Add support for using label property

2018-08-06 Thread Michal Simek
On 5.8.2018 09:56, Stefan Herbrechtsmeier wrote: > Am 02.08.2018 um 13:31 schrieb Michal Simek: >> Add support for reading label property from DT and set up bank name >> based on that. If label property is not present full device node name is >> used. >> >> Signed-off-by: Michal Simek >> --- >>

[U-Boot] [PATCH] ARM: dts: stm32mp157: Add ADC DT node

2018-08-06 Thread Patrice Chotard
Add ADC device tree node. This allows to get analog conversions on stm32mp157. Signed-off-by: Fabrice Gasnier Signed-off-by: Patrice Chotard --- arch/arm/dts/stm32mp157c.dtsi | 32 1 file changed, 32 insertions(+) diff --git a/arch/arm/dts/stm32mp157c.dtsi

[U-Boot] [PATCH v4 17/17] misc: Add MPC83xx serdes driver

2018-08-06 Thread Mario Six
Add a driver to configure the SerDes (Serializer/Deserializer) lanes on the MPC83xx architecture. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- Notes: v3 -> v4: * Added full documentation * Introduced separate local header file * Added error debug output v2 ->

[U-Boot] [PATCH v4 15/17] test: Add tests for CPU uclass

2018-08-06 Thread Mario Six
Add a sandbox CPU driver, and some tests for the CPU uclass. Signed-off-by: Mario Six --- Notes: v3 -> v4: New in v4 arch/sandbox/dts/test.dts | 12 ++ drivers/cpu/Makefile | 1 + drivers/cpu/cpu_sandbox.c | 61 +++

[U-Boot] [PATCH v4 03/17] sysreset: Add get_status method

2018-08-06 Thread Mario Six
It's useful to have the reset status of the SoC printed out during reset (e.g. to learn whether the reset was caused by software or a watchdog). As a first step to implement this, add a get_status method to the sysreset class, which enables the caller to get printable information about the reset

[U-Boot] [PATCH v4 04/17] test: Add tests for sysreset_get_status

2018-08-06 Thread Mario Six
Add some tests for sysreset_get_status. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- Notes: v3 -> v4: * Switched to usage of strlcpy v2 -> v3: New in v3. drivers/sysreset/sysreset_sandbox.c | 16 test/dm/sysreset.c | 20

[U-Boot] [PATCH v4 02/17] powerpc: Add read*_*/write*_* macros

2018-08-06 Thread Mario Six
Define the read*_*/write*_* macros for the PowerPC platform to be able to use the macros in wait_bit.h. Signed-off-by: Mario Six --- Notes: v3 -> v4: New in v4 arch/powerpc/include/asm/io.h | 18 ++ 1 file changed, 18 insertions(+) diff --git

[U-Boot] [PATCH v2] gpio: xilinx: Add support for using label property

2018-08-06 Thread Michal Simek
Add support for reading label property from DT and set up bank name based on that. If label property is not present full device node name is used. Signed-off-by: Michal Simek --- Changes in v2: - Use strdup drivers/gpio/xilinx_gpio.c | 10 +- drivers/gpio/zynq_gpio.c | 10 +-

[U-Boot] [PATCH v4 8/8] armv7: ls1021a: enable esdhc

2018-08-06 Thread Yinbo Zhu
This patch is to enable eSDHC for ls1021a. Signed-off-by: Yinbo Zhu --- Change in v4: keep the same revision v4 for the entire set. arch/arm/dts/ls1021a.dtsi |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/arch/arm/dts/ls1021a.dtsi

[U-Boot] [PATCH v1 1/2] board: toradex: common: fail gracefully on missing NAND chip

2018-08-06 Thread Stefan Agner
From: Stefan Agner If the NAND chip is missing get_nand_dev_by_index() returns NULL. Fail gracefully in this case. Signed-off-by: Stefan Agner --- board/toradex/common/tdx-cfg-block.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH v1 2/2] colibri_imx7_emmc: add Colibri iMX7D 1GB (eMMC) module support

2018-08-06 Thread Stefan Agner
From: Stefan Agner This commit adds support for the Toradex Colibri iMX7D 1GB Computer on Module. The module is very similar to the Colibri iMX7D 512MB but uses eMMC instead of raw NAND. This patch introduces a new board specific Kconfig symbol to select between the two flash options.

Re: [U-Boot] boot partition access at HS200 speed in eMMC

2018-08-06 Thread Faiz Abbas
Hi, +JJ, Jaehoon Chung I had CCd them in my original mail but they seem to have been dropped in the U-boot list. On Thursday 02 August 2018 03:14 PM, Faiz Abbas wrote: > Hi Everyone, > > After the following patch from JJ, U-boot shifts to a lower speed mode > from HS200 when accessing a boot

Re: [U-Boot] [U-Boot,v2,6/6] ARM: dts: stm32mp157: Add ADC DT node

2018-08-06 Thread Patrice CHOTARD
Hi Tom On 08/05/2018 01:39 AM, Tom Rini wrote: > On Tue, Jul 24, 2018 at 04:31:33PM +0200, Fabrice Gasnier wrote: > >> Add ADC device tree node. This allows to get analog conversions on >> stm32mp157. >> >> Signed-off-by: Fabrice Gasnier >> Reviewed-by: Simon Glass > > This doesn't apply

[U-Boot] [PATCH v4 1/8] armv8: enable BLK code configuration

2018-08-06 Thread Yinbo Zhu
This patch is to enable BLK code configuration for SD boot. Signed-off-by: Yinbo Zhu --- Change in v4: keep the same revision v4 for the entire set. include/mmc.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/mmc.h b/include/mmc.h index

[U-Boot] [PATCH v4 2/8] armv8/ls1088a/ls2088a: esdhc: Add esdhc clock support

2018-08-06 Thread Yinbo Zhu
This patch adds esdhc clock support for ls1088a and ls2088a. Signed-off-by: Yinbo Zhu --- Change in v4: keep the same revision v4 for the entire set. .../arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-)

[U-Boot] [PATCH 2/2] ARM: dts: stm32: remove cd-inverted for stm32f746-disco

2018-08-06 Thread Patrice Chotard
As cd-inverted property is no more used by arm_pl180_mmci driver, remove it. Update cd-gpios active level accordingly. Reported-by: Tuomas Tynkkynen Signed-off-by: Patrice Chotard --- arch/arm/dts/stm32f746-disco.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH 0/2] Remove DT cd-inverted property for stm32f7

2018-08-06 Thread Patrice Chotard
This series : - removes DT cd-inverted property for stm32f746 and stm32f769 discovery boards Patrice Chotard (2): ARM: dts: stm32: remove cd-inverted for stm32f769-disco ARM: dts: stm32: remove cd-inverted for stm32f746-disco arch/arm/dts/stm32f746-disco.dts | 4 ++--

[U-Boot] [PATCH 1/2] ARM: dts: stm32: remove cd-inverted for stm32f769-disco

2018-08-06 Thread Patrice Chotard
As cd-inverted property is no more used by arm_pl180_mmci driver, remove it. Update cd-gpios active level accordingly. Reported-by: Tuomas Tynkkynen Signed-off-by: Patrice Chotard --- arch/arm/dts/stm32f769-disco.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH v4 06/17] mpc83xx: Add sysreset driver

2018-08-06 Thread Mario Six
Add a sysreset driver for the MPC83xx platform. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- Notes: v3 -> v4: * Fixed style violation * Added full documentation * Switched to wait_for_bit_be32 usage * Improved error handling and debug printing * Minimized usage

[U-Boot] [PATCH v4 10/17] common: board_f: Sort includes

2018-08-06 Thread Mario Six
Includes should be sorted. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- Notes: v3 -> v4: No changes v2 -> v3: No changes v1 -> v2: New in v2 common/board_f.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/board_f.c

[U-Boot] [PATCH v4 05/17] board_f: Add reset status printing

2018-08-06 Thread Mario Six
To print the reset status during boot, add a method print_resetinfo to board_f, which is called in init_sequence_f[], that gets the reset information from the sysreset driver (assuming there is only one seems reasonable), and prints it. Reviewed-by: Simon Glass Signed-off-by: Mario Six ---

[U-Boot] [v2 patch] net: fman: Support both new and legacy FMan Compatibles

2018-08-06 Thread Zhao Qiang
Recently the FMan Port and MAC compatibles were changed. This patch aligns the FMan Port and MAC compatibles to the new FMan device tree binding document. The FMan device tree binding document can be found in the Linux kernel: version 3.18.0 commit 297d35fd2a7d3fbd4e5c0f0c1c18213117ba11ba

[U-Boot] [PATCH v4 4/8] armv8: ls2088a: add eSDHC node

2018-08-06 Thread Yinbo Zhu
This patch is to add eSDHC node for ls2088a. Signed-off-by: Yinbo Zhu --- Change in v4: keep the same revision v4 for the entire set. arch/arm/dts/fsl-ls2080a.dtsi |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/fsl-ls2080a.dtsi

[U-Boot] [PATCH v4 5/8] armv8: ls1088a: add eSDHC node

2018-08-06 Thread Yinbo Zhu
This patch is to add eSDHC node for ls1088a. Signed-off-by: Yinbo Zhu --- Change in v4: keep the same revision v4 for the entire set. arch/arm/dts/fsl-ls1088a.dtsi |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/fsl-ls1088a.dtsi

[U-Boot] [PATCH v4 6/8] armv8: ls1043a: add eSDHC node

2018-08-06 Thread Yinbo Zhu
This patch is to add eSDHC node for ls1043a. Signed-off-by: Yinbo Zhu --- Change in v4: keep the same revision v4 for the entire set. arch/arm/dts/fsl-ls1043a.dtsi |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/fsl-ls1043a.dtsi

[U-Boot] [PATCH v4 7/8] armv8: ls1046a: add eSDHC node

2018-08-06 Thread Yinbo Zhu
This patch is to add eSDHC node for ls1046a. Signed-off-by: Yinbo Zhu --- Change in v4: keep the same revision v4 for the entire set. arch/arm/dts/fsl-ls1046a.dtsi |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/fsl-ls1046a.dtsi

Re: [U-Boot] [PATCH v1] Makefile: Don't generate position independent code

2018-08-06 Thread Heinrich Schuchardt
On 08/06/2018 08:55 PM, Andy Shevchenko wrote: > On Mon, 2018-08-06 at 19:32 +0200, Heinrich Schuchardt wrote: >> On 08/06/2018 07:11 PM, Andy Shevchenko wrote: >>> On Mon, 2018-08-06 at 18:56 +0200, Heinrich Schuchardt wrote: On 08/06/2018 06:00 PM, Andy Shevchenko wrote: > Fix all these

Re: [U-Boot] [PATCH v1] Makefile: Don't generate position independent code

2018-08-06 Thread Andy Shevchenko
On Mon, Aug 6, 2018 at 10:40 PM, Heinrich Schuchardt wrote: > On 08/06/2018 08:55 PM, Andy Shevchenko wrote: >> On Mon, 2018-08-06 at 19:32 +0200, Heinrich Schuchardt wrote: >>> On 08/06/2018 07:11 PM, Andy Shevchenko wrote: On Mon, 2018-08-06 at 18:56 +0200, Heinrich Schuchardt wrote: >

Re: [U-Boot] MMC_DAVINCI not compliant with CONFIG_BLK

2018-08-06 Thread Adam Ford
On Mon, Aug 6, 2018, 6:30 PM Peter Howard wrote: > > > >From: Adam Ford > >Sent: Tuesday, 7 August 2018 9:12 AM > >To: Peter Howard > >Cc: U-Boot Mailing List ; David Lechner < > da...@lechnology.com>; Stefano Babic ; Heiko Schocher < > h...@denx.de>; Christoph Rüdisser ; > Manfred Rudigier >

Re: [U-Boot] [PATCH 00/17] fs: fat: extend FAT write operations

2018-08-06 Thread Heinrich Schuchardt
On 07/23/2018 04:46 PM, Tom Rini wrote: > On Sun, Jul 22, 2018 at 08:44:39AM +0200, Heinrich Schuchardt wrote: >> Hello Tom, hello Alex, >> >> I have been testing the patches. They are working fine for ASCII file >> names. To support Unicode file names extra work will be needed. But >> probably we

Re: [U-Boot] [PATCH v2 3/3] configs: kirkwood: Move RTC_MV to DM and Kconfig

2018-08-06 Thread Chris Packham
On Tue, Aug 7, 2018 at 12:12 AM Stefan Roese wrote: > > Hi Chris, > > On 29.06.2018 00:38, Chris Packham wrote: > > Now that there is DM support in the RTC_MV driver update board configs > > to use it. > > > > Signed-off-by: Chris Packham > > I'm a bit late this time in the release cycle. This

Re: [U-Boot] [PATCH v4 01/13] test: regmap: Increase size of syscon0 memory

2018-08-06 Thread Anatolij Gustschin
Hi Mario, On Fri, 3 Aug 2018 10:01:06 +0200 Mario Six mario@gdsys.cc wrote: ... > diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts > index e941cea3e5c..47cc961890f 100644 > --- a/arch/sandbox/dts/test.dts > +++ b/arch/sandbox/dts/test.dts > @@ -406,7 +406,7 @@ > >

Re: [U-Boot] MMC_DAVINCI not compliant with CONFIG_BLK

2018-08-06 Thread Peter Howard
>From: Adam Ford >Sent: Tuesday, 7 August 2018 9:12 AM >To: Peter Howard >Cc: U-Boot Mailing List ; David Lechner >; Stefano Babic ; Heiko Schocher >; Christoph Rüdisser ; >Manfred Rudigier >Subject: Re: MMC_DAVINCI not compliant with CONFIG_BLK > > >> On Mon, Aug 6, 2018, 5:22 PM Peter

Re: [U-Boot] MMC_DAVINCI not compliant with CONFIG_BLK

2018-08-06 Thread Peter Howard
Sorry a clarification - my main focus is the LCDK board - it's that one which has the 4K overrun. -Original Message- From: Peter Howard Sent: Tuesday, 7 August 2018 8:22 AM To: 'Adam Ford' ; U-Boot Mailing List Cc: David Lechner ; Stefano Babic ; Heiko Schocher ; Christoph Rüdisser ;

[U-Boot] [PATCH] Convert CONFIG_TWL4030_LED et al to Kconfig

2018-08-06 Thread Adam Ford
This converts the following to Kconfig: CONFIG_TWL4030_LED CONFIG_TWL4030_INPUT This also removes dead references to: CONFIG_TWL4030_KEYPAD Signed-off-by: Adam Ford --- configs/cairo_defconfig | 1 + configs/cm_t35_defconfig | 1 + configs/devkit8000_defconfig

[U-Boot] [PATCH 1/1] efi_loader: avoid NULL dereference in efi_get_memory_map()

2018-08-06 Thread Heinrich Schuchardt
We should only dereference parameter memory_map_size after checking that it is valid. Fixes: 8e835554b36b ("efi_loader: check parameters of GetMemoryMap") Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_memory.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

Re: [U-Boot] [PATCH 3/4] cmd: mtd: Don't use with negative return codes for shell commands

2018-08-06 Thread Boris Brezillon
On Mon, 6 Aug 2018 17:12:52 +0200 Stefan Roese wrote: > When negative return codes are used in commands (do_foo()), the shell > prints these messages: > > exit not allowed from main input shell. > > Change the return codes in the new mtd commands to use only positive > values and these

Re: [U-Boot] [PATCH v6 00/27] SPI-NAND support

2018-08-06 Thread Boris Brezillon
On Mon, 6 Aug 2018 19:45:24 +0200 Stefan Roese wrote: > Hi Miquel, > > I just noticed that when using this patchset version, I'm > getting oopses / crashes while trying to attach an MTD > partition to UBI using "ubi part". This did not happen > with earlier versions. > > I digged a bit into it

Re: [U-Boot] MMC_DAVINCI not compliant with CONFIG_BLK

2018-08-06 Thread Peter Howard
Hi Adam, My normal email is broken at the moment sorry for inflicting Outlook on you ☹ I've been working on this for a few weeks and at this stage I have a u-boot that builds. The only problem is that introducing the DM into the SPL build (for NAND) currently overruns the SRAM area by 4K or

[U-Boot] [PATCH 1/1] efi_loader: efi_dp_get_next_instance() superfluous statemt

2018-08-06 Thread Heinrich Schuchardt
Remove a superfluous statement in efi_dp_get_next_instance(). p is reassigned a value before the old one is used. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_device_path.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/efi_loader/efi_device_path.c

[U-Boot] [PATCH 1/1] efi_loader: efi_dp_get_next_instance() superfluous statemt

2018-08-06 Thread Heinrich Schuchardt
Remove a superfluous statement in efi_dp_get_next_instance(). p is reassigned a value before the old one is used. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_device_path.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/efi_loader/efi_device_path.c

[U-Boot] Can't boot my FIT image: 'Could not find configuration node'

2018-08-06 Thread Grant Jurgensen
Hi, I'm using U-boot to boot an ELF image. I am easily able to load the image into memory and boot it with the `bootelf` command. However, I'd like to create a FIT image in order to make use of the convenient hashing and secure boot features, but I'm having trouble getting my image to boot. Here

Re: [U-Boot] [PATCH 2/5] arm: socfpga: fix device trees to work with DM serial

2018-08-06 Thread Emmanuel Vadot
On Mon, 6 Aug 2018 15:42:01 +0200 Simon Goldschmidt wrote: > Marek Vasut schrieb am Mo., 6. Aug. 2018, 15:19: > > > On 08/05/2018 09:34 PM, Simon Goldschmidt wrote: > > > Device trees need to have the serial console device available > > > before relocation and require a stdout-path in chosen

Re: [U-Boot] [PATCH 4/6] mvebu: select boot device at SoC level

2018-08-06 Thread Dennis Gilmore
Weird git am failed for me so I had to tweak the patch. I must have done something wrong on my end. I did test on the helios4 after applying the set and it booted fine On 6 August 2018 2:13:33 pm GMT+02:00, Stefan Roese wrote: >Hi Baruch, > >On 06.08.2018 12:12, Baruch Siach wrote: >> Hi

Re: [U-Boot] [PATCH 4/4] cmd: mtd: Add info text to mtd erase subcommand

2018-08-06 Thread Boris Brezillon
On Mon, 6 Aug 2018 17:12:53 +0200 Stefan Roese wrote: > Adding this info helps seeing, what really is being erased - especially > if no arguments are passed for offset and size. Now this is the > output: > > => mtd erase spi-nand0 > Erasing 0x ... 0x07ff (65536 page(s)) > nand:

Re: [U-Boot] [PATCH 1/1] distro_bootcmd: Switch bootefi to use loadaddr by default.

2018-08-06 Thread Alexander Graf
On 06.08.18 13:00, Kristian Amlie wrote: > Ping. Any objections to this change? I definitely don't want to have the bootefi path behave any different from the other distro boot targets. That would just cause confusion down the road. Do they (pxe boot, extlinux, etc) make use of loadaddr?

[U-Boot] [PATCH] sandbox: Move BSS after EFI sections

2018-08-06 Thread Alexander Graf
Something went wrong when writing the sandbox linker scripts and so we ended up with a .bss section marker right before the efi runtime sections. That obviously is a terrible idea, as it may result in overwriting efi runtime code and data. So let's move the .bss identifier behind the efi

Re: [U-Boot] MMC_DAVINCI not compliant with CONFIG_BLK

2018-08-06 Thread Adam Ford
On Mon, Aug 6, 2018, 5:22 PM Peter Howard wrote: > Sorry a clarification - my main focus is the LCDK board - it's that one > which has the 4K overrun. > > -Original Message- > From: Peter Howard > Sent: Tuesday, 7 August 2018 8:22 AM > To: 'Adam Ford' ; U-Boot Mailing List < >

Re: [U-Boot] [PATCH 2/4] mtd: nand: Don't abort erase operation when a bad block is detected

2018-08-06 Thread Boris Brezillon
Hi Stefan, On Mon, 6 Aug 2018 17:12:51 +0200 Stefan Roese wrote: > It was noticed, that the erase command (mtd erase spi-nand0) aborts upon > the first bad block. With this change, bad blocks are now skipped and > the erase operation will continue. > That's not what the raw NAND framework

Re: [U-Boot] MMC_DAVINCI not compliant with CONFIG_BLK

2018-08-06 Thread Adam Ford
On Mon, Aug 6, 2018, 5:21 PM Peter Howard wrote: > Hi Adam, > > My normal email is broken at the moment sorry for inflicting Outlook on > you ☹ > > > I've been working on this for a few weeks and at this stage I have a > u-boot that builds. The only problem is that introducing the DM into the >

Re: [U-Boot] [PATCH 1/4] spi: spi-mem: Add optional half-duplex SPI transfer mode

2018-08-06 Thread Boris Brezillon
Hi Stefan, On Mon, 6 Aug 2018 17:12:50 +0200 Stefan Roese wrote: > Some SPI controller might now support full-duplex SPI transfers. > This option can be enabled to use half-duplex operation mode for > such SPI controllers. > > Signed-off-by: Stefan Roese > Cc: Miquel Raynal > Cc: Boris

Re: [U-Boot] [PATCH v6 00/27] SPI-NAND support

2018-08-06 Thread Stefan Roese
Hi Boris, On 06.08.2018 22:43, Boris Brezillon wrote: On Mon, 6 Aug 2018 19:45:24 +0200 Stefan Roese wrote: Hi Miquel, I just noticed that when using this patchset version, I'm getting oopses / crashes while trying to attach an MTD partition to UBI using "ubi part". This did not happen with

Re: [U-Boot] [PATCH 1/3] arm: exynos4: fix warning of dts

2018-08-06 Thread Minkyu Kang
2018년 8월 2일 (목) 17:44, Minkyu Kang 님이 작성: > Hi, > > 2018년 7월 31일 (화) 21:58, Tom Rini 님이 작성: > >> On Tue, Jul 31, 2018 at 04:12:42PM +0900, Minkyu Kang wrote: >> >> > remove this warning: avoid_unnecessary_addr_size >> > >> > Signed-off-by: Minkyu Kang >> > --- >> >

Re: [U-Boot] [PATCH 2/3] arm: exynos5: fix warning of dts

2018-08-06 Thread Minkyu Kang
2018년 7월 31일 (화) 16:14, Minkyu Kang 님이 작성: > remove this warning: avoid_unnecessary_addr_size > > Signed-off-by: Minkyu Kang > --- > arch/arm/dts/exynos5.dtsi | 2 -- > arch/arm/dts/exynos5250-pinctrl-uboot.dtsi | 4 > arch/arm/dts/exynos54xx-pinctrl-uboot.dtsi | 8

Re: [U-Boot] [PATCHv2 2/2] Convert all of CONFIG_CONS_INDEX to Kconfig

2018-08-06 Thread Tom Rini
On Mon, Aug 06, 2018 at 08:22:31AM -0500, Adam Ford wrote: > On Tue, Mar 6, 2018 at 6:02 PM Tom Rini wrote: > > > > This converts the following to Kconfig: > >CONFIG_CONS_INDEX > > > > We have existing entries for this option in a number of places, with > > different guards on them. They're

Re: [U-Boot] [PATCH 00/17] fs: fat: extend FAT write operations

2018-08-06 Thread AKASHI Takahiro
On Tue, Aug 07, 2018 at 12:34:28AM +0200, Heinrich Schuchardt wrote: > On 07/23/2018 04:46 PM, Tom Rini wrote: > > On Sun, Jul 22, 2018 at 08:44:39AM +0200, Heinrich Schuchardt wrote: > >> Hello Tom, hello Alex, > >> > >> I have been testing the patches. They are working fine for ASCII file > >>

Re: [U-Boot] [PATCH 0/7] ARM: dts: sunxi: Update dts(i) files from

2018-08-06 Thread Chen-Yu Tsai
On Sun, Aug 5, 2018 at 3:10 AM, Jagan Teki wrote: > This series is trying to update SoC dtsi and board dts files > for Allwinner sun4i, 5i, 6i, 8i-a23/a33/a83t, r40 SoC's > from Linux-4.18-rc3 Could you also mention the tag in each patch's subject line? That would make it more informative. The

[U-Boot] [PATCH] spi: Add SPI driver for MT76xx SoCs

2018-08-06 Thread Stefan Roese
This patch adds the SPI driver for the MediaTek MT7688 SoC (and derivates). Its been tested on the LinkIt Smart 7688 and the Gardena Smart Gateway with and SPI NOR on CS0 and on the Gardena Smart Gateway additionally with an SPI NAND on CS1. Note that the SPI controller only supports a max

Re: [U-Boot] [PATCH 00/17] fs: fat: extend FAT write operations

2018-08-06 Thread Heinrich Schuchardt
On 08/07/2018 07:38 AM, AKASHI Takahiro wrote: > On Tue, Aug 07, 2018 at 12:34:28AM +0200, Heinrich Schuchardt wrote: >> On 07/23/2018 04:46 PM, Tom Rini wrote: >>> On Sun, Jul 22, 2018 at 08:44:39AM +0200, Heinrich Schuchardt wrote: Hello Tom, hello Alex, I have been testing the

Re: [U-Boot] Can't boot my FIT image: 'Could not find configuration node'

2018-08-06 Thread Johann Neuhauser
Dear Grant, I see there is a typo in your kernel node name. In the image section you wrote kerne-0 and in the config section you wrote kernel = "kernel-0"; Probably this is the issue that no config and kernel image is found. Regards, Johann Neuhauser > -Ursprüngliche Nachricht- >

Re: [U-Boot] [PATCH v2 0/8] ARM: Odroid XU3: Enable DM_MMC support which is necessary for CONFIG_BLK

2018-08-06 Thread Minkyu Kang
Hi, 2018년 8월 1일 (수) 21:49, Lukasz Majewski 님이 작성: > This patch series provides following improvements to Odroid XU3: > - Fix sdr_timing problem with DW_MMC running with DM > - Clean up the defconfig file > - Fix potential memory leak when running under DM (DW_MMC) > - Rebase on newest ML > -

Re: [U-Boot] [PATCH 3/3] Remove includes and PRI* usages in printf() entirely

2018-08-06 Thread Masahiro Yamada
2018-08-06 22:20 GMT+09:00 Andy Shevchenko : > On Mon, Aug 6, 2018 at 2:47 PM, Masahiro Yamada > wrote: > >> The use of PRI* makes the code super-ugly. You can simply use >> "l" for printing uintptr_t, "ll" for u64, and no modifier for u32. > > This is not always the case. I dunno what exact

Re: [U-Boot] [PATCH 4/4] cmd: mtd: Add info text to mtd erase subcommand

2018-08-06 Thread Stefan Roese
Hi Boris, On 06.08.2018 22:41, Boris Brezillon wrote: On Mon, 6 Aug 2018 17:12:53 +0200 Stefan Roese wrote: Adding this info helps seeing, what really is being erased - especially if no arguments are passed for offset and size. Now this is the output: => mtd erase spi-nand0 Erasing

Re: [U-Boot] [PATCH 2/4] mtd: nand: Don't abort erase operation when a bad block is detected

2018-08-06 Thread Stefan Roese
Hi Boris, On 06.08.2018 22:06, Boris Brezillon wrote: Hi Stefan, On Mon, 6 Aug 2018 17:12:51 +0200 Stefan Roese wrote: It was noticed, that the erase command (mtd erase spi-nand0) aborts upon the first bad block. With this change, bad blocks are now skipped and the erase operation will

Re: [U-Boot] [PATCH 3/3] arm: spring: fix alias of mmc correctly

2018-08-06 Thread Minkyu Kang
2018년 7월 31일 (화) 16:14, Minkyu Kang 님이 작성: > Signed-off-by: Minkyu Kang > --- > arch/arm/dts/exynos5250-spring.dts | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/dts/exynos5250-spring.dts > b/arch/arm/dts/exynos5250-spring.dts > index b73b572..7633d36 100644 >

Re: [U-Boot] [PATCH 1/4] spi: spi-mem: Add optional half-duplex SPI transfer mode

2018-08-06 Thread Stefan Roese
Hi Boris, On 06.08.2018 21:53, Boris Brezillon wrote: Hi Stefan, On Mon, 6 Aug 2018 17:12:50 +0200 Stefan Roese wrote: Some SPI controller might now support full-duplex SPI transfers. This option can be enabled to use half-duplex operation mode for such SPI controllers. Signed-off-by:

Re: [U-Boot] [PATCH 3/4] cmd: mtd: Don't use with negative return codes for shell commands

2018-08-06 Thread Stefan Roese
Hi Boris, On 06.08.2018 22:38, Boris Brezillon wrote: On Mon, 6 Aug 2018 17:12:52 +0200 Stefan Roese wrote: When negative return codes are used in commands (do_foo()), the shell prints these messages: exit not allowed from main input shell. Change the return codes in the new mtd commands

Re: [U-Boot] [PATCH v3] drivers: spi: migrate cf_spi to DM

2018-08-06 Thread Jagan Teki
On Fri, Jun 29, 2018 at 1:18 AM, Angelo Dureghello wrote: > Hi Jagan, > > On Wed, Jun 27, 2018 at 02:54:42PM +0530, Jagan Teki wrote: >> On Wed, Jun 27, 2018 at 2:27 PM, Angelo Dureghello wrote: >> > Hi Jagan, >> > >> > On Wed, Jun 27, 2018 at 12:08:26PM +0530, Jagan Teki wrote: >> >> On Tue,

Re: [U-Boot] [PATCH 1/4] spi: spi-mem: Add optional half-duplex SPI transfer mode

2018-08-06 Thread Boris Brezillon
On Tue, 7 Aug 2018 07:06:58 +0200 Stefan Roese wrote: > Hi Boris, > > On 06.08.2018 21:53, Boris Brezillon wrote: > > Hi Stefan, > > > > On Mon, 6 Aug 2018 17:12:50 +0200 > > Stefan Roese wrote: > > > >> Some SPI controller might now support full-duplex SPI transfers. > >> This option can

Re: [U-Boot] [PATCH 00/17] fs: fat: extend FAT write operations

2018-08-06 Thread AKASHI Takahiro
On Tue, Aug 07, 2018 at 02:38:34PM +0900, AKASHI Takahiro wrote: > On Tue, Aug 07, 2018 at 12:34:28AM +0200, Heinrich Schuchardt wrote: > > On 07/23/2018 04:46 PM, Tom Rini wrote: > > > On Sun, Jul 22, 2018 at 08:44:39AM +0200, Heinrich Schuchardt wrote: > > >> Hello Tom, hello Alex, > > >> > > >>

Re: [U-Boot] [PATCH u-boot 1/2] power: domain: Add the VPU Power Domain driver

2018-08-06 Thread Neil Armstrong
On 02/08/2018 22:36, Simon Glass wrote: > Hi Neil, > > On 26 July 2018 at 07:54, Neil Armstrong wrote: >> The Amlogic Meson SoCs embeds a specific Power Domain dedicated to the >> Video Processing Unit. >> This patch implements support for this power domain in preparation of the >> future

[U-Boot] [PATCH v2 u-boot 2/2] clk: clk_meson: Add mux and div support for reparent and rate setting

2018-08-06 Thread Neil Armstrong
This patch adds support for : - Rate calculation through muxes and generic dividers - Basic gate setting propagation - Reparenting for muxes - Clock rate setting through generic dividers without reparenting Support is only added to the Composite VPU and VAPB clocks in order to support the Video

[U-Boot] [PATCH v2 u-boot 1/2] power: domain: Add the VPU Power Domain driver

2018-08-06 Thread Neil Armstrong
The Amlogic Meson SoCs embeds a specific Power Domain dedicated to the Video Processing Unit. This patch implements support for this power domain in preparation of the future support for the Video display support in U-Boot. This driver will depend on changes in the clock driver to handle the

Re: [U-Boot] [PATCH v4 04/13] regmap: Improve error handling

2018-08-06 Thread Anatolij Gustschin
On Fri, 3 Aug 2018 10:01:09 +0200 Mario Six mario@gdsys.cc wrote: > ofnode_read_simple_addr_cells may fail and return a negative error code. > Check for this when initializing regmaps. > > Also check if both_len is zero, since this is perfectly possible, and > would lead to a

Re: [U-Boot] [PATCH v4 07/13] regmap: Add raw read/write functions

2018-08-06 Thread Anatolij Gustschin
On Fri, 3 Aug 2018 10:01:12 +0200 Mario Six mario@gdsys.cc wrote: > The regmap functions currently assume that all register map accesses > have a data width of 32 bits, but there are maps that have different > widths. > > To rectify this, implement the regmap_raw_read and regmap_raw_write >

Re: [U-Boot] [PATCH 3/5] arm: socfpga: cyclone5: handle debug uart

2018-08-06 Thread Marek Vasut
On 08/05/2018 09:34 PM, Simon Goldschmidt wrote: > If CONFIG_DEBUG_UART is enabled, correctly initialize > the debug uart before console is initialized to debug > early boot problems in SPL. > > This also changes a printf in reset_manager_gen5 to > a debug to prevent calling into debug uart

Re: [U-Boot] [PATCH] arm: socfpga: make socfpga_socrates_defconfig boot from QSPI

2018-08-06 Thread Marek Vasut
On 08/06/2018 03:05 PM, Simon Goldschmidt wrote: > This fixes the board's dts to supply SPL with QSPI info. > > The EBV Socrates board has DIP switches to boot from SD card or > QSPI, so let's fix its defconfig to work for both cases. > > Signed-off-by: Simon Goldschmidt > > --- > >

Re: [U-Boot] [PATCH 2/5] arm: socfpga: fix device trees to work with DM serial

2018-08-06 Thread Marek Vasut
On 08/05/2018 09:34 PM, Simon Goldschmidt wrote: > Device trees need to have the serial console device available > before relocation and require a stdout-path in chosen at least > for SPL to have a console. > > Signed-off-by: Simon Goldschmidt This should be upstreamed to Linux too ? > --- >

Re: [U-Boot] [PATCH 3/3] Remove includes and PRI* usages in printf() entirely

2018-08-06 Thread Andy Shevchenko
On Mon, Aug 6, 2018 at 2:47 PM, Masahiro Yamada wrote: > The use of PRI* makes the code super-ugly. You can simply use > "l" for printing uintptr_t, "ll" for u64, and no modifier for u32. This is not always the case. I dunno what exact usage of PRIx in U-Boot, but this is correct way for some

Re: [U-Boot] [PATCH 4/5] board_init.c: fix simple malloc by storing malloc_limit

2018-08-06 Thread Marek Vasut
On 08/05/2018 09:34 PM, Simon Goldschmidt wrote: > board_init_f_init_reserve() sets gd->malloc_base but does > not set gd->malloc_limit. This results in malloc_simple() > failing, so let's set this here. > > Signed-off-by: Simon Goldschmidt > --- > > common/init/board_init.c | 1 + > 1 file

Re: [U-Boot] [PATCH] arm: socfpga: make socfpga_socrates_defconfig boot from QSPI

2018-08-06 Thread Simon Goldschmidt
Marek Vasut schrieb am Mo., 6. Aug. 2018, 15:19: > On 08/06/2018 03:05 PM, Simon Goldschmidt wrote: > > This fixes the board's dts to supply SPL with QSPI info. > > > > The EBV Socrates board has DIP switches to boot from SD card or > > QSPI, so let's fix its defconfig to work for both cases. >

[U-Boot] [PATCH] gpio: xilinx: Return 0 from xilinx_gpio_set_value

2018-08-06 Thread Michal Simek
.set_value functions have no specified return value and gpio_uclass is not working with it too. But this patch is returning 0 to be in sync with others DM gpio drivers. Reported-by: Stefan Herbrechtsmeier Signed-off-by: Michal Simek --- drivers/gpio/xilinx_gpio.c | 2 +- 1 file changed, 1

[U-Boot] [PATCH v4 13/17] cpu: Fix cpu.h documentation

2018-08-06 Thread Mario Six
Documentation in cpu.h is not in kernel-doc format. Change it to comply with it. Signed-off-by: Mario Six --- Notes: v3 -> v4: New in v4 include/cpu.h | 28 +++- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/include/cpu.h b/include/cpu.h index

[U-Boot] [PATCH v4 01/17] ram: Add driver for MPC83xx

2018-08-06 Thread Mario Six
Add a RAM driver for the MPC83xx architecture. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- Notes: v3 -> v4: * Switched preprocessor constants to C constants * Improved error reporting * Added driver binding file * Added full documentation v2 -> v3: *

[U-Boot] [PATCH v4 16/17] cpu: Add MPC83xx CPU driver

2018-08-06 Thread Mario Six
Add a CPU driver for the MPC83xx architecture. Signed-off-by: Mario Six --- Notes: v3 -> v4: * Fixed style violations * Switched to using cpu_probe_all method * Switched to bitfield macros * Moved mpc83xx_cpu_info fields into mpc83xx_cpu_priv * Fixed CPU family

[U-Boot] [PATCH v4 07/17] clk: Add MPC83xx clock driver

2018-08-06 Thread Mario Six
Add a clock driver for the MPC83xx architecture. Signed-off-by: Mario Six --- Notes: v3 -> v4: * Gotten rid of all #ifdefs (SoC is now determined by compatible string) * Added MPC83xx-wide functions to get properties of SoCs * Gotten rid of most clock variables in global data

[U-Boot] [PATCH v4 12/17] board_f: Use static print_cpuinfo if CONFIG_CPU is active

2018-08-06 Thread Mario Six
When the DM CPU drivers are active, printing information about a CPU should be delegated to a matching driver. Hence, add a static print_cpuinfo that implements this delegation when DM CPU drivers are active. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- Notes: v3 -> v4: *

Re: [U-Boot] [PATCH V2 1/4] power-domain: add dummy functions when CONFIG_POWER_DOMAIN not defined

2018-08-06 Thread Anatolij Gustschin
On Mon, 6 Aug 2018 11:09:27 +0200 Anatolij Gustschin ag...@denx.de wrote: ... > Applied to u-boot-staging/ag...@denx.de, thanks! Dropped, it breaks building. -- Anatolij ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] Unable to boot evb-ast2500

2018-08-06 Thread Cédric Le Goater
On 08/06/2018 05:25 AM, Joel Stanley wrote: > Hello, > > I am attempting to boot evb-ast2500 in Qemu before flashing it to a > system. It doesn't get past the DRAM step, due to getting stuck > endlessly looping in some libfdt code. > > With some debugging turned on, I get this: > > OF:

[U-Boot] [PATCH 1/3] Remove CONFIG_USE_STDINT

2018-08-06 Thread Masahiro Yamada
You do not need to use the typedefs provided by compiler. Our compilers are either IPL32 or LP64. Hence, U-Boot can/should always use int-ll64.h typedefs like Linux kernel, whatever the typedefs the compiler internally uses. Signed-off-by: Masahiro Yamada --- README

[U-Boot] [PATCH 3/3] Remove includes and PRI* usages in printf() entirely

2018-08-06 Thread Masahiro Yamada
In int-ll64.h, we always use the following typedefs: typedef unsigned int u32; typedef unsigned longuintptr_t; typedef unsigned long long u64; This does not need to match to the compiler's . Do not include it. The use of PRI* makes the code super-ugly. You can simply

[U-Boot] MMC_DAVINCI not compliant with CONFIG_BLK

2018-08-06 Thread Adam Ford
From what I gathered over the weekend, the MMC_DAVINCI hasn't migrated to DM_MMC nor does CONFIG_BLK successfully build on ARCH_DAVINCI boards that enable MMC_DAVINCI. I started work to attempt to make it DM_MMC and OF_CONTROL compliant using the da850evm. Before I go too far, I just want to

Re: [U-Boot] [PATCH] ARM: dts: stm32f4: Fix DT dtc warnings

2018-08-06 Thread Patrice CHOTARD
Hi Tom On 08/06/2018 02:07 PM, Tom Rini wrote: > On Mon, Aug 06, 2018 at 11:25:42AM +0200, Patrice Chotard wrote: >> From: Patrick Delaunay >> >> This patch fix the following warnings for for stm32f429 >> evaluation and discovery boards: >> >> unnecessary #address-cells/#size-cells without

  1   2   3   >