Re: [PATCH v2] ARM: dts: renesas: Remove leading 0x from rpc node

2020-12-12 Thread Marek Vasut
On 11/29/20 2:21 PM, Lad Prabhakar wrote: Remove the leading "0x" from rpc node to fix the below dtc warning: Warning (simple_bus_reg): Node /soc/rpc@0xee20 simple-bus unit address format error, expected "ee20" Applied, thanks.

Re: [PATCH] gpio: pca953x: add bus option to select the i2c bus.

2020-12-12 Thread Chris Packham
On Sun, 13 Dec 2020, 4:44 AM Simon Glass, wrote: > Hi Joseph, > > On Tue, 8 Dec 2020 at 00:32, Joseph Liu wrote: > > > > From: Joseph Liu > > > > If DM_I2C is used, the command "i2c dev" will not reassign > > gd->cur_i2c_bus. > > > > Add this bus option to change the active I2C bus. > > > > Sig

Re: [PATCH v2 00/26] dm: Change the way sequence numbers are implemented

2020-12-12 Thread Simon Glass
Hi Michael, On Sat, 12 Dec 2020 at 10:53, Michael Walle wrote: > > Hi Simon, > > Am 2020-12-12 16:39, schrieb Simon Glass: > >> Sequence numbers looks good, but PCI still doesnt work on my board. > > > > Thanks for trying this out. > > > > I suppose you have a different problem from what I found

[PATCH] cmd: mmc: modify partconf to be used in script

2020-12-12 Thread grygorii tertychnyi
To implement dual-boot strategy we need to know what is the current boot partition for U-Boot. It can be easily identified by looking at the PARTITION_CONFIG value shown by "mmc partconf dev", but I didn't find any way to use it in the boot script. Hence, modify it, so that "mmc partboot dev part_

[PATCH v1 2/2] board: imx8mm: add boot.cmd for distro boot on iMX8MM

2020-12-12 Thread Alice Guo (OSS)
From: Alice Guo Distro Boot requires a U-Boot-specific script named boot.scr or boot.scr.uimg which contains boot commands to boot the system. The boot.cmd is such a file. Use mkimage to generate boot.scr or boot.scr.uimg from boot.cmd, and the command is: mkimage -A arm -O linux -T script -C non

[PATCH v1 1/2] imx8mm: configs: add support for distro boot commands

2020-12-12 Thread Alice Guo (OSS)
From: Alice Guo Supported boot device types in iMX8MM: MMC, QSPI, DHCP. BOOTENV introduces other environment variables, so the size of ENV should be increased. CONFIG_CMD_PART is added for command part and CONFIG_CMD_FS_GENERIC is for command fstype. CONFIG_BOOTCOMMAND which is defined in inclu

Re: [PATCH v2 00/26] dm: Change the way sequence numbers are implemented

2020-12-12 Thread Michael Walle
Hi Simon, Am 2020-12-12 16:39, schrieb Simon Glass: Sequence numbers looks good, but PCI still doesnt work on my board. Thanks for trying this out. I suppose you have a different problem from what I found in v1. Can you please send the output of these things before and after the change? dm t

Re: [PATCH 1/3] image: support board_fit_config_name_match

2020-12-12 Thread Simon Glass
Hi Sebastian, On Sat, 12 Dec 2020 at 10:05, Sebastian Reichel wrote: > > Hello Simon, > > On Sat, Dec 12, 2020 at 08:39:45AM -0700, Simon Glass wrote: > > > +#if !defined(USE_HOSTCC) && defined(CONFIG_MULTI_DTB_FIT) > > > > Is there a way to use 'if IS_ENABLED() 'instead? Here Perhaps we need > >

Re: [PATCH 1/3] image: support board_fit_config_name_match

2020-12-12 Thread Sebastian Reichel
Hello Simon, On Sat, Dec 12, 2020 at 08:39:45AM -0700, Simon Glass wrote: > > +#if !defined(USE_HOSTCC) && defined(CONFIG_MULTI_DTB_FIT) > > Is there a way to use 'if IS_ENABLED() 'instead? Here Perhaps we need > a new host_build() function in a suitable header file that returns the > value of US

Re: [PATCH v2 4/4] mkimge: Reject signing-related flags without FIT_SIGNATURE

2020-12-12 Thread Simon Glass
Hi, On Tue, 8 Dec 2020 at 08:38, Philippe REYNES wrote: > > Hi Joel > > > Le 08/12/2020 à 05:12, Joel Stanley a écrit : > > When CONFIG_FIT_SIGNATURE=n the signing options are not available. If a > > user is careful they will notice this when looking at the help output. > > > > If they are not ca

Re: [PATCH] gpio: pca953x: add bus option to select the i2c bus.

2020-12-12 Thread Simon Glass
Hi Joseph, On Tue, 8 Dec 2020 at 00:32, Joseph Liu wrote: > > From: Joseph Liu > > If DM_I2C is used, the command "i2c dev" will not reassign > gd->cur_i2c_bus. > > Add this bus option to change the active I2C bus. > > Signed-off-by: Joseph Liu > --- > drivers/gpio/pca953x.c | 14 +

Re: [PATCH 3/4] console: remove #ifdef CONFIG_CONSOLE_RECORD

2020-12-12 Thread Simon Glass
Hi Patrick, On Thu, 3 Dec 2020 at 02:20, Patrick Delaunay wrote: > > Add helper functions to access to gd->console_out and gd->console_in > with membuff API and replace the #ifdef CONFIG_CONSOLE_RECORD test > by if (IS_ENABLED(CONFIG_CONSOLE_RECORD)) to respect the U-Boot > coding rule. > > Signe

Re: [PATCH] bootcount: allow to use this feature on TPL

2020-12-12 Thread Simon Glass
On Fri, 11 Dec 2020 at 11:57, Philippe Reynes wrote: > > This commit add an option TPL_BOOTCOUNT_LIMIT to > use bootcount on TPL. > > Signed-off-by: Philippe Reynes > --- > common/spl/Kconfig | 9 - > common/spl/spl.c| 4 +++- > drivers/Makefile| 1 + > include/bootcount.h | 6 +

Re: [PATCH 1/1] doc: move README.trace to HTML documentation

2020-12-12 Thread Simon Glass
On Sat, 12 Dec 2020 at 02:16, Heinrich Schuchardt wrote: > > Convert README.trace to reStructured text and move it to develop/trace.rst. > > Signed-off-by: Heinrich Schuchardt > --- > doc/README.trace | 346 > doc/develop/index.rst | 1 + > doc/dev

Re: [PATCH 1/1] doc: move README.commands to HTML doc

2020-12-12 Thread Simon Glass
On Sat, 12 Dec 2020 at 00:39, Heinrich Schuchardt wrote: > > Reformat README.commands as reStructured text and add it to the HTML > documentation as develop/commands.rst. > > Signed-off-by: Heinrich Schuchardt > --- > doc/README.commands | 186 > doc/develop

Re: [PATCH v2 1/2] x86: edison: Use dwc3-generic driver for Intel Edison

2020-12-12 Thread Simon Glass
On Thu, 3 Dec 2020 at 10:45, Andy Shevchenko wrote: > > Use generic Synopsys DesignWare 3 driver on Intel Edison. > For now it's just a stub which allows future refactoring. > > Signed-off-by: Andy Shevchenko > --- > v2: no changes > arch/x86/cpu/tangier/Kconfig| 3 +++ > arch/x86/dts/edison

Re: [PATCH v2 5/8] dm: Introduce DMA constraints into the core device model

2020-12-12 Thread Simon Glass
Hi Nicolas, On Thu, 10 Dec 2020 at 04:43, Nicolas Saenz Julienne wrote: > > Calculating the DMA offset between a bus address space and CPU's every > time we call phys_to_bus() and bus_to_phys() isn't ideal performance > wise, as it implies traversing the device tree from the device's node up > to

Re: [PATCH] fsp: Move and rename fsp_types.h file

2020-12-12 Thread Simon Glass
Hi Sughosh, On Fri, 11 Dec 2020 at 03:06, Sughosh Ganu wrote: > > The fsp_types.h header file contains macros for building signatures of > different widths. These signature macros are architecture agnostic, > and can be used in all places which use signatures in a data > structure. Move and renam

Re: [PATCH v2 00/26] dm: Change the way sequence numbers are implemented

2020-12-12 Thread Simon Glass
Hi Michael, On Fri, 11 Dec 2020 at 01:55, Michael Walle wrote: > > Hi Simon, > > Am 2020-12-11 02:31, schrieb Simon Glass: > > At present each device has two sequence numbers, with 'req_seq' being > > set up at bind time and 'seq' at probe time. The idea is that devices > > can 'request' a sequen

Re: [PATCH v2 4/8] dm: Introduce xxx_get_dma_range()

2020-12-12 Thread Simon Glass
Hi Nicolas, On Thu, 10 Dec 2020 at 04:39, Nicolas Saenz Julienne wrote: > > Add the following functions to get a specific device's DMA ranges: > - dev_get_dma_range() > - ofnode_get_dma_range() > - of_get_dma_range() > - fdt_get_dma_range() > They are specially useful in oder to be able valid

Re: [PATCH v2 6/8] dm: Introduce dev_phys_to_bus()/dev_bus_to_phys()

2020-12-12 Thread Simon Glass
On Thu, 10 Dec 2020 at 04:45, Nicolas Saenz Julienne wrote: > > These functions, instead of relying on hard-coded platform-specific > address translations, make use of the DMA constraints provided by the DM > core. This allows for per-device translations. > > We can't yet get rid of the legacy phy

Re: [PATCH 4/8] dm: Introduce xxx_get_dma_range()

2020-12-12 Thread Simon Glass
Hi Nicolas, On Thu, 19 Nov 2020 at 10:49, Nicolas Saenz Julienne wrote: > > Add the follwing functions to get a specific device's DMA ranges: > - dev_get_dma_range() > - ofnode_get_dma_range() > - of_get_dma_range() > - fdt_get_dma_range() > They are specially useful in oder to be able valida

Re: [PATCH 1/1] sandbox: implement invalidate_icache_all()

2020-12-12 Thread Simon Glass
On Wed, 9 Dec 2020 at 11:42, Heinrich Schuchardt wrote: > > Before executing code that we have loaded from a file we need to flush the > data cache and invalidate the instruction flash. > > Implement functions flush_cache() and invalidate_icache_all(). > > Signed-off-by: Heinrich Schuchardt > ---

Re: [PATCH 1/3] image: support board_fit_config_name_match

2020-12-12 Thread Simon Glass
Hi Sebastian, On Tue, 8 Dec 2020 at 11:10, Sebastian Reichel wrote: > > Support reusing board_fit_config_name_match() to automatically > select a sensible default configuration for booting fitImages > using 'bootm'. > > Signed-off-by: Sebastian Reichel > --- > common/image-fit.c | 7 +++ >

Re: [PATCH] common: splash_source: fix -Wint-to-pointer-cast warning

2020-12-12 Thread Simon Glass
On Mon, 7 Dec 2020 at 01:18, Jaehoon Chung wrote: > > Fix -Wint-to-pointer-cast warning > > common/splash_source.c: In function 'splash_load_raw': > common/splash_source.c:100:12: warning: cast to pointer from integer of > different size [-Wint-to-pointer-cast] > 100 | bmp_hdr = (struct bmp_he

Re: [PATCH 5/6] spi: spi-uclass: Fix spi_claim_bus() speed/mode setup logic

2020-12-12 Thread Simon Glass
On Sun, 6 Dec 2020 at 14:24, Ovidiu Panait wrote: > > Currently, when different spi slaves claim the bus consecutively using > spi_claim_bus(), spi_set_speed_mode() will only be executed on the first > two calls, leaving the bus in a bad state starting with the third call. > > This patch drops spi

Re: [PATCH 6/6] test: dm: spi: Add testcase for spi_claim_bus()

2020-12-12 Thread Simon Glass
On Sun, 6 Dec 2020 at 14:23, Ovidiu Panait wrote: > > Add testcase for spi_claim_bus(), which checks that sandbox spi bus > speed/mode settings are updated correctly when multiple slaves use > the bus consecutively. The following configurations are used for the > two spi slaves involved: > * dif

Re: [PATCH 4/6] test: spi: Add sandbox_spi_get_{speed, mode} interface

2020-12-12 Thread Simon Glass
On Sun, 6 Dec 2020 at 14:23, Ovidiu Panait wrote: > > Introduce sandbox_spi_get_{speed, mode} public interface to retrieve the > sandbox spi bus internal state. They are meant to be used in sandbox spi > testcases. > > Signed-off-by: Ovidiu Panait > --- > > arch/sandbox/include/asm/test.h | 16 +

Re: [PATCH 2/6] sandbox: test: Add a second SPI slave on sandbox_spi bus

2020-12-12 Thread Simon Glass
On Sun, 6 Dec 2020 at 14:23, Ovidiu Panait wrote: > > Place a second spi slave on the sandbox_spi bus, to be used by the > spi_claim_bus() testcase we are about to introduce. We need to make sure > that jumping between slaves calling spi_claim_bus() sets the bus speed and > mode appropriately. Use

Re: [PATCH 1/6] sandbox: spi: Drop unused sandbox_spi_parse_spec function

2020-12-12 Thread Simon Glass
On Sun, 6 Dec 2020 at 14:23, Ovidiu Panait wrote: > > Commit 1289e96797bf ("sandbox: spi: Drop command-line SPI option") dropped > support for specifying SPI devices on the command line, removing the only > user of sandbox_spi_parse_spec(). Remove the function too. > > Fixes: 1289e96797bf ("sandbo

Re: [PATCH v2 2/2] x86: edison: Switch to DM_USB_GADGET

2020-12-12 Thread Simon Glass
On Thu, 3 Dec 2020 at 10:45, Andy Shevchenko wrote: > > DM is the modern default approach for the drivers in U-Boot. > It also allows to configure code via Device Tree. > > Move Intel Edison to use DM_USB_GADGET and drop hard coded values. > > Signed-off-by: Andy Shevchenko > --- > v2: cleaned up

Re: [PATCH 2/2] console: sandbox: remove unnecessary sandbox code

2020-12-12 Thread Simon Glass
Hi Patrick, On Wed, 2 Dec 2020 at 07:08, Patrick DELAUNAY wrote: > > Hi Simon, > > > From: Simon Glass > > Sent: lundi 30 novembre 2020 21:12 > > > > Hi Patrick, > > > > On Fri, 27 Nov 2020 at 03:49, Patrick Delaunay > > wrote: > > > > > > Remove the specific sandbox code in console.c, as the c

Re: [PATCH 1/1] sandbox: implement runtime system reset

2020-12-12 Thread Simon Glass
On Wed, 2 Dec 2020 at 08:22, Heinrich Schuchardt wrote: > > Implement a reset function that we can call after ExitBootServices(), > when all driver model devices are gone. > > Signed-off-by: Heinrich Schuchardt > --- > arch/sandbox/cpu/start.c | 10 ++ > lib/efi_loader/Kconfig | 3 ++-

Re: [PATCH v1] x86: edison: BINMAN selection is specific to the board

2020-12-12 Thread Simon Glass
On Thu, 3 Dec 2020 at 08:40, Andy Shevchenko wrote: > > The platforms based on Intel Tangier may have different requirements > how to create bootloader bundle to supply to a device. Currently > the BINMAN approach is for Intel Edison only. > > Signed-off-by: Andy Shevchenko > --- > arch/x86/cpu/

Re: [PATCH 5/6] spring: configs: remove VIDCONSOLE_AS_LCD

2020-12-12 Thread Simon Glass
On Thu, 3 Dec 2020 at 02:16, Patrick Delaunay wrote: > > Remove the obsolete CONFIG_VIDCONSOLE_AS_LCD as vidconsole is used in > ./include/configs/spring.h => configs/exynos5-dt-common.h since the > commit bb5930d5c97f ("exynos: video: Convert several boards to driver > model for video") > > Signe

Re: [PATCH 4/4] console: add console_tstc_check helper function for CONSOLE_MUX

2020-12-12 Thread Simon Glass
Hi Patrick, On Thu, 3 Dec 2020 at 02:20, Patrick Delaunay wrote: > > Add the helper function console_tstc_check() and replace the test > #if CONFIG_IS_ENABLED(CONSOLE_MUX) to a simple if to respect the > U-Boot coding rule. > > No functional change. > > Signed-off-by: Patrick Delaunay > --- > >

Re: [PATCH 2/4] console: add function console_devices_set

2020-12-12 Thread Simon Glass
On Thu, 3 Dec 2020 at 02:20, Patrick Delaunay wrote: > > Add a new function to access to console_devices only defined if > CONFIG_IS_ENABLED(CONSOLE_MUX). > > This path allows to remove #if CONFIG_IS_ENABLED(CONSOLE_MUX) > in console_getc function. > > Signed-off-by: Patrick Delaunay > --- > > c

Re: [PATCH 1/4] console: remove #ifdef CONFIG when it is possible

2020-12-12 Thread Simon Glass
On Thu, 3 Dec 2020 at 02:20, Patrick Delaunay wrote: > > Remove #ifdef or #ifndef for CONFIG when it is possible to simplify > the console.c code and respect the U-Boot coding rules. > > Signed-off-by: Patrick Delaunay > --- > > common/console.c | 149 +++-

Re: [PATCH 3/3] video: seps525: Add seps525 SPI driver

2020-12-12 Thread Simon Glass
Hi Michal, On Thu, 3 Dec 2020 at 02:13, Michal Simek wrote: > > Add support for the WiseChip Semiconductor Inc. (UG-6028GDEBF02) display > using the SEPS525 (Syncoam) LCD Controller. Syncoam Seps525 PM-Oled is RGB > 160x128 display. This driver has been tested through zynq-spi driver. > > ZynqMP>

Re: [PATCH 2/3] video: seps525: Add dt binding description

2020-12-12 Thread Simon Glass
On Thu, 3 Dec 2020 at 02:13, Michal Simek wrote: > > From: Vikhyat Goyal > > Added dt binding for seps525 display driver. > > Signed-off-by: Vikhyat Goyal > Signed-off-by: Michal Simek > --- > > MAINTAINERS | 1 + > .../video/syncoam,seps525.txt

Re: [PATCH 1/3] video: Introduce video_sync call

2020-12-12 Thread Simon Glass
Hi Michal, On Thu, 3 Dec 2020 at 02:13, Michal Simek wrote: > > Some drivers like LCD connected via SPI requires explicit sync function > which copy framebuffer content over SPI to controller to display. > This hook doesn't exist yet that's why introduce it via video operations. > > Signed-off-by

Re: [PATCH v3] fdt: Use phandle to distinguish DT nodes with same name

2020-12-12 Thread Simon Glass
On Wed, 2 Dec 2020 at 22:26, Aswath Govindraju wrote: > > While assigning the sequence number to subsystem instances by reading the > aliases property, only DT nodes names are compared and not the complete > path. This causes a problem when there are two DT nodes with same name but > have differen

Re: [RESEND,PATCH v3] cmd: Add a pwm command

2020-12-12 Thread Simon Glass
Hi Pragnesh, On Wed, 2 Dec 2020 at 21:59, Pragnesh Patel wrote: > > Add the command "pwm" for controlling the pwm channels. This > command provides pwm invert/config/enable/disable functionalities > via PWM uclass drivers > > Signed-off-by: Pragnesh Patel > Reviewed-by: Simon Glass > --- > > Ch

Re: [u-boot,v2019.04-aspeed, v1 1/1] Common:fdt: Check for error return value

2020-12-12 Thread Simon Glass
On Wed, 2 Dec 2020 at 12:48, Hongwei Zhang wrote: > > Check for negative return value of fdt_noffset from calling > boot_get_fdt_fit(). > > Signed-off-by: Hongwei Zhang > --- > common/image-fdt.c | 3 +++ > 1 file changed, 3 insertions(+) > Reviewed-by: Simon Glass

Re: [PATCH v2 1/2] mtd: rawnand: cortina_nand: Add Cortina CAxxxx SoC support

2020-12-12 Thread Tom Rini
On Fri, Dec 11, 2020 at 01:46:12PM -0800, Alex Nemirovsky wrote: > From: Kate Liu > > Add Cortina Access parallel Nand support for CA SOCs > > Signed-off-by: Kate Liu > Signed-off-by: Alex Nemirovsky > CC: Tom Rini > CC: Scott Wood > Reviewed-by: Tom Rini -- Tom signature.asc Des

Re: [PATCH v2 2/2] board: presidio: Add Parallel NAND support

2020-12-12 Thread Tom Rini
On Fri, Dec 11, 2020 at 01:46:13PM -0800, Alex Nemirovsky wrote: > From: Kate Liu > > Set environment for Nand flash (U-boot 2020.04): > - add nand flash in the device tree > - add new default configuration file for G3 using parallel Nand > - set nand parameters in presidio_asic.h > > Signed-of

Re: [PULL] u-boot-atmel-fixes-2021.01-b

2020-12-12 Thread Tom Rini
On Fri, Dec 11, 2020 at 04:36:41PM +, eugen.hris...@microchip.com wrote: > Hello Tom, > > Please pull tag u-boot-atmel-fixes-2021.01-b , the second set of atmel > fixes for 2021.01 cycle. > > This set includes very important fixes for: MMC booting on several > boards, drive strength on sam9

Re: [PATCH 1/1] doc: move README.bootmenu to HTML doc

2020-12-12 Thread Pali Rohár
On Saturday 12 December 2020 10:58:39 Heinrich Schuchardt wrote: > Convert README.bootmenu to reStructured text and move it to > usage/bootmenu.rst. > > Adjust the text concerning configuration settings as these now are managed > via Kconfig. > > Signed-off-by: Heinrich Schuchardt Looks good!

[PATCH 1/1] doc: move README.bootmenu to HTML doc

2020-12-12 Thread Heinrich Schuchardt
Convert README.bootmenu to reStructured text and move it to usage/bootmenu.rst. Adjust the text concerning configuration settings as these now are managed via Kconfig. Signed-off-by: Heinrich Schuchardt --- doc/README.bootmenu| 98 -- doc/usage/bootme

[PATCH 1/1] doc: move README.trace to HTML documentation

2020-12-12 Thread Heinrich Schuchardt
Convert README.trace to reStructured text and move it to develop/trace.rst. Signed-off-by: Heinrich Schuchardt --- doc/README.trace | 346 doc/develop/index.rst | 1 + doc/develop/trace.rst | 355 ++ 3 files

[PATCH 1/1] doc: move README.NetConsole to HTML documentation

2020-12-12 Thread Heinrich Schuchardt
Convert README.NetConsole to reStructured text and move it to doc/usage/netconsole.rst. Signed-off-by: Heinrich Schuchardt --- doc/README.NetConsole| 97 -- doc/usage/netconsole.rst | 109 +++ 2 files changed, 109 insertion

[PATCH] doc: uefi: remove leading $ from bash commands

2020-12-12 Thread Heinrich Schuchardt
Use the same formatting for all bash commands. Signed-off-by: Heinrich Schuchardt --- doc/uefi/uefi.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/uefi/uefi.rst b/doc/uefi/uefi.rst index 07eb3f01b4..dc930d9240 100644 --- a/doc/uefi/uefi.rst +++ b/doc/uefi/uefi.

[PATCH 1/2] doc: move pstore.rst to usage/pstore.rst

2020-12-12 Thread Heinrich Schuchardt
Let's have a separate chapter dedicated to using U-Boot. Signed-off-by: Heinrich Schuchardt --- doc/index.rst| 8 + doc/pstore.rst | 82 doc/usage/pstore.rst | 82 3 files changed, 83 ins

[PATCH 2/2] doc: use code-block in pstore.rst

2020-12-12 Thread Heinrich Schuchardt
Use syntax highlighting for a Linux console session. Signed-off-by: Heinrich Schuchardt --- doc/usage/pstore.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/usage/pstore.rst b/doc/usage/pstore.rst index 8427d8fd97..8c4e5274aa 100644 --- a/doc/usage/pstore.rst +++ b

[PATCH 0/2] doc: move pstore.rst to usage/pstore.rst

2020-12-12 Thread Heinrich Schuchardt
Let's have a separate chapter dedicated to using U-Boot. Correct the formatting. Heinrich Schuchardt (2): doc: move pstore.rst to usage/pstore.rst doc: use code-block in pstore.rst doc/index.rst| 8 + doc/pstore.rst | 82 -- doc/usag