Re: [PATCH 0/6] mtd: nand: sunxi: Convert to devicetree and the driver model

2022-07-13 Thread Michael Nazzareno Trimarchi
Hi Samuel On Thu, Jul 14, 2022 at 5:15 AM Samuel Holland wrote: > > This series converts the sunxi NAND driver to get its resources (clocks, > resets, pins) from the devicetree, and probe using the driver model. > > In addition to the immediate cleanup, this allows backporting more > patches

Re: [PATCH v6 02/13] FWU: Add FWU metadata structure and driver for accessing metadata

2022-07-13 Thread Sughosh Ganu
hi Patrick, On Wed, 13 Jul 2022 at 18:42, Patrick DELAUNAY wrote: > > Hi, > > On 7/4/22 07:16, Sughosh Ganu wrote: > > In the FWU Multi Bank Update feature, the information about the > > updatable images is stored as part of the metadata, which is stored on > > a dedicated partition. Add the

Re: [PATCH v6 03/13] FWU: Add FWU metadata access driver for GPT partitioned block devices

2022-07-13 Thread Sughosh Ganu
hi Patrick, On Wed, 13 Jul 2022 at 18:47, Patrick DELAUNAY wrote: > > Hi, > > On 7/4/22 07:16, Sughosh Ganu wrote: > > In the FWU Multi Bank Update feature, the information about the > > updatable images is stored as part of the metadata, on a separate > > partition. Add a driver for reading

[PATCH 5/6] mtd: nand: sunxi: Convert to the driver model

2022-07-13 Thread Samuel Holland
Clocks, resets, and pinmuxes are now handled by the driver model, so the only thing the "board" code needs to do is load the driver. This matches the pattern used by other DM raw NAND drivers (there is no NAND uclass). The actual board code is now only needed in SPL. Signed-off-by: Samuel

[PATCH 6/6] mtd: nand: sunxi: Pass the device to the init function

2022-07-13 Thread Samuel Holland
This more closely matches the U-Boot driver to the Linux version. Signed-off-by: Samuel Holland --- drivers/mtd/nand/raw/sunxi_nand.c | 39 --- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/drivers/mtd/nand/raw/sunxi_nand.c

[PATCH 4/6] mtd: nand: sunxi: Convert from fdtdec to ofnode

2022-07-13 Thread Samuel Holland
As a first step toward converting this driver to the driver model, use the ofnode abstraction to replace direct references to the FDT blob. Using ofnode_read_u32_index removes an extra pair of loops and makes the allwinner,rb property optional, matching the devicetree binding. Signed-off-by:

[PATCH 3/6] mtd: nand: sunxi: Remove an unnecessary check

2022-07-13 Thread Samuel Holland
Each chip is required to have a unique CS number ("reg" property) in the range 0-7, so there is no need to separately count the number of chips. Signed-off-by: Samuel Holland --- drivers/mtd/nand/raw/sunxi_nand.c | 10 -- 1 file changed, 10 deletions(-) diff --git

[PATCH 0/6] mtd: nand: sunxi: Convert to devicetree and the driver model

2022-07-13 Thread Samuel Holland
This series converts the sunxi NAND driver to get its resources (clocks, resets, pins) from the devicetree, and probe using the driver model. In addition to the immediate cleanup, this allows backporting more patches (bugfixes, newer SoC support) from the Linux driver. Samuel Holland (6):

[PATCH 2/6] pinctrl: sunxi: Add NAND pinmuxes

2022-07-13 Thread Samuel Holland
NAND is always at function 2 on port C. Pin lists and mux values were taken from the Linux drivers. Signed-off-by: Samuel Holland --- drivers/pinctrl/sunxi/pinctrl-sunxi.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/pinctrl/sunxi/pinctrl-sunxi.c

[PATCH 1/6] clk: sunxi: Add NAND clocks and resets

2022-07-13 Thread Samuel Holland
Currently NAND clock setup is done in board code, both in SPL and in U-Boot proper. Add the NAND clocks/resets here so they can be used by the "full" NAND driver once it is converted to the driver model. The bit locations are copied from the Linux CCU drivers. Signed-off-by: Samuel Holland ---

Re: [PATCH v8 2/9] eficonfig: menu-driven addition of UEFI boot option

2022-07-13 Thread Takahiro Akashi
Heinrich, On Sun, Jul 10, 2022 at 11:03:43AM +0200, Heinrich Schuchardt wrote: > On 6/19/22 06:56, Masahisa Kojima wrote: > > This commit add the "eficonfig" command. > > The "eficonfig" command implements the menu-driven UEFI boot option > > maintenance feature. This commit implements the

Re: [PATCH 0/3] fs/fat: fix handling of full disk

2022-07-13 Thread AKASHI Takahiro
On Tue, Jul 12, 2022 at 10:33:11PM +, Heinrich Schuchardt wrote: > Currently we have two functions with redundant coding to find an empty > cluster: > > * find_empty_cluster() seeks from the beginning of the FAT table > * determine_fatent() seeks after a given entry > > Both do not detect

Re: [PATCH 3/3] fs: fat: carve out fat_create_dir_entry()

2022-07-13 Thread AKASHI Takahiro
On Tue, Jul 12, 2022 at 10:33:14PM +, Heinrich Schuchardt wrote: > fat_mkdir() and file_fat_write_at() use identical code to create a new > directory entry. Carve out a new function fat_create_dir_entry() to avoid > this code duplication. Why not merge your patch[1] here as you're going to

Re: [PATCH 1/3] fs: fat: finding an empty FAT cluster

2022-07-13 Thread AKASHI Takahiro
Thank you for fixing this. On Tue, Jul 12, 2022 at 10:33:12PM +, Heinrich Schuchardt wrote: > Currently we have two functions with redundant coding to find an empty > cluster: > > * find_empty_cluster() seeks from the beginning of the FAT table > * determine_fatent() seeks after a given

Re: [PATCH v2] mmc: fsl_esdhc_spl: Add support for loading proper U-Boot from unaligned location

2022-07-13 Thread Pali Rohár
On Tuesday 28 June 2022 20:14:36 Pali Rohár wrote: > On Thursday 23 June 2022 15:31:14 Pali Rohár wrote: > > On Monday 20 June 2022 12:54:26 Pali Rohár wrote: > > > This allows to concatenate SPL and proper U-Boot without extra alignment. > > > > > > Signed-off-by: Pali Rohár > > > --- > > >

Re: [PATCH 1/2] powerpc: mpc85xx: Add support for generating QorIQ pre-PBL eSDHC boot sector

2022-07-13 Thread Pali Rohár
On Tuesday 28 June 2022 20:07:48 Pali Rohár wrote: > On Thursday 23 June 2022 19:17:55 Pali Rohár wrote: > > On Saturday 04 June 2022 15:02:38 Pali Rohár wrote: > > > On Wednesday 18 May 2022 12:53:20 Pali Rohár wrote: > > > > On Wednesday 11 May 2022 22:59:28 Pali Rohár wrote: > > > > > On Monday

RE: [PATCH] spl: sdp: Pass the USB index to board_usb_init()

2022-07-13 Thread Peng Fan
> Subject: [PATCH] spl: sdp: Pass the USB index to board_usb_init() > > From: Fabio Estevam > > board_usb_init() should receive the controller_index as its first parameter > instead of having it hardcoded as 0. > > All in-tree users have CONFIG_SPL_SDP_USB_DEV as 0, so this error should > not

[PATCH] spl: sdp: Pass the USB index to board_usb_init()

2022-07-13 Thread Fabio Estevam
From: Fabio Estevam board_usb_init() should receive the controller_index as its first parameter instead of having it hardcoded as 0. All in-tree users have CONFIG_SPL_SDP_USB_DEV as 0, so this error should not affect any board. Fix it by passing controller_index as the parameter of

Pull request for efi-2022-10-rc1

2022-07-13 Thread Heinrich Schuchardt
Dear Tom, The following changes since commit 36b661dc919da318c163a45f4a220d2e3d9db608: Merge branch 'next' (2022-07-11 14:58:57 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-2022-10-rc1 for you to fetch changes up to

Re: [PATCH v3 9/9] board: qualcomm: Add support for QCS404 EVB

2022-07-13 Thread Stephan Gerhold
Hi Sumit, On Tue, Jul 12, 2022 at 12:42:12PM +0530, Sumit Garg wrote: > Add support for Qualcomm QCS404 SoC based evaluation board. > > Features: > - Qualcomm Snapdragon QCS404 SoC > - 1GiB RAM > - 8GiB eMMC, uSD slot > > U-boot is chain loaded by ABL in 64-bit mode as part of boot.img. > For

[PATCH] arm: dts: db410c/db820c: Fix SPMI addresses

2022-07-13 Thread Stephan Gerhold
The Qualcomm device trees in U-Boot are currently not consistent with the upstream DTs used in the Linux kernel. While some bindings are similar to the official specification in the Linux kernel, several nodes have subtle differences, e.g. the "compatible"s or the exact specification of memory

Re: [PATCH] board: ti: am65x: Do not disable SA2UL in DT

2022-07-13 Thread Tom Rini
On Wed, Jul 13, 2022 at 11:12:48AM -0500, Andrew Davis wrote: > This is no longer needed as the SA2UL can now be shared with Linux. > Leave the SA2UL DT node enabled. > > Signed-off-by: Andrew Davis Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [PATCH 10/19] buildman: Incorporate the genboardscfg.py tool

2022-07-13 Thread Tom Rini
On Wed, Jul 13, 2022 at 09:28:06AM -0600, Simon Glass wrote: > Hi Tom, > > On Tue, 12 Jul 2022 at 15:38, Tom Rini wrote: > > > > On Mon, Jul 11, 2022 at 07:04:04PM -0600, Simon Glass wrote: > > > Bring this tool into buildman, so we don't have to run it separately. The > > > board.cfg file is

Re: [PATCH] sunxi: configs: streamline include/configs/sun*.h wrappers

2022-07-13 Thread Tom Rini
On Wed, Jul 13, 2022 at 04:58:57PM +0100, Andre Przywara wrote: > For mostly historic reasons we had configuration headers for each > Allwinner CPU "family". These days they are mostly just including one > common header, with the rest being somewhat empty. > There were attempts to remove them, and

Re: PRAM and reserved memory for Linux

2022-07-13 Thread Tom Rini
On Wed, Jul 13, 2022 at 04:13:27PM +, Joakim Tjernlund wrote: > On Wed, 2022-07-13 at 10:21 -0400, Tom Rini wrote: > > On Wed, Jul 13, 2022 at 10:08:38AM +, Joakim Tjernlund wrote: > > > > > I added CONFIG_PRAM 4 and a reserved-memory DTS node for the same space > > > but > > > now

Re: [PATCH v6 3/7] tpm: Add the RNG child device

2022-07-13 Thread Tom Rini
On Wed, Jul 13, 2022 at 09:28:16AM -0600, Simon Glass wrote: > Hi Rob, > > On Tue, 12 Jul 2022 at 08:11, Rob Herring wrote: > > > > On Tue, Jul 12, 2022 at 5:04 AM Simon Glass wrote: > > > > > > Hi Ilias, > > > > > > On Fri, 8 Jul 2022 at 02:24, Ilias Apalodimas > > > wrote: > > > > > > > > Hi

Re: [PATCH 7/7] process.rst: Modernize the "Workflow of a Custodian" section

2022-07-13 Thread Tom Rini
On Wed, Jul 13, 2022 at 07:46:28PM +0200, Heinrich Schuchardt wrote: > On 7/11/22 19:14, Tom Rini wrote: > > The "Workflow of a Custodian" section on the wiki had not been changed > > in quite some time to reflect how the process has been functioning for > > some time. First, update some links to

Re: [PATCH 6/7] process.rst: Perform minor cleanups

2022-07-13 Thread Tom Rini
On Wed, Jul 13, 2022 at 07:43:25PM +0200, Heinrich Schuchardt wrote: > On 7/11/22 19:14, Tom Rini wrote: [snip] > > @@ -155,7 +156,7 @@ like this: > > > > #. Applies cleanly to the source tree > > > > - #. passes a ``MAKEALL`` compile test without creating new warnings > > + #. Passes

Re: [PATCH 5/7] designprinciples.rst: Perform minor cleanups

2022-07-13 Thread Tom Rini
On Wed, Jul 13, 2022 at 07:40:03PM +0200, Heinrich Schuchardt wrote: > On 7/11/22 19:14, Tom Rini wrote: > > - Remove some missed wiki markup, and escape a "\n" correctly. > > - Use gender-neutral language to refer to the user, consistently. > > > > Cc: Claudius Heine > > Cc: Heinrich Schuchardt

Re: [PATCH 2/7] doc: Migrate DesignPrinciples wiki page to Sphinx

2022-07-13 Thread Tom Rini
On Wed, Jul 13, 2022 at 07:22:33PM +0200, Heinrich Schuchardt wrote: > On 7/11/22 19:14, Tom Rini wrote: > > Move the current DesignPrinciples wiki page to > > doc/develop/designprinciples.rst. The changes here are for formatting > > or slight rewording so that it reads well when linking to other

Re: [PATCH 7/7] process.rst: Modernize the "Workflow of a Custodian" section

2022-07-13 Thread Heinrich Schuchardt
On 7/11/22 19:14, Tom Rini wrote: The "Workflow of a Custodian" section on the wiki had not been changed in quite some time to reflect how the process has been functioning for some time. First, update some links to point to modern and current sources of information. Second, and more

Re: [PATCH 4/7] doc: Migrate Process wiki page to Sphinx

2022-07-13 Thread Tom Rini
On Wed, Jul 13, 2022 at 07:36:02PM +0200, Heinrich Schuchardt wrote: > On 7/11/22 19:14, Tom Rini wrote: [snip] > > +Work flow of a Custodian > > + > > + > > +The normal flow of work in the U-Boot development process will look > > +like this: > > + > > +#. A developer

Re: [PATCH 6/7] process.rst: Perform minor cleanups

2022-07-13 Thread Heinrich Schuchardt
On 7/11/22 19:14, Tom Rini wrote: - Use gender-neutral language to refer to the user, consistently. - Reword a few places so that they read more naturally. - Make the long standing practice around "Twilight Time" more clear, hopefully. - Replace a reference to MAKEALL with a reference to CI

Re: [PATCH 1/7] doc: Migrate CodingStyle wiki page to Sphinx

2022-07-13 Thread Tom Rini
On Wed, Jul 13, 2022 at 07:06:56PM +0200, Heinrich Schuchardt wrote: > On 7/11/22 19:14, Tom Rini wrote: > > Move the current CodingStyle wiki page to doc/develop/codingstyle.rst. > > The changes here are for formatting or slight rewording so that it reads > > well when linking to other Sphinx

Re: [PATCH 5/7] designprinciples.rst: Perform minor cleanups

2022-07-13 Thread Heinrich Schuchardt
On 7/11/22 19:14, Tom Rini wrote: - Remove some missed wiki markup, and escape a "\n" correctly. - Use gender-neutral language to refer to the user, consistently. Cc: Claudius Heine Cc: Heinrich Schuchardt Signed-off-by: Tom Rini --- Changes in v2: - None ---

Re: [PATCH 4/7] doc: Migrate Process wiki page to Sphinx

2022-07-13 Thread Heinrich Schuchardt
On 7/11/22 19:14, Tom Rini wrote: Move the current Process wiki page to doc/develop/process.rst. The changes here are for formatting or slight rewording so that it reads well when linking to other Sphinx documents. Cc: Heinrich Schuchardt Signed-off-by: Tom Rini --- Changes in v2: - Assorted

Re: [PATCH 1/7] doc: Migrate CodingStyle wiki page to Sphinx

2022-07-13 Thread Tom Rini
On Wed, Jul 13, 2022 at 07:06:56PM +0200, Heinrich Schuchardt wrote: > On 7/11/22 19:14, Tom Rini wrote: > > Move the current CodingStyle wiki page to doc/develop/codingstyle.rst. > > The changes here are for formatting or slight rewording so that it reads > > well when linking to other Sphinx

Re: [PATCH 2/7] doc: Migrate DesignPrinciples wiki page to Sphinx

2022-07-13 Thread Heinrich Schuchardt
On 7/11/22 19:14, Tom Rini wrote: Move the current DesignPrinciples wiki page to doc/develop/designprinciples.rst. The changes here are for formatting or slight rewording so that it reads well when linking to other Sphinx documents. Cc: Heinrich Schuchardt Signed-off-by: Tom Rini --- Changes

Re: [PATCH 1/7] doc: Migrate CodingStyle wiki page to Sphinx

2022-07-13 Thread Heinrich Schuchardt
On 7/11/22 19:14, Tom Rini wrote: Move the current CodingStyle wiki page to doc/develop/codingstyle.rst. The changes here are for formatting or slight rewording so that it reads well when linking to other Sphinx documents. Cc: Heinrich Schuchardt Signed-off-by: Tom Rini --- Changes in v2: -

[PATCH] dm: fix mis-word in SPL_DM description

2022-07-13 Thread Oleksandr Suvorov
Replace logically correct word in the description. Fixes: 91a91ff804d ("dm: Add Kconfig options for driver model SPL support") Signed-off-by: Oleksandr Suvorov --- drivers/core/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/core/Kconfig

[PATCH 3/3] sunxi: remove CONFIG_MMC?_CD_PIN

2022-07-13 Thread Andre Przywara
For legacy reasons we were defining the card detect GPIO for all sunxi boards in each board's defconfig. There is actually no need for a card-detect check in the SPL code (which consequently has been removed already), and also in U-Boot proper we have DM code to query the CD GPIO name from the

[PATCH 2/3] sunxi: mmc: group non-DM specific functions

2022-07-13 Thread Andre Przywara
As the SPL code for sunxi boards does not use the driver model, we have two mmc_ops structures, one for DM, one for non-DM. The actual hardware access code is shared, with the respective callback functions using that common code. To make this more obvious and easier to read, reorder the functions

[PATCH 1/3] sunxi: mmc: ignore card detect in SPL

2022-07-13 Thread Andre Przywara
The sunxi MMC code does not use the DM in the SPL, as we don't have a device tree available that early, also no space for it. This also means we cannot access the card-detect GPIO information from there, so we have Kconfig symbols called CONFIG_MMCx_CD_PIN, which each board has to define. This is

[PATCH 0/3] sunxi: remove CONFIG_MMC?_CD_PIN

2022-07-13 Thread Andre Przywara
Since the dawn of time we had CONFIG_MMC?_CD_PIN defines for each Allwinner board, which held the name for the respective MMC card detect GPIO. These days we don't use that in U-Boot proper anymore (and rely on DT for that, instead), so it's just for the SPL loading. However the card detect is

Re: PRAM and reserved memory for Linux

2022-07-13 Thread Joakim Tjernlund
On Wed, 2022-07-13 at 10:21 -0400, Tom Rini wrote: > On Wed, Jul 13, 2022 at 10:08:38AM +, Joakim Tjernlund wrote: > > > I added CONFIG_PRAM 4 and a reserved-memory DTS node for the same space but > > now u-boot complains when booting: > > ERROR: reserving fdt memory region failed

[PATCH] board: ti: am65x: Do not disable SA2UL in DT

2022-07-13 Thread Andrew Davis
This is no longer needed as the SA2UL can now be shared with Linux. Leave the SA2UL DT node enabled. Signed-off-by: Andrew Davis --- board/ti/am65x/evm.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/board/ti/am65x/evm.c b/board/ti/am65x/evm.c index 7182a8cad1..8a0a506a3e

Re: [PATCH 1/2] dm: core: Add functions to read 8/16-bit integers

2022-07-13 Thread Stefan Herbrechtsmeier
Hi Simon, Am 13.07.2022 um 17:28 schrieb Simon Glass: Hi Stefan, On Tue, 12 Jul 2022 at 12:31, Stefan Herbrechtsmeier wrote: Hi Simon, Am 12.07.2022 um 12:58 schrieb Simon Glass: Hi Stefan, On Tue, 14 Jun 2022 at 07:22, Stefan Herbrechtsmeier wrote: From: Stefan Herbrechtsmeier Add

[PATCH] sunxi: configs: streamline include/configs/sun*.h wrappers

2022-07-13 Thread Andre Przywara
For mostly historic reasons we had configuration headers for each Allwinner CPU "family". These days they are mostly just including one common header, with the rest being somewhat empty. There were attempts to remove them, and to just use the one common header to begin with, but this has

Re: [PATCH 3/3] fdt: introduce apply_all command

2022-07-13 Thread Simon Glass
Hi Andre, On Wed, 13 Jul 2022 at 07:18, Andre Przywara wrote: > > On Tue, 12 Jul 2022 04:58:35 -0600 > Simon Glass wrote: > > Hi Simon, > > many thanks for having a look! > > > On Tue, 5 Jul 2022 at 11:14, Andre Przywara wrote: > > > > > > Explicitly specifying the exact filenames of

Re: [PATCH] cmd: fdt: Add support for reading stringlist property values

2022-07-13 Thread Simon Glass
Hi Marek, On Wed, 13 Jul 2022 at 09:30, Marek Vasut wrote: > > On 7/13/22 17:28, Simon Glass wrote: > > Hi Marek, > > > > On Tue, 12 Jul 2022 at 05:47, Marek Vasut wrote: > >> > >> On 7/12/22 12:58, Simon Glass wrote: > >>> Hi Marek, > >>> > >>> On Fri, 8 Jul 2022 at 15:50, Marek Vasut wrote:

Re: [PATCH] cmd: fdt: Add support for reading stringlist property values

2022-07-13 Thread Marek Vasut
On 7/13/22 17:28, Simon Glass wrote: Hi Marek, On Tue, 12 Jul 2022 at 05:47, Marek Vasut wrote: On 7/12/22 12:58, Simon Glass wrote: Hi Marek, On Fri, 8 Jul 2022 at 15:50, Marek Vasut wrote: The fdt command currently handles stringlists as strings in 'fdt get value' subcommand. Since

Re: [PATCH v6 3/7] tpm: Add the RNG child device

2022-07-13 Thread Simon Glass
Hi Rob, On Tue, 12 Jul 2022 at 08:11, Rob Herring wrote: > > On Tue, Jul 12, 2022 at 5:04 AM Simon Glass wrote: > > > > Hi Ilias, > > > > On Fri, 8 Jul 2022 at 02:24, Ilias Apalodimas > > wrote: > > > > > > Hi Simon, > > > > > > [...] > > > > > > > > + > > > > > UCLASS_DRIVER(tpm) = { > > > >

Re: [PATCH] console: Add option to keep it silent until env is loaded

2022-07-13 Thread Simon Glass
Hi Harald, On Tue, 12 Jul 2022 at 05:58, Harald Seiler wrote: > > Hi Simon, > > On Tue, 2022-07-12 at 04:58 -0600, Simon Glass wrote: > > Hi Harald, > > > > On Wed, 6 Jul 2022 at 05:19, Harald Seiler wrote: > > > > > > Add a config-option which forces the console to stay silent until the > > >

Re: [PATCH] binman: Increase default fitImage data section resize step from 1k to 64k

2022-07-13 Thread Simon Glass
On Tue, 12 Jul 2022 at 11:41, Marek Vasut wrote: > > Currently the fitImage data area is resized in 1 kiB steps. This works > when bundling smaller images below some 1 MiB, but when bundling large > images into the fitImage, this make binman spend extreme amount of time > and CPU just spinning in

Re: [PATCH 4/4] vpl: fix reference in comment to non-existing SPL_SERIAL_SUPPORT

2022-07-13 Thread Simon Glass
On Tue, 12 Jul 2022 at 09:45, Quentin Schulz wrote: > > From: Quentin Schulz > > Since commit 2a7360666871 ("serial: Rename SERIAL_SUPPORT to SERIAL") > SPL_SERIAL_SUPPORT is named SPL_SERIAL. So let's update the comment to > point to the correct Kconfig option in the comment of VPL_SERIAL. > >

Re: [gitdm v2] reports.py: Add very basic rST output

2022-07-13 Thread Simon Glass
On Tue, 12 Jul 2022 at 15:14, Tom Rini wrote: > > Add a -R option to gitdm to allow for reStructuredText output and add > some very simple table generation. We assume that whatever uses this > output will be including it in other documents and we only concern > ourselves with making tables.

Re: [PATCH 1/4] gpio: fix incorrect depends on for SPL_GPIO_HOG

2022-07-13 Thread Simon Glass
On Tue, 12 Jul 2022 at 09:44, Quentin Schulz wrote: > > From: Quentin Schulz > > Since commit 83061dbd1c89 ("Rename GPIO_SUPPORT to GPIO"), > SPL_GPIO_SUPPORT has been renamed to SPL_GPIO, meaning that SPL_GPIO_HOG > can never be enabled. > > Let's fix this by using the proper name for the

Re: [PATCH] cmd: fdt: Add support for reading stringlist property values

2022-07-13 Thread Simon Glass
Hi Marek, On Tue, 12 Jul 2022 at 05:47, Marek Vasut wrote: > > On 7/12/22 12:58, Simon Glass wrote: > > Hi Marek, > > > > On Fri, 8 Jul 2022 at 15:50, Marek Vasut wrote: > >> > >> The fdt command currently handles stringlists as strings in 'fdt get value' > >> subcommand. Since strings in FDT

Re: [PATCH 10/19] buildman: Incorporate the genboardscfg.py tool

2022-07-13 Thread Simon Glass
Hi Tom, On Tue, 12 Jul 2022 at 15:38, Tom Rini wrote: > > On Mon, Jul 11, 2022 at 07:04:04PM -0600, Simon Glass wrote: > > Bring this tool into buildman, so we don't have to run it separately. The > > board.cfg file is still produced as part of the build, to save time when > > doing another

Re: [PATCH 1/2] dm: core: Add functions to read 8/16-bit integers

2022-07-13 Thread Simon Glass
Hi Stefan, On Tue, 12 Jul 2022 at 12:31, Stefan Herbrechtsmeier wrote: > > Hi Simon, > > Am 12.07.2022 um 12:58 schrieb Simon Glass: > > Hi Stefan, > > > > On Tue, 14 Jun 2022 at 07:22, Stefan Herbrechtsmeier > > wrote: > >> > >> From: Stefan Herbrechtsmeier > >> > >> Add functions to read

[PATCH 2/3] sunxi: h616: lower SPL stack address to avoid BROM data

2022-07-13 Thread Andre Przywara
When using the USB OTG FEL mode on the Allwinner H616, the BootROM stores some data at the end of SRAM C. This is also the location where we place the initial SPL stack, so it will overwrite this data. We still need the BROM code after running the SPL, so should leave that area alone.

[PATCH 3/3] sunxi: fel: drop redundant "control register" save/restore

2022-07-13 Thread Andre Przywara
For some reasons shrouded in mystery, the code saving the FEL state was saving the SCTLR register twice, with the second copy trying to justify itself by using its ancient "control register" alias name. Drop the redundant second copy, both from the fel_stash data structure, and also the code

[PATCH 1/3] sunxi: armv8: fel: load only 32-bit values

2022-07-13 Thread Andre Przywara
Both the values and the MMIO addresses that we need during the 64-bit FEL restore are smaller than 2^32, so we don't need to do any 64-bit loads. Change the loads to only load 32 bits worth of data, that saves us some bytes for storing the values. Signed-off-by: Andre Przywara ---

[PATCH 0/3] sunxi: FEL boot fixes

2022-07-13 Thread Andre Przywara
While investigating a FEL boot failure on the OrangePi Zero 2 board (with an H616 SoC), I stared at our FEL code and found some issues, which this series fixes. Unfortunately those didn't fix the H616 problem, but they are worth having anyway. For the records on the FEL failure: with certain

Re: PRAM and reserved memory for Linux

2022-07-13 Thread Tom Rini
On Wed, Jul 13, 2022 at 10:08:38AM +, Joakim Tjernlund wrote: > I added CONFIG_PRAM 4 and a reserved-memory DTS node for the same space but > now u-boot complains when booting: > ERROR: reserving fdt memory region failed (addr=703ff000 size=1000) > The error is caused by arch_lmb_reserve()

Re: [PATCH v2 1/2] fpga: Convert SYS_FPGA_CHECK_CTRLC to Kconfig

2022-07-13 Thread Tom Rini
On Wed, Jul 13, 2022 at 03:20:46PM +0200, Alexander Dahl wrote: > Hello Michal, > > On Wed, Jul 13, 2022 at 02:56:08PM +0200, Michal Simek wrote: [snip] > > > diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig > > > index 76719517f5..53d91676e0 100644 > > > --- a/drivers/fpga/Kconfig > > >

Re: [PATCH v2 2/2] fpga: Convert SYS_FPGA_PROG_FEEDBACK to Kconfig

2022-07-13 Thread Tom Rini
On Wed, Jul 13, 2022 at 03:11:09PM +0200, Alexander Dahl wrote: > Hei hei, > > On Wed, Jul 13, 2022 at 02:50:14PM +0200, Michal Simek wrote: > > > > > > On 7/13/22 14:33, Alexander Dahl wrote: > > > From: Alexander Dahl > > > > > > WARNING: please write a paragraph that describes the config

Re: [PATCH] armv8: mach-k3: correct define checking for AM625/AM642 memory maps

2022-07-13 Thread Tom Rini
On Wed, Jul 13, 2022 at 04:49:36AM -0700, Matt Ranostay wrote: > Using CONFIG_IS_ENABLED breaks accessing memory map structure when > doing a A53 SPL build for AM625 and AM642 platforms. This is due to > 'abc if CONFIG_SPL_BUILD is defined and CONFIG_SPL_FOO is set to 'y'' > in which there is no

Re: [PATCH v2 1/2] fpga: Convert SYS_FPGA_CHECK_CTRLC to Kconfig

2022-07-13 Thread Michal Simek
On 7/13/22 16:07, Alexander Dahl wrote: Hello Michal, On Wed, Jul 13, 2022 at 03:20:44PM +0200, Alexander Dahl wrote: Hello Michal, On Wed, Jul 13, 2022 at 02:56:08PM +0200, Michal Simek wrote: On 7/13/22 14:32, Alexander Dahl wrote: From: Alexander Dahl After commit 8cca60a2cbf2

Re: [PATCH v2 1/2] fpga: Convert SYS_FPGA_CHECK_CTRLC to Kconfig

2022-07-13 Thread Alexander Dahl
Hello Michal, On Wed, Jul 13, 2022 at 03:20:44PM +0200, Alexander Dahl wrote: > Hello Michal, > > On Wed, Jul 13, 2022 at 02:56:08PM +0200, Michal Simek wrote: > > > > > > On 7/13/22 14:32, Alexander Dahl wrote: > > > From: Alexander Dahl > > > > > > After commit 8cca60a2cbf2 ("Kconfig:

[PATCH 3/3] net: emaclite: fix handling for IP packets with specific lengths

2022-07-13 Thread Samuel Obuch
The maximum length is capped similarly to the emaclite_send function. Avoid integer underflow for values of ip->ip_len < 30, the minimum length of an IP packet is 21 bytes. Signed-off-by: Samuel Obuch --- drivers/net/xilinx_emaclite.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)

[PATCH 2/3] net: emaclite: fix xemaclite_alignedread/write functions

2022-07-13 Thread Samuel Obuch
Use __raw_read* and __raw_write* functions to ensure read/write is passed to the memory-mapped regions, as non-volatile accesses may get optimised out. Signed-off-by: Samuel Obuch --- drivers/net/xilinx_emaclite.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git

[PATCH 1/3] net: emaclite: fix broken build

2022-07-13 Thread Samuel Obuch
Function ioremap_nocache seems to be defined only for mips and microblaze architectures. Therefore, the function call in the emaclite driver causes this driver to be unusable with other architectures, for example riscv. Signed-off-by: Samuel Obuch --- drivers/net/xilinx_emaclite.c | 4 1

net: emaclite: Fixes, enable driver for other archs

2022-07-13 Thread Samuel Obuch
These patches solve a few issues with the driver observed on a RISC-V platform.

Re: [PULL] Pull request for u-boot next / v2022.10 = u-boot-stm32-20220712

2022-07-13 Thread Tom Rini
On Wed, Jul 13, 2022 at 09:57:48AM +0200, Patrick DELAUNAY wrote: > I Tom, > > Please pull the STM32 related fixes for u-boot/next, v2022.10: > u-boot-stm32-20220712 > > - Alignment with Linux kernel device tree v5.19 for stm32mp15 and stm32mp13 > - Add OP-TEE nodes for stm32mp13x, aligned with

Re: [PATCH] arm: dts: k3-am64-ddr fix typo causing DDR4 register corruption

2022-07-13 Thread Tom Rini
On Tue, Jul 12, 2022 at 07:59:04PM -0500, Anand Gadiyar wrote: > The entry for DDRSS_PI_321_DATA was accidentally repeated leading to the > last few PI registers being incorrectly programmed. > > Fix this. > > Reported-by: Bin Liu > Signed-off-by: Vignesh Raghavendra > Signed-off-by: Anand

Re: [PATCH v2 1/2] fpga: Convert SYS_FPGA_CHECK_CTRLC to Kconfig

2022-07-13 Thread Michal Simek
On 7/13/22 15:20, Alexander Dahl wrote: Hello Michal, On Wed, Jul 13, 2022 at 02:56:08PM +0200, Michal Simek wrote: On 7/13/22 14:32, Alexander Dahl wrote: From: Alexander Dahl After commit 8cca60a2cbf2 ("Kconfig: Remove some symbols from the whitelist") downstream builds failed for

Re: [PATCH v6 07/13] FWU: STM32MP1: Add support to read boot index from backup register

2022-07-13 Thread Patrick DELAUNAY
Hi, On 7/4/22 07:16, Sughosh Ganu wrote: The FWU Multi Bank Update feature allows the platform to boot the firmware images from one of the partitions(banks). The first stage bootloader(fsbl) passes the value of the boot index, i.e. the bank from which the firmware images were booted from to

Re: [PATCH v6 06/13] FWU: stm32mp1: Add helper functions for accessing FWU metadata

2022-07-13 Thread Patrick DELAUNAY
Hi, On 7/4/22 07:16, Sughosh Ganu wrote: Add helper functions needed for accessing the FWU metadata which contains information on the updatable images. These functions have been added for the STM32MP157C-DK2 board which has the updatable images on the uSD card, formatted as GPT partitions.

Re: [PATCH v6 05/13] stm32mp1: dk2: Add image information for capsule updates

2022-07-13 Thread Patrick DELAUNAY
Hi, On 7/4/22 07:16, Sughosh Ganu wrote: Enabling capsule update functionality on the platform requires populating information on the images that are to be updated using the functionality. Do so for the DK2 board. Signed-off-by: Sughosh Ganu --- Changes since V5: None

Re: [PATCH v2 1/2] fpga: Convert SYS_FPGA_CHECK_CTRLC to Kconfig

2022-07-13 Thread Alexander Dahl
Hello Michal, On Wed, Jul 13, 2022 at 02:56:08PM +0200, Michal Simek wrote: > > > On 7/13/22 14:32, Alexander Dahl wrote: > > From: Alexander Dahl > > > > After commit 8cca60a2cbf2 ("Kconfig: Remove some symbols from the > > whitelist") downstream builds failed for boards setting this in > >

Re: [PATCH 3/3] fdt: introduce apply_all command

2022-07-13 Thread Andre Przywara
On Tue, 12 Jul 2022 04:58:35 -0600 Simon Glass wrote: Hi Simon, many thanks for having a look! > On Tue, 5 Jul 2022 at 11:14, Andre Przywara wrote: > > > > Explicitly specifying the exact filenames of devicetree overlays files > > on a U-Boot command line can be quite tedious for users,

Re: [PATCH v6 03/13] FWU: Add FWU metadata access driver for GPT partitioned block devices

2022-07-13 Thread Patrick DELAUNAY
Hi, On 7/4/22 07:16, Sughosh Ganu wrote: In the FWU Multi Bank Update feature, the information about the updatable images is stored as part of the metadata, on a separate partition. Add a driver for reading from and writing to the metadata when the updatable images and the metadata are stored

Re: [PATCH v6 02/13] FWU: Add FWU metadata structure and driver for accessing metadata

2022-07-13 Thread Patrick DELAUNAY
Hi, On 7/4/22 07:16, Sughosh Ganu wrote: In the FWU Multi Bank Update feature, the information about the updatable images is stored as part of the metadata, which is stored on a dedicated partition. Add the metadata structure, and a driver model uclass which provides functions to access the

Re: [PATCH v2 2/2] fpga: Convert SYS_FPGA_PROG_FEEDBACK to Kconfig

2022-07-13 Thread Alexander Dahl
Hei hei, On Wed, Jul 13, 2022 at 02:50:14PM +0200, Michal Simek wrote: > > > On 7/13/22 14:33, Alexander Dahl wrote: > > From: Alexander Dahl > > > WARNING: please write a paragraph that describes the config symbol fully > > We don't allow patches with empty commit message. In general I

Re: [PATCH v2 1/2] fpga: Convert SYS_FPGA_CHECK_CTRLC to Kconfig

2022-07-13 Thread Michal Simek
On 7/13/22 14:32, Alexander Dahl wrote: From: Alexander Dahl After commit 8cca60a2cbf2 ("Kconfig: Remove some symbols from the whitelist") downstream builds failed for boards setting this in include/configs/… Two FPGA drivers consider this definition. 2? board/astro/mcf5373l/fpga.c

Re: [PATCH v2 2/2] fpga: Convert SYS_FPGA_PROG_FEEDBACK to Kconfig

2022-07-13 Thread Michal Simek
On 7/13/22 14:33, Alexander Dahl wrote: From: Alexander Dahl WARNING: please write a paragraph that describes the config symbol fully We don't allow patches with empty commit message. Signed-off-by: Alexander Dahl --- README | 4

[PATCH v2 2/2] fpga: Convert SYS_FPGA_PROG_FEEDBACK to Kconfig

2022-07-13 Thread Alexander Dahl
From: Alexander Dahl Signed-off-by: Alexander Dahl --- README | 4 configs/astro_mcf5373l_defconfig | 1 + drivers/fpga/Kconfig | 6 ++ include/configs/astro_mcf5373l.h | 1 - scripts/config_whitelist.txt | 1 - 5 files changed, 7

[PATCH v2 1/2] fpga: Convert SYS_FPGA_CHECK_CTRLC to Kconfig

2022-07-13 Thread Alexander Dahl
From: Alexander Dahl After commit 8cca60a2cbf2 ("Kconfig: Remove some symbols from the whitelist") downstream builds failed for boards setting this in include/configs/… Two FPGA drivers consider this definition. Signed-off-by: Alexander Dahl --- README | 3 ---

[PATCH v2 0/2] fpga: Convert some options to Kconfig

2022-07-13 Thread Alexander Dahl
Hei hei, rebased this on recent master. One patch dropped. See changelog below. Greets Alex (implicit) v1 -> v2: - dropped patch 3, same kconfig symbol addressed with commit 60d45642fe0673514aced37e6cc95d4f0fe02a19 ("fpga: Remove CONFIG_FPGA_COUNT") Cc: Wolfgang Wegner Cc: Michal

[PATCH 2/3] fdt: Start a test for the fdt command

2022-07-13 Thread Simon Glass
Add a basic test of the 'fdt addr' command, to kick things off. This includes a new convenience function to run a command from a printf() string. Signed-off-by: Simon Glass --- common/cli.c | 15 + include/command.h | 10 +++ include/test/suites.h | 1 + test/cmd/Makefile

[PATCH 3/3] doc: Make a start on docs for fdt command

2022-07-13 Thread Simon Glass
Add some information about the 'fdt addr' subcommand, to get things started. Signed-off-by: Simon Glass --- doc/usage/cmd/fdt.rst | 69 +++ doc/usage/index.rst | 1 + 2 files changed, 70 insertions(+) create mode 100644 doc/usage/cmd/fdt.rst diff

[PATCH 1/3] addrmap: Support on sandbox

2022-07-13 Thread Simon Glass
Update this feature so that it works on sandbox, using a basic identity mapping. This allows us to run the 'ut addrmap' test. Also fix up the test to use the correct macros to access the linker list, so that the 'ut addrmap' command actually works. Signed-off-by: Simon Glass ---

[PATCH 0/3] Test and docs for fdt command

2022-07-13 Thread Simon Glass
This was required by Marek to provide a starting point for documentation and a test for a new subcommand. Simon Glass (3): addrmap: Support on sandbox fdt: Start a test for the fdt command doc: Make a start on docs for fdt command board/sandbox/sandbox.c | 9 +++ common/cli.c

[PATCH] armv8: mach-k3: correct define checking for AM625/AM642 memory maps

2022-07-13 Thread Matt Ranostay
Using CONFIG_IS_ENABLED breaks accessing memory map structure when doing a A53 SPL build for AM625 and AM642 platforms. This is due to 'abc if CONFIG_SPL_BUILD is defined and CONFIG_SPL_FOO is set to 'y'' in which there is no CONFIG_SPL_SOC_K3_AM625/CONFIG_SPL_SOC_K3_AM642 defined in the

Re: [v3 1/4] doc: Add statistics page for v2022.07

2022-07-13 Thread Heinrich Schuchardt
On 7/12/22 23:34, Tom Rini wrote: Our statistics pages have always been generated by gitdm. After patching gitdm to generate an acceptable Sphinx output for tables, include that and some other basic formatting here. Cc: Heinrich Schuchardt Signed-off-by: Tom Rini --- Reviewed-by: Heinrich

Re: [PATCH] arm: dts: stm32mp1: Drop fastboot and stm32prog trigger gpios on DHCOM

2022-07-13 Thread Patrick Delaunay
On Thu, 30 Jun 2022 16:19:48 +0200, Johann Neuhauser wrote: > PA13 and PA14 are used for USB power control and can't be used > to enforce fastboot or stm32prog mode by pressing a button. > > Defining CONFIG_FASTBOOT/CONFIG_CMD_STM32PROG without this patch applied > results in fastboot/stm32prog

Re: [PATCH v2 1/3] mmc: stm32_sdmmc2: cosmetic: rename stm32_sdmmc_bind

2022-07-13 Thread Patrick Delaunay
On Thu, 30 Jun 2022 10:01:45 +0200, Patrick Delaunay wrote: > Rename stm32_sdmmc_bind to stm32_sdmmc2_bind as all other functions > in SDMMCv2 driver > > series-changes: 2 > - fix typo in commit message (/oter function/other functions/) > > > [...] Applied to stm32/master, thanks! [1/3] mmc:

Re: [PATCH 1/4] ARM: dts: stm32mp15: alignment with v5.19

2022-07-13 Thread Patrick Delaunay
On Tue, 5 Jul 2022 16:55:54 +0200, Patrick Delaunay wrote: > Device tree alignment with Linux kernel v5.19-rc1 > > - ARM: dts: stm32: Add alternate pinmux for ethernet0 pins > - ARM: dts: stm32: Add alternate pinmux for mco2 pins > - ARM: dts: stm32: fix pinctrl node name warnings (MPU soc) > -

Re: [PATCH v2 01/10] i2c: stm32: add support for the st, stm32mp13 SOC

2022-07-13 Thread Patrick Delaunay
On Thu, 30 Jun 2022 10:20:14 +0200, Patrick Delaunay wrote: > The stm32mp13 soc differs from the stm32mp15 in terms of > clear register offset for controlling the FMP (Fast Mode Plus). > > Applied to stm32/master, thanks! [01/10] i2c: stm32: add support for the st,stm32mp13 SOC commit:

  1   2   >