[PATCH 2/2] ARM: dts: uniphier: Change phy-mode to RGMII-ID to enable delay pins

2022-07-12 Thread Kunihiko Hayashi
UniPhier LD20, PXs2 and PXs3 boards have ethernet phy that has RX/TX delays of RGMII interface using pull-ups on the RXDLY and TXDLY pins. So should set the phy-mode to "rgmii-id" to show that RX/TX delays are enabled. Signed-off-by: Kunihiko Hayashi --- arch/arm/dts/uniphier-ld20.dtsi | 2 +-

[PATCH 1/2] net: ave: Add capability of rgmii-id mode

2022-07-12 Thread Kunihiko Hayashi
This allows you to specify the type of rgmii-id that will enable phy internal delay in ethernet phy-mode. This adds all RGMII cases to all of get_pinmode() except LD11, because LD11 SoC doesn't support RGMII due to the constraint of the hardware. When RGMII phy mode is specified in the devicetree

[PATCH 0/2] Add RGMII-ID phy-mode support for AVE ethernet controller

2022-07-12 Thread Kunihiko Hayashi
This series adds support for RGMII-ID phy-mode for the SoCs that implement AVE ethernet controller. Some SoCs need to enable delay pins as default. Kunihiko Hayashi (2): net: ave: Add capability of rgmii-id mode ARM: dts: uniphier: Change phy-mode to RGMII-ID to enable delay pins

[PATCH] serial: zynq: Use DIV_ROUND_CLOSEST() to calcurate divider value

2022-07-12 Thread Kunihiko Hayashi
Since the calulation of "bgen" is rounded down, using a higher baudrate will result in a larger difference from the actual baudrate. Should use DIV_ROUND_CLOSEST() like the Linux driver. Signed-off-by: Kunihiko Hayashi --- drivers/serial/serial_zynq.c | 2 +- 1 file changed, 1 insertion(+), 1

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

2022-07-12 Thread Anand Gadiyar
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 Gadiyar --- arch/arm/dts/k3-am64-ddr.dtsi | 1 - 1 file changed, 1 deletion(-)

Re: [PATCH 2/2] Nokia RX-51: Remove CONFIG_PREBOOT from defconfig

2022-07-12 Thread Tom Rini
On Wed, Jul 13, 2022 at 01:11:35AM +0200, Pali Rohár wrote: > On Tuesday 12 July 2022 18:58:31 Tom Rini wrote: [snip] > > It really isn't, that's why the plain text environment stuff is a good > > step in the right direction. What I'm not sure about how to best handle > > is making it easy for a

Re: [PATCH 2/2] Nokia RX-51: Remove CONFIG_PREBOOT from defconfig

2022-07-12 Thread Pali Rohár
On Tuesday 12 July 2022 18:58:31 Tom Rini wrote: > On Tue, Jul 12, 2022 at 11:52:45PM +0200, Pali Rohár wrote: > > On Tuesday 12 July 2022 17:39:06 Tom Rini wrote: > > > On Tue, Jul 12, 2022 at 10:11:00AM +0200, Pali Rohár wrote: > > > > On Monday 11 July 2022 19:23:26 Tom Rini wrote: > > > > > On

Re: [PATCH 2/2] Nokia RX-51: Remove CONFIG_PREBOOT from defconfig

2022-07-12 Thread Tom Rini
On Tue, Jul 12, 2022 at 11:52:45PM +0200, Pali Rohár wrote: > On Tuesday 12 July 2022 17:39:06 Tom Rini wrote: > > On Tue, Jul 12, 2022 at 10:11:00AM +0200, Pali Rohár wrote: > > > On Monday 11 July 2022 19:23:26 Tom Rini wrote: > > > > On Sun, Jul 10, 2022 at 01:42:56PM +0200, Pali Rohár wrote: >

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

2022-07-12 Thread Heinrich Schuchardt
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. Signed-off-by: Heinrich Schuchardt --- fs/fat/fat_write.c | 93 -- 1 file changed,

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

2022-07-12 Thread Heinrich Schuchardt
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 the end of the FAT table correctly and return an invalid cluster number if no empty

[PATCH 2/3] fs: fat: determine_fatent() error handling

2022-07-12 Thread Heinrich Schuchardt
Handle disk full errors. Signed-off-by: Heinrich Schuchardt --- fs/fat/fat_write.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/fs/fat/fat_write.c b/fs/fat/fat_write.c index a137e14f41..57522f96a8 100644 --- a/fs/fat/fat_write.c +++ b/fs/fat/fat_write.c @@

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

2022-07-12 Thread Heinrich Schuchardt
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 the end of the FAT table correctly and return an invalid cluster number if no empty

Re: [PATCH 2/2] Nokia RX-51: Remove CONFIG_PREBOOT from defconfig

2022-07-12 Thread Pali Rohár
On Tuesday 12 July 2022 17:39:06 Tom Rini wrote: > On Tue, Jul 12, 2022 at 10:11:00AM +0200, Pali Rohár wrote: > > On Monday 11 July 2022 19:23:26 Tom Rini wrote: > > > On Sun, Jul 10, 2022 at 01:42:56PM +0200, Pali Rohár wrote: > > > > > > > CONFIG_PREBOOT just cause putting

Re: [PATCH 2/2] Nokia RX-51: Remove CONFIG_PREBOOT from defconfig

2022-07-12 Thread Tom Rini
On Tue, Jul 12, 2022 at 10:11:00AM +0200, Pali Rohár wrote: > On Monday 11 July 2022 19:23:26 Tom Rini wrote: > > On Sun, Jul 10, 2022 at 01:42:56PM +0200, Pali Rohár wrote: > > > > > CONFIG_PREBOOT just cause putting "preboot=CONFIG_PREBOOT" into env list. > > > Value CONFIG_PREBOOT="run

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

2022-07-12 Thread Tom Rini
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 build in the same working directory. If it is out of date > with

Re: [PATCH 13/19] Revert "Revert "global: Remove CONFIG_SYS_EXTRA_OPTIONS support""

2022-07-12 Thread Tom Rini
On Mon, Jul 11, 2022 at 07:04:07PM -0600, Simon Glass wrote: > This is not needed now that CONFIG_SYS_TARGET_NAME is correctly determined > when scanning Kconfig. > > This reverts commit 25b8acee2ea11a9edc100c42a61f5d6187eb6167. > > Signed-off-by: Simon Glass > Suggested-by: Tom Rini

[v3 3/4] doc: process: Correct and expand slightly on the Merge Window concept

2022-07-12 Thread Tom Rini
For quite a long time we've been using a 3 week, rather than 2 week, merge window as it was only 2 weeks during the timeframe where we did 2 month rather than 3 month releases. This corrects the places that still had 2 weeks and tries to make things a bit clearer overall. Cc: Heinrich Schuchardt

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

2022-07-12 Thread Tom Rini
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 --- Changes in v3: - Reword the commit message and page title

[v3 2/4] doc: Add doc/develop/release_cycle.rst

2022-07-12 Thread Tom Rini
Migrate the RelaseCycle wiki page to Sphinx. In terms of visible changes, we stop having a dynamic countdown to when the release is. And we drop the year-based statistics, that were not being kept up to date. For the moment, we only link to statistics for v2022.07 but will add back the

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

2022-07-12 Thread Tom Rini
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. Give ourselves 36 characters to fill in the nae field, as

Re: [PATCH] spl_imx_romapi: Remove extraneous character

2022-07-12 Thread Tim Harvey
On Thu, Apr 28, 2022 at 2:00 AM Peng Fan (OSS) wrote: > > > > On 2022/4/21 22:01, Fabio Estevam wrote: > > From: Fabio Estevam > > > > Currently the following output is shown: > > ... > > Trying to boot from BOOTROM > > Find img info 0x&48020a00, size 872 > > ... > > > > Remove the extraneous

[PATCH 1/1] fs/fat: correct handling of full directory

2022-07-12 Thread Heinrich Schuchardt
If fat_create_dir_entry() fails, e.g. if the root directory is full, file_fat_write_at() must not try to write the file. Fixes: 10abea4f851a ("fs: fat: carve out fat_create_dir_entry()") Signed-off-by: Heinrich Schuchardt --- fs/fat/fat_write.c | 5 + 1 file changed, 5 insertions(+) diff

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

2022-07-12 Thread Stefan Herbrechtsmeier
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 8/16-bit integers like the existing functions for 32/64-bit to simplify read of 8/16-bit integers from device

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

2022-07-12 Thread Marek Vasut
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 pylibfdt FdtSw.check_space() until the size grows enough

Re: [RFCv2 1/2] doc: Add statistics page for v2022.07

2022-07-12 Thread Tom Rini
On Tue, Jul 12, 2022 at 11:32:59AM -0400, Tom Rini wrote: > These tables are generated by gitdm, patched to generate an rST .. table > directive and then > with the header, orphan tag and stats summary added manually. > > Cc: Heinrich Schuchardt > Signed-off-by: Tom Rini > --- > Changes in v2:

Re: [PATCH 2/2] rockchip: rk3399: fix incorrect ifdef check on SPL_GPIO

2022-07-12 Thread Philipp Tomsich
On Tue, 12 Jul 2022 at 17:38, Quentin Schulz wrote: > > From: Quentin Schulz > > The check to perform is on CONFIG_SPL_GPIO and not SPL_GPIO. > Because this was never compiled in, it missed an include of cru.h that > was not detected before. Let's include it too. > > Fixes: 07586ee4322a

Re: [PATCH 1/2] rockchip: rk3399: fix incorrect ifdef check on SPL_DM_REGULATOR

2022-07-12 Thread Philipp Tomsich
On Tue, 12 Jul 2022 at 17:38, Quentin Schulz wrote: > > From: Quentin Schulz > > The check to perform is on CONFIG_SPL_DM_REGULATOR and not > SPL_DM_REGULATOR. > > Fixes: 07586ee4322a ("rockchip: rk3399: Support common spl_board_init") > Cc: Quentin Schulz > Signed-off-by: Quentin Schulz > ---

Re: [RFCv2 1/2] doc: Add statistics page for v2022.07

2022-07-12 Thread Tom Rini
On Tue, Jul 12, 2022 at 06:41:25PM +0200, Heinrich Schuchardt wrote: > > > Am 12. Juli 2022 18:33:15 MESZ schrieb Tom Rini : > >On Tue, Jul 12, 2022 at 06:23:58PM +0200, Heinrich Schuchardt wrote: > >> > >> > >> Am 12. Juli 2022 18:10:08 MESZ schrieb Tom Rini : > >> >On Tue, Jul 12, 2022 at

Re: [RFCv2 1/2] doc: Add statistics page for v2022.07

2022-07-12 Thread Heinrich Schuchardt
Am 12. Juli 2022 18:33:15 MESZ schrieb Tom Rini : >On Tue, Jul 12, 2022 at 06:23:58PM +0200, Heinrich Schuchardt wrote: >> >> >> Am 12. Juli 2022 18:10:08 MESZ schrieb Tom Rini : >> >On Tue, Jul 12, 2022 at 06:01:58PM +0200, Heinrich Schuchardt wrote: >> >> On 7/12/22 17:55, Tom Rini wrote:

Re: [RFCv2 1/2] doc: Add statistics page for v2022.07

2022-07-12 Thread Tom Rini
On Tue, Jul 12, 2022 at 06:23:58PM +0200, Heinrich Schuchardt wrote: > > > Am 12. Juli 2022 18:10:08 MESZ schrieb Tom Rini : > >On Tue, Jul 12, 2022 at 06:01:58PM +0200, Heinrich Schuchardt wrote: > >> On 7/12/22 17:55, Tom Rini wrote: > >> > On Tue, Jul 12, 2022 at 05:42:31PM +0200, Heinrich

Re: [RFCv2 1/2] doc: Add statistics page for v2022.07

2022-07-12 Thread Heinrich Schuchardt
Am 12. Juli 2022 18:10:08 MESZ schrieb Tom Rini : >On Tue, Jul 12, 2022 at 06:01:58PM +0200, Heinrich Schuchardt wrote: >> On 7/12/22 17:55, Tom Rini wrote: >> > On Tue, Jul 12, 2022 at 05:42:31PM +0200, Heinrich Schuchardt wrote: >> > > On 7/12/22 17:32, Tom Rini wrote: >> > > > These tables

Re: [RFCv2 2/2] doc: Add doc/develop/release_cycle.rst

2022-07-12 Thread Tom Rini
On Tue, Jul 12, 2022 at 06:14:13PM +0200, Heinrich Schuchardt wrote: > On 7/12/22 17:48, Sean Anderson wrote: > > Hi Tom, > > > > On 7/12/22 11:33 AM, Tom Rini wrote: > > > Migrate the RelaseCycle wiki page to Sphinx. In terms of visible > > > changes, we stop having a dynamic countdown to when

Re: [RFCv2 2/2] doc: Add doc/develop/release_cycle.rst

2022-07-12 Thread Heinrich Schuchardt
On 7/12/22 17:48, Sean Anderson wrote: Hi Tom, On 7/12/22 11:33 AM, Tom Rini wrote: Migrate the RelaseCycle wiki page to Sphinx. In terms of visible changes, we stop having a dynamic countdown to when the release is. And we drop the year-based statistics, that were not being kept up to date.

Re: [RFCv2 1/2] doc: Add statistics page for v2022.07

2022-07-12 Thread Tom Rini
On Tue, Jul 12, 2022 at 06:01:58PM +0200, Heinrich Schuchardt wrote: > On 7/12/22 17:55, Tom Rini wrote: > > On Tue, Jul 12, 2022 at 05:42:31PM +0200, Heinrich Schuchardt wrote: > > > On 7/12/22 17:32, Tom Rini wrote: > > > > These tables are generated by gitdm, patched to generate an rST .. table

Re: [RFCv2 1/2] doc: Add statistics page for v2022.07

2022-07-12 Thread Heinrich Schuchardt
On 7/12/22 17:55, Tom Rini wrote: On Tue, Jul 12, 2022 at 05:42:31PM +0200, Heinrich Schuchardt wrote: On 7/12/22 17:32, Tom Rini wrote: These tables are generated by gitdm, patched to generate an rST .. table directive and then with the header, orphan tag and stats summary added manually.

Re: [RFCv2 2/2] doc: Add doc/develop/release_cycle.rst

2022-07-12 Thread Tom Rini
On Tue, Jul 12, 2022 at 11:48:49AM -0400, Sean Anderson wrote: > Hi Tom, > > On 7/12/22 11:33 AM, Tom Rini wrote: > > Migrate the RelaseCycle wiki page to Sphinx. In terms of visible > > changes, we stop having a dynamic countdown to when the release is. And > > we drop the year-based

Re: [PATCH 3/3] fpga: Convert FPGA_COUNT to Kconfig

2022-07-12 Thread Alexander Dahl
Hello, On Wed, Jun 29, 2022 at 09:14:27AM +0200, Alexander Dahl wrote: > Besides the two obvious defconfigs, the option was set for all > defconfigs where corresponding header file includes > include/configs/socfpga_common.h This option has been addressed with commit

Re: [RFCv2 1/2] doc: Add statistics page for v2022.07

2022-07-12 Thread Tom Rini
On Tue, Jul 12, 2022 at 05:42:31PM +0200, Heinrich Schuchardt wrote: > On 7/12/22 17:32, Tom Rini wrote: > > These tables are generated by gitdm, patched to generate an rST .. table > > directive and then > > with the header, orphan tag and stats summary added manually. > > > > Cc: Heinrich

Re: [RFCv2 2/2] doc: Add doc/develop/release_cycle.rst

2022-07-12 Thread Sean Anderson
Hi Tom, On 7/12/22 11:33 AM, Tom Rini wrote: > Migrate the RelaseCycle wiki page to Sphinx. In terms of visible > changes, we stop having a dynamic countdown to when the release is. And > we drop the year-based statistics, that were not being kept up to date. > For the moment, we only link to

[PATCH 3/4] imx: imx8mp_rsb3720a1: fix incorrect ifdef check on SPL_MMC

2022-07-12 Thread Quentin Schulz
From: Quentin Schulz Since commit 103c5f180694 ("mmc: Rename MMC_SUPPORT to MMC"), SPL_MMC_SUPPORT is named SPL_MMC, so let's fix the ifdef. Fixes: fbc6b1414342 ("imx: imx8mp_rsb3720a1: convert to DM_SERIAL") Cc: Quentin Schulz Signed-off-by: Quentin Schulz ---

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

2022-07-12 Thread Quentin Schulz
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. Fixes: 747093dd408 ("vpl: Add Kconfig options for VPL") Cc: Quentin

[PATCH 2/4] mx7ulp_com: fix incorrect select for SPL options

2022-07-12 Thread Quentin Schulz
From: Quentin Schulz SPL_GPIO_SUPPORT is named SPL_GPIO since commit 83061dbd1c89 ("Rename GPIO_SUPPORT to GPIO"), SPL_MMC_SUPPORT is named SPL_MMC since commit 103c5f180694 ("mmc: Rename MMC_SUPPORT to MMC"), SPL_SERIAL_SUPPORT is named SPL_SERIAL since commit 2a7360666871 ("serial: Rename

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

2022-07-12 Thread Quentin Schulz
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 Kconfig option. Fixes: 1d99e673c752 ("gpio: Enable hogging support in

[PATCH 0/4] fix missed migration from SPL__SUPPORT to SPL_

2022-07-12 Thread Quentin Schulz
From: Quentin Schulz I guess this is the result of an unfortunate race in the merging of commits using the "old" name and their renaming. Only the first commit has been tested (I'll need it in some upcoming patches). Owners/maintainers of mx7ulp_com or imx8mp_rsb3720a1 should test those changes

Re: [RFCv2 1/2] doc: Add statistics page for v2022.07

2022-07-12 Thread Heinrich Schuchardt
On 7/12/22 17:32, Tom Rini wrote: These tables are generated by gitdm, patched to generate an rST .. table directive and then with the header, orphan tag and stats summary added manually. Cc: Heinrich Schuchardt Signed-off-by: Tom Rini --- Changes in v2: - Include :orphan: this time - Use ..

[PATCH 2/2] rockchip: rk3399: fix incorrect ifdef check on SPL_GPIO

2022-07-12 Thread Quentin Schulz
From: Quentin Schulz The check to perform is on CONFIG_SPL_GPIO and not SPL_GPIO. Because this was never compiled in, it missed an include of cru.h that was not detected before. Let's include it too. Fixes: 07586ee4322a ("rockchip: rk3399: Support common spl_board_init") Cc: Quentin Schulz

[PATCH 1/2] rockchip: rk3399: fix incorrect ifdef check on SPL_DM_REGULATOR

2022-07-12 Thread Quentin Schulz
From: Quentin Schulz The check to perform is on CONFIG_SPL_DM_REGULATOR and not SPL_DM_REGULATOR. Fixes: 07586ee4322a ("rockchip: rk3399: Support common spl_board_init") Cc: Quentin Schulz Signed-off-by: Quentin Schulz --- arch/arm/mach-rockchip/rk3399/rk3399.c | 2 +- 1 file changed, 1

[RFCv2 1/2] doc: Add statistics page for v2022.07

2022-07-12 Thread Tom Rini
These tables are generated by gitdm, patched to generate an rST .. table directive and then with the header, orphan tag and stats summary added manually. Cc: Heinrich Schuchardt Signed-off-by: Tom Rini --- Changes in v2: - Include :orphan: this time - Use .. table and auto-width as suggested by

[RFCv2 2/2] doc: Add doc/develop/release_cycle.rst

2022-07-12 Thread Tom Rini
Migrate the RelaseCycle wiki page to Sphinx. In terms of visible changes, we stop having a dynamic countdown to when the release is. And we drop the year-based statistics, that were not being kept up to date. For the moment, we only link to statistics for v2022.07 but will add back the

[PATCH] doc: imx: habv4: Add Secure Boot guide for i.MX8M SPL targets

2022-07-12 Thread Marek Vasut
Add HABv4 documentation extension for SPL targets covering the following topics: - How to sign an securely boot an flash.bin container image. - How to extend the root of trust for additional boot images. - Add SPL and fitImage CSF examples. - Add signature generation script example.

[PATCH v6 6/7] board: freescale: Add entry for imx8mm_evk_fspi_defconfig

2022-07-12 Thread Mamta Shukla
Add entry for imx8mm_evk_fspi_defconfig in board/freescale/imx8mm_evk/MAINTAINERS Signed-off-by: Mamta Shukla Signed-off-by: Thomas Haemmerle Tested-by: Adam Ford Reviewed-by: Fabio Estevam --- v2: -No changes v3: -No changes v4: -No changes v5: -No changes v6: -No changes

[PATCH v6 7/7] doc: board: nxp: Add instructions to boot from QSPI

2022-07-12 Thread Mamta Shukla
Add instructions to build and boot from QSPI Flash Signed-off-by: Mamta Shukla Signed-off-by: Thomas Haemmerle Tested-by: Adam Ford Reviewed-by: Fabio Estevam --- v2: -No changes v3: -Fix Checkpatch Error for trailing whitespace v4: -No changes v5: -No changes v6: -No changes

[PATCH v6 5/7] configs: imx8mm: Define CONFIG_SYS_UBOOT_BASE for i.MX8m

2022-07-12 Thread Mamta Shukla
The macro `CONFIG_SYS_UBOOT_BASE` is used by SPL loaders `"NOR"` and `"XIP"` to determine the base address of u-boot. For `"NOR"` on i.MX8MM it is the base address of QSPI0 plus the offset of the flattened image tree blob. Although `QSPI0_AMBA_BASE` is used to define CONFIG_SYS_UBOOT_BASE in

[PATCH v6 3/7] configs: Add config for enabling FSPI boot option for i.MX8m

2022-07-12 Thread Mamta Shukla
Add imx8mm_evk_fspi_defconfig to build QSPI boot image. This config is based on imx8mm_evk_defconfig with addtional config options to define FSPI Header parameters required to generate QSPI Header. Update SPL offset to include header size and overwrite IMX_CONFIG to use lpddr.cfg for FSPI.

[PATCH v6 4/7] board: freescale: Add QSPI Boot support in spl for i.MX8m

2022-07-12 Thread Mamta Shukla
Add QSPI Boot option in u-boot-spl for i.MX8m EVK. Signed-off-by: Mamta Shukla Signed-off-by: Thomas Haemmerle Tested-by: Adam Ford Reviewed-by: Fabio Estevam --- v2: -No changes v3: -No changes v4: -No changes v5: -No changes v6: -No changes board/freescale/imx8mm_evk/spl.c | 2 ++ 1

[PATCH v6 2/7] dts: imx8mm-uboot: Add support to pack FlexSPI Header using binman

2022-07-12 Thread Mamta Shukla
Add definition for FSPI configuration block and subsequently new offsets for u-boot-spl and u-boot-itb for CONFIG_FSPI_HEADER option. Signed-off-by: Mamta Shukla Signed-off-by: Thomas Haemmerle Tested-by: Adam Ford Reviewed-by: Fabio Estevam --- v2: -No changes v3: -Fix Checkpatch ERROR:

[PATCH v6 1/7] tools: mkimage: Add support to generate FlexSPI Header for i.MX8m

2022-07-12 Thread Mamta Shukla
Add struct with Flex SPI Configuration Block and enable generating fspi header using mkimage. Refer i.MX 8M Mini Application Processor Reference Manual for detailed information about parameters for FlexSPI Configuration block. Signed-off-by: Mamta Shukla Signed-off-by: Thomas Haemmerle

[PATCH v6 0/7] Add support for FlexSPI Boot for i.MX8m

2022-07-12 Thread Mamta Shukla
This series of patch adds support for generating FlexSPI Header file and booting from QSPI on i.MX8m. Changes in v2: -Add check for error in case open() for fspi_fd in imx8mkimage.c fails -Remove extra line in commit message -Remove extra line in imx8mm_evk_fspi_defconfig -New patch in series to

Re: [PATCH] RFC: Show what the statistics page would look like for v2022.07

2022-07-12 Thread Tom Rini
On Tue, Jul 12, 2022 at 03:55:44PM +0200, Heinrich Schuchardt wrote: > On 7/12/22 14:54, Tom Rini wrote: > > These tables are generated by > > https://patchwork.ozlabs.org/project/uboot/patch/20220712121116.3048662-1-tr...@konsulko.com/ > > with the header and stats summary added manually. > > >

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

2022-07-12 Thread Rob Herring
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) = { > > > > - .id = UCLASS_TPM, > > > > - .name = "tpm", > > > >

Re: [PATCH] RFC: Show what the statistics page would look like for v2022.07

2022-07-12 Thread Heinrich Schuchardt
On 7/12/22 14:54, Tom Rini wrote: These tables are generated by https://patchwork.ozlabs.org/project/uboot/patch/20220712121116.3048662-1-tr...@konsulko.com/ with the header and stats summary added manually. Before I go off and re-create all of the historical stats pages I want to get the

Re: [PATCH 1/3] board: freescale: p1_p2_rdb_pc: Add workaround for board reset reboot loop

2022-07-12 Thread Pali Rohár
Hello! This change is waiting here since May 01. On Tuesday 05 July 2022 18:39:19 Pali Rohár wrote: > PING? > > On Sunday 01 May 2022 14:23:12 Pali Rohár wrote: > > CPLD's system reset register on P1/P2 RDB boards is not autocleared after > > flipping it. If this register is set to one then CPLD

Re: [PATCH] RFC: Show what the statistics page would look like for v2022.07

2022-07-12 Thread Tom Rini
On Tue, Jul 12, 2022 at 08:54:29AM -0400, Tom Rini wrote: > These tables are generated by > https://patchwork.ozlabs.org/project/uboot/patch/20220712121116.3048662-1-tr...@konsulko.com/ > with the header and stats summary added manually. > > Before I go off and re-create all of the historical

[PATCH] RFC: Show what the statistics page would look like for v2022.07

2022-07-12 Thread Tom Rini
These tables are generated by https://patchwork.ozlabs.org/project/uboot/patch/20220712121116.3048662-1-tr...@konsulko.com/ with the header and stats summary added manually. Before I go off and re-create all of the historical stats pages I want to get the output reviewed. Cc: Heinrich Schuchardt

[RESEND PATCH v2] clk: update clk_clean_rate_cache to use private clk struct

2022-07-12 Thread Patrick Delaunay
In clk_clean_rate_cache, clk->rate should update the private clock struct, in particular when CCF is activated, to save the cached rate value. When clk_get_parent_rate is called, the cached information is read from pclk->rate, with pclk = clk_get_parent(clk). As the cached is read from private

Re: [PATCH 1/1] dm: fix logic of lists_bind_fdt()

2022-07-12 Thread Heinrich Schuchardt
On 7/12/22 12:58, Simon Glass wrote: Hi Heinrich, On Mon, 11 Jul 2022 at 00:25, Heinrich Schuchardt wrote: If parameter drv of lists_bind_fdt() is specified, we shall bind only to this very driver and to no other. If the driver drv has an of_match property, we shall only bind to the driver

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

2022-07-12 Thread Tom Rini
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 take care of adding a header, so we only concern ourselves with making tables. Given the longest section title is 58 characters, we use 60 as the

Re: [PATCH 15/19] gitlab/azure: Use buildman instead of genboardscfg

2022-07-12 Thread Tom Rini
On Mon, Jul 11, 2022 at 07:04:09PM -0600, Simon Glass wrote: > Use the equivalent buildman functionality to check maintainer info. > > Signed-off-by: Simon Glass Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

[PATCH v5 7/7] doc: board: nxp: Add instructions to boot from QSPI

2022-07-12 Thread Mamta Shukla
Add instructions to build and boot from QSPI Flash Signed-off-by: Mamta Shukla Signed-off-by: Thomas Haemmerle Tested-by: Adam Ford Reviewed-by: Fabio Estevam --- v2: -No changes v3: -Fix Checkpatch Error for trailing whitespace v4: -No changes v5: -No changes

[PATCH v5 5/7] configs: imx8mm: Define CONFIG_SYS_UBOOT_BASE for i.MX8m

2022-07-12 Thread Mamta Shukla
The macro `CONFIG_SYS_UBOOT_BASE` is used by SPL loaders `"NOR"` and `"XIP"` to determine the base address of u-boot. For `"NOR"` on i.MX8MM it is the base address of QSPI0 plus the offset of the flattened image tree blob. Although `QSPI0_AMBA_BASE` is used to define CONFIG_SYS_UBOOT_BASE in

[PATCH v5 6/7] board: freescale: Add entry for imx8mm_evk_fspi_defconfig

2022-07-12 Thread Mamta Shukla
Add entry for imx8mm_evk_fspi_defconfig in board/freescale/imx8mm_evk/MAINTAINERS Signed-off-by: Mamta Shukla Signed-off-by: Thomas Haemmerle Tested-by: Adam Ford Reviewed-by: Fabio Estevam --- v2: -No changes v3: -No changes v4: -No changes v5: -No changes

[PATCH v5 4/7] board: freescale: Add QSPI Boot support in spl for i.MX8m

2022-07-12 Thread Mamta Shukla
Add QSPI Boot option in u-boot-spl for i.MX8m EVK. Signed-off-by: Mamta Shukla Signed-off-by: Thomas Haemmerle Tested-by: Adam Ford Reviewed-by: Fabio Estevam --- v2: -No changes v3: -No changes v4: -No changes v5: -No changes board/freescale/imx8mm_evk/spl.c | 2 ++ 1 file changed, 2

[PATCH v5 3/7] configs: Add config for enabling FSPI boot option for i.MX8m

2022-07-12 Thread Mamta Shukla
Add imx8mm_evk_fspi_defconfig to build QSPI boot image. This config is based on imx8mm_evk_defconfig with addtional config options for FSPI Header,SPL offset and imx-image config to boot from FSPI. Signed-off-by: Mamta Shukla Signed-off-by: Thomas Haemmerle Tested-by: Adam Ford Reviewed-by:

[PATCH v5 1/7] tools: mkimage: Add support to generate FlexSPI Header for i.MX8m

2022-07-12 Thread Mamta Shukla
Add struct with Flex SPI Configuration Block and enable generating fspi header using mkimage. Refer i.MX 8M Mini Application Processor Reference Manual for detailed information about parameters for FlexSPI Configuration block. Signed-off-by: Mamta Shukla Signed-off-by: Thomas Haemmerle

[PATCH v5 2/7] dts: imx8mm-uboot: Add support to pack FlexSPI Header using binman

2022-07-12 Thread Mamta Shukla
Add definition for FSPI configuration block and subsequently new offsets for u-boot-spl and u-boot-itb for CONFIG_FSPI_HEADER option. Signed-off-by: Mamta Shukla Signed-off-by: Thomas Haemmerle Tested-by: Adam Ford Reviewed-by: Fabio Estevam --- v2: -No changes v3: -Fix Checkpatch ERROR:

[PATCH v5 0/7] Add support for FlexSPI Boot for i.MX8m

2022-07-12 Thread Mamta Shukla
This series of patch adds support for generating FlexSPI Header file and booting from QSPI on i.MX8m. Changes in v2: -Add check for error in case open() for fspi_fd in imx8mkimage.c fails -Remove extra line in commit message -Remove extra line in imx8mm_evk_fspi_defconfig -New patch in series to

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

2022-07-12 Thread Harald Seiler
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 > > proper environment is loaded from flash. > > > > This is important when the

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

2022-07-12 Thread Marek Vasut
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 stringlists are separated by '\0', only the first value gets inserted into the

Re: [PATCH v11 01/13] fpga: add option for loading FPGA secure bitstreams

2022-07-12 Thread Michal Simek
Hi, On 7/12/22 12:58, Simon Glass wrote: Hi, On Tue, 5 Jul 2022 at 13:23, Oleksandr Suvorov wrote: It allows using this feature without enabling the "fpga loads" command. Signed-off-by: Oleksandr Suvorov Co-developed-by: Adrian Fiergolski Signed-off-by: Adrian Fiergolski Tested-by:

Re: [PATCH] test/py: Run simple dm commands without checking

2022-07-12 Thread Michal Simek
Hi Simon, On 7/12/22 12:58, Simon Glass wrote: Hi Michal, On Thu, 7 Jul 2022 at 05:00, Michal Simek wrote: From: Michal Simek Just to make sure that dm commands can operate. This was the problem on Microblaze in past without fixing manual relocation. Signed-off-by: Michal Simek

Re: [PATCH 1/2] Fix usage of CONFIG_PREBOOT

2022-07-12 Thread Pali Rohár
On Tuesday 12 July 2022 04:58:51 Simon Glass wrote: > Hi Pali, > > On Sun, 10 Jul 2022 at 05:43, Pali Rohár wrote: > > > > Due to usage of PREBOOT in Kconfig, macro CONFIG_PREBOOT is always defined > > when CONFIG_USE_PREBOOT is enabled. In case CONFIG_PREBOOT is not > > explicitly enabled it is

Re: [RFC PATCH 3/3] eficonfig: add "Delete Key" menu entry

2022-07-12 Thread Masahisa Kojima
On Tue, 12 Jul 2022 at 17:02, Heinrich Schuchardt wrote: > > On 7/12/22 09:13, Masahisa Kojima wrote: > > Hi Heinrich, Takahiro, > > > > On Sun, 10 Jul 2022 at 19:10, Heinrich Schuchardt > > wrote: > >> > >> On 6/19/22 07:20, Masahisa Kojima wrote: > >>> This commit add the menu-driven

Re: [gitdm PATCH 2/2] logparser.py: Try and be more robust with unicode handling

2022-07-12 Thread Tom Rini
On Tue, Jul 12, 2022 at 04:58:46AM -0600, Simon Glass wrote: > On Thu, 7 Jul 2022 at 13:22, Tom Rini wrote: > > > > Given the sometimes oddly formatted data that can come through when > > removing code, we need to be as flexible as possible when handling it. > > Set our encoding to unicode_escape

Re: [gitdm PATCH 1/2] Merge branch 'master' into u-boot

2022-07-12 Thread Simon Glass
On Thu, 7 Jul 2022 at 13:22, Tom Rini wrote: > > Bring us up to commit 0b8875225750 ("Allow multiple spaces within an > email address") of the upstream gitdm project. > > Signed-off-by: Tom Rini > > --- > So this isn't a real patch exactly. This shows what the single merge > error would need to

[PATCH] ARM: relocate: Fix Thumb code by using proper label type

2022-07-12 Thread Andre Przywara
The generic ARM relocate_code function was using its own function entry point as a relocation base, and it was obtaining that address by using the "adr" instruction on that entry point label. However that label is not just an ordinary label, instead we explicitly mark it as a function start

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

2022-07-12 Thread Simon Glass
Hi Ilias, On Fri, 8 Jul 2022 at 02:24, Ilias Apalodimas wrote: > > Hi Simon, > > [...] > > > > + > > > UCLASS_DRIVER(tpm) = { > > > - .id = UCLASS_TPM, > > > - .name = "tpm", > > > - .flags = DM_UC_FLAG_SEQ_ALIAS, > > > + .id

Re: [PATCH 2/4] test: fix log tests

2022-07-12 Thread Simon Glass
On Mon, 11 Jul 2022 at 00:21, Heinrich Schuchardt wrote: > > Consider CONFIG_LOG_MAX_LEVEL and gd->default_log_level in > > * do_log_test_helpers() > * log_test_dropped() > * log_test_level_deny() > > Signed-off-by: Heinrich Schuchardt > --- > test/log/log_test.c | 11 +++ > 1 file

Re: [PATCH 1/1] dm: fix logic of lists_bind_fdt()

2022-07-12 Thread Simon Glass
Hi Heinrich, On Mon, 11 Jul 2022 at 00:25, Heinrich Schuchardt wrote: > > If parameter drv of lists_bind_fdt() is specified, we shall bind only to > this very driver and to no other. > > If the driver drv has an of_match property, we shall only bind to the > driver if it matches the compatible

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

2022-07-12 Thread Simon Glass
Hi Stefan, On Tue, 14 Jun 2022 at 07:22, Stefan Herbrechtsmeier wrote: > > From: Stefan Herbrechtsmeier > > Add functions to read 8/16-bit integers like the existing functions for > 32/64-bit to simplify read of 8/16-bit integers from device tree > properties. > > Signed-off-by: Stefan

Re: fit_check_sig not hashing everything.

2022-07-12 Thread Simon Glass
Hi Martin, On Fri, 8 Jul 2022 at 01:11, Martin Bonner wrote: > > On Thu, 7 Jul 2022 at 17:29, Martin Bonner > wrote: > > > I have a 30MB FIT image as input, and I have added some debug to > > hash_calculate in rsa-checksum.c to print the amount of data being hashed. > > The answer is a rather

Re: [gitdm PATCH 2/2] logparser.py: Try and be more robust with unicode handling

2022-07-12 Thread Simon Glass
On Thu, 7 Jul 2022 at 13:22, Tom Rini wrote: > > Given the sometimes oddly formatted data that can come through when > removing code, we need to be as flexible as possible when handling it. > Set our encoding to unicode_escape and if we still run in to a problem, > it's likely going to be OK to

Re: [PATCH] test/py: Run simple dm commands without checking

2022-07-12 Thread Simon Glass
Hi Michal, On Thu, 7 Jul 2022 at 05:00, Michal Simek wrote: > > From: Michal Simek > > Just to make sure that dm commands can operate. > This was the problem on Microblaze in past without fixing manual > relocation. > > Signed-off-by: Michal Simek > Signed-off-by: Michal Simek Make up your

Re: [PATCH] common: image-android: Add signature verification feature

2022-07-12 Thread Simon Glass
Hi, On Thu, 7 Jul 2022 at 05:14, wrote: > > From: qianfan Zhao > > Not all Android tools use the id field for signing the image with sha1, > so make this feature as optional and disabled default. > > Signed-off-by: qianfan Zhao > --- > common/Kconfig.boot| 14 +++ >

Re: [PATCH] py: tests: Bind should run only on sandbox

2022-07-12 Thread Simon Glass
On Thu, 7 Jul 2022 at 04:52, Michal Simek wrote: > > From: Michal Simek > > Disable test to run on any other platform than sandbox. > > Signed-off-by: Michal Simek > Signed-off-by: Michal Simek > --- > > test/py/tests/test_bind.py | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-)

Re: [PATCH v11 01/13] fpga: add option for loading FPGA secure bitstreams

2022-07-12 Thread Simon Glass
Hi, On Tue, 5 Jul 2022 at 13:23, Oleksandr Suvorov wrote: > > It allows using this feature without enabling the "fpga loads" > command. > > Signed-off-by: Oleksandr Suvorov > Co-developed-by: Adrian Fiergolski > Signed-off-by: Adrian Fiergolski > Tested-by: Ricardo Salveti > Tested-by:

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

2022-07-12 Thread Simon Glass
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 stringlists are separated by '\0', only > the first value gets inserted into the environment variable passed to the > 'fdt

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

2022-07-12 Thread Masahisa Kojima
On Sun, 10 Jul 2022 at 18:03, 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 addition of > > new boot

Re: [PATCH 2/3] cmd: fdt: allow standalone "fdt move"

2022-07-12 Thread Simon Glass
On Tue, 5 Jul 2022 at 11:14, Andre Przywara wrote: > > At the moment every subcommand of "fdt", except "addr" itself, requires > the DT address to be set first. We explicitly check for that before even > comparing against the subcommands' string. > This early bailout also affects the "move"

Re: [PATCH v17 2/2] net: Add wget application

2022-07-12 Thread Simon Glass
On Fri, 8 Jul 2022 at 12:02, Ying-Chun Liu (PaulLiu) wrote: > > From: "Ying-Chun Liu (PaulLiu)" > > This commit adds a simple wget command that can download files > from http server. > > The command syntax is > wget ${loadaddr} > > Signed-off-by: Duncan Hare > Signed-off-by: Ying-Chun Liu

Re: [PATCH 3/4] dm: avoid NULL dereference in lists_bind_fdt()

2022-07-12 Thread Simon Glass
On Mon, 11 Jul 2022 at 00:21, Heinrich Schuchardt wrote: > > If parameter drv of lists_bind_fdt() is specified, we want to bind to this > specific driver even if its field of_match is NULL. > > If entry->of_match is NULL, we should not dereference it in a debug > statement. > > Fixes:

  1   2   >