Re: dm driver probe and dm question

2022-02-25 Thread Heinrich Schuchardt
On 2/26/22 02:51, Tim Harvey wrote: Greetings, I've got an octeontx board which uses driver model (CONFIG_DM/CONFIG_DM_I2C) but I find that the 'i2c_octeon' driver does not probe automatically on boot until I do something like an 'i2c dev 0 && i2c probe'. What would cause the i2c_octeon driver

Pull request for efi-2022-04-rc3

2022-02-25 Thread Heinrich Schuchardt
Dear Tom, The following changes since commit c6ae38b38967a5c33d729c20e508a03ba3e0e3f6: Merge tag 'clk-2022.04-rc2' of https://source.denx.de/u-boot/custodians/u-boot-clk (2022-02-25 11:21:32 -0500) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-e

[PATCH v4 3/5] fs/erofs: add lz4 decompression support

2022-02-25 Thread Huang Jianan
Support EROFS lz4 compressed files. Signed-off-by: Huang Jianan --- fs/erofs/Kconfig | 9 + fs/erofs/Makefile | 4 +- fs/erofs/data.c | 90 ++- fs/erofs/decompress.c | 78 ++ fs/erofs/decompress.h | 24 ++ fs/erofs/namei.c | 2 +- fs/erofs/zmap.c | 601

[PATCH v4 5/5] test/py: Add tests for the erofs

2022-02-25 Thread Huang Jianan
Add Python scripts to test 'ls' and 'load' commands, as well as test related filesystem functions. Signed-off-by: Huang Jianan --- MAINTAINERS | 1 + configs/sandbox_defconfig | 1 + test/py/tests/test_fs/test_erofs.py | 211 too

[PATCH v4 4/5] fs/erofs: add filesystem commands

2022-02-25 Thread Huang Jianan
Add 'ls' and 'load' commands. Signed-off-by: Huang Jianan --- MAINTAINERS | 1 + cmd/Kconfig | 6 ++ cmd/Makefile | 1 + cmd/erofs.c | 42 ++ 4 files changed, 50 insertions(+) create mode 100644 cmd/erofs.c diff --git a/MAINTAINERS b/MAINTAINER

[PATCH v4 1/5] fs/erofs: add erofs filesystem support

2022-02-25 Thread Huang Jianan
This patch mainly deals with uncompressed files. Signed-off-by: Huang Jianan --- MAINTAINERS | 7 + fs/Kconfig | 2 + fs/Makefile | 1 + fs/erofs/Kconfig| 12 ++ fs/erofs/Makefile | 7 + fs/erofs/data.c | 223 ++ fs/erofs/erofs_fs.h

[PATCH v4 2/5] lib/lz4: update LZ4 decompressor module

2022-02-25 Thread Huang Jianan
Update the LZ4 compression module based on LZ4 v1.8.3 in order to use the newest LZ4_decompress_safe_partial() which can now decode exactly the nb of bytes requested. Signed-off-by: Huang Jianan --- include/u-boot/lz4.h | 49 lib/lz4.c| 679 +++--

[PATCH v4 0/5] fs/erofs: new filesystem

2022-02-25 Thread Huang Jianan
Changes since v3: - update tools/docker/Dockerfile; Changes since v2: - sync up with erofs-utils 1.4; - update lib/lz4 to v1.8.3; - add test for filesystem functions; Changes since v1: - fix the inconsistency between From and SoB; - add missing license header; Huang Jianan (5): fs/erofs:

Re: [PATCH v4 05/11] EFI: FMP: Add provision to update image's ImageTypeId in image descriptor

2022-02-25 Thread Heinrich Schuchardt
On 2/17/22 11:10, Sughosh Ganu wrote: On Thu, 17 Feb 2022 at 13:52, Ilias Apalodimas wrote: [...] Yes, we can use --index when we know the index value corresponding to the firmware image that we need to update. But like I mentioned in my earlier reply, for A/B updates, we do not know wha

[PATCH v2 1/1] doc: describe generation of SMBIOS table

2022-02-25 Thread Heinrich Schuchardt
SMBIOS is not x86 specific. So we should have an architecture independent page describing it. Signed-off-by: Heinrich Schuchardt --- v2: Add missing file doc/develop/smbios.rst --- doc/arch/x86.rst | 2 +- doc/develop/index.rst | 1 + doc/develop/smbios.rst | 22

[PATCH 2/2] imx8m: ddrphy_utils: Add 3732 MT/s mode

2022-02-25 Thread Marek Vasut
Add entry for 3732 MT/s mode of operation of the LPDDR4, in which case the DDR PLL has to be configured in 933 MHz mode. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic --- drivers/ddr/imx/imx8m/ddrphy_utils.c | 4 1 file changed, 4 insertions(+) diff --git a

[PATCH 1/2] ARM: imx: imx8m: Add 933 MHz PLL settings

2022-02-25 Thread Marek Vasut
Add settings for operating PLL at 933 MHz. This setting is useful in case the LPDDR4 DRAM should operate at 1866 MHz or 3733 MT/s. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic --- arch/arm/mach-imx/imx8m/clock_imx8mm.c | 1 + 1 file changed, 1 insertion(+) diff

[PATCH] pmic: pca9450: Add PCA9450C compatible string

2022-02-25 Thread Marek Vasut
Add DT compatible string for PCA9450C PMIC. This is a variant of the PCA9450 PMIC with 6 A dual-phase buck regulator and 3 A buck regulator, and is software-wise compatible with the PCA9450B. This variant of the PCA9450 is designed for use as companion PMIC for i.MX8MP. Signed-off-by: Marek Vasut

[PATCH] ARM: dts: net: dwc_eth_qos: Fix i.MX8MP compatible string

2022-02-25 Thread Marek Vasut
The correct compatible string for i.MX8MP variant of DWC EQoS MAC is "nxp,imx8mp-dwmac-eqos", use it. Drop the two current users of the current wrong compatible string to avoid breaking them. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Marcel Ziswiler Cc: Peng Fan Cc: Stefano Babic ---

[PULL] u-boot-sh/master

2022-02-25 Thread Marek Vasut
The following changes since commit c6ae38b38967a5c33d729c20e508a03ba3e0e3f6: Merge tag 'clk-2022.04-rc2' of https://source.denx.de/u-boot/custodians/u-boot-clk (2022-02-25 11:21:32 -0500) are available in the Git repository at: git://source.denx.de/u-boot-sh.git master for you to fetch

dm driver probe and dm question

2022-02-25 Thread Tim Harvey
Greetings, I've got an octeontx board which uses driver model (CONFIG_DM/CONFIG_DM_I2C) but I find that the 'i2c_octeon' driver does not probe automatically on boot until I do something like an 'i2c dev 0 && i2c probe'. What would cause the i2c_octeon driver to not automatically probe? Here is a

RE: [PATCH] Makefile: Sort u-boot-initial-env output

2022-02-25 Thread Christoph Niedermaier
From: Simon Glass [mailto:s...@chromium.org] Sent: Friday, February 25, 2022 12:54 AM > > Hi Christoph, > Hi Simon, > On Thu, 24 Feb 2022 at 02:59, Christoph Niedermaier > wrote: >> >> From: Simon Glass [mailto:s...@chromium.org] >> Sent: Wednesday, February 23, 2022 11:59 PM >>> >>> Hi Christ

[PATCH V2] Makefile: Sort u-boot-initial-env output

2022-02-25 Thread Christoph Niedermaier
This will sort the default environment file generated by "make u-boot-initial-env", but won't sort the default environment in the compiled u-boot binary. The file u-boot-initial-env is considered to use for the userpace environment access tools [1] in case of that the environments is written the fi

Re: [PATCH] tools: pblimage: fix image header verification function

2022-02-25 Thread Tom Rini
On Fri, Feb 25, 2022 at 09:36:03PM +0100, Pali Rohár wrote: > On Thursday 17 February 2022 11:51:36 Zhiqiang Hou wrote: > > From: Hou Zhiqiang > > > > The Layerscape platforms have different RCW header value from FSL > > PowerPC platforms, the current image header verification callback > > is onl

RE: [PATCH 0/5] Add ESM driver support for AM64x R5

2022-02-25 Thread Nagalla, Hari
Hi Christian, I have a v2 series.. Will send out by Saturday. Thanks Hari -Original Message- From: Christian Gmeiner Sent: Wednesday, February 23, 2022 1:53 AM To: Nagalla, Hari Cc: U-Boot Mailing List ; Menon, Nishanth Subject: Re: [PATCH 0/5] Add ESM driver support for AM64x R5 Hi

Re: [PATCH V2 1/2] net: ravb: Add tx/rx delay flag checks and support for rgmii-rxid

2022-02-25 Thread Adam Ford
On Fri, Feb 25, 2022 at 2:43 PM Marek Vasut wrote: > > On 2/25/22 21:10, Adam Ford wrote: > > On Fri, Feb 25, 2022 at 2:08 PM Marek Vasut wrote: > >> > >> On 2/25/22 19:29, Adam Ford wrote: > >>> Some boards like the Beacon RZ/G2 SOM use either flags for > >>> tx-internal-delay-ps, rx-internal-de

Re: [PATCH v4] scripts: Makefile.lib: generate dsdt_generated.c instead of dsdt.c

2022-02-25 Thread Tom Rini
On Fri, Feb 25, 2022 at 06:30:05PM +0100, Philippe Reynes wrote: > There is a conflict between the static file > lib/acpi/dsdt.c and the file dsdt.c generated > dynamicaly by scripts/Makefile.lib. When a > mrproper is done, the static file dsdt.c is > removed. If a build with acpi enabled is > lau

Re: [PATCH V2 1/2] net: ravb: Add tx/rx delay flag checks and support for rgmii-rxid

2022-02-25 Thread Marek Vasut
On 2/25/22 21:10, Adam Ford wrote: On Fri, Feb 25, 2022 at 2:08 PM Marek Vasut wrote: On 2/25/22 19:29, Adam Ford wrote: Some boards like the Beacon RZ/G2 SOM use either flags for tx-internal-delay-ps, rx-internal-delay-ps or rgmii-rxid. In Linux the APSR_RDM flag is set when either rx-inter

Re: [PATCH] tools: pblimage: fix image header verification function

2022-02-25 Thread Pali Rohár
On Thursday 17 February 2022 11:51:36 Zhiqiang Hou wrote: > From: Hou Zhiqiang > > The Layerscape platforms have different RCW header value from FSL > PowerPC platforms, the current image header verification callback > is only working on PowerPC, it will fail on Layerscape, this patch > is to fix

[PATCH V3 2/2] arm: rmobile: rzg2_beacon: Enable proper Ethernet PHY

2022-02-25 Thread Adam Ford
The wrong phy was being enabled, because it worked and the proper PHY did not. After the Renesas maintainer made some adjustments to the device tree, Linux was able to use the proper driver, and when that device tree was ported to Linux, the ethernet stopped working due to the lack of rgmii-rxid s

[PATCH V3 1/2] net: ravb: Add tx/rx delay flag checks and support for rgmii-rxid

2022-02-25 Thread Adam Ford
Some boards like the Beacon RZ/G2 SOM use either flags for tx-internal-delay-ps, rx-internal-delay-ps or rgmii-rxid. In Linux the APSR_RDM flag is set when either rx-internal-delay-ps is set or the mode is rgmii-rxid, and the APSR_TDM is set when tx-internal-delay-ps is found or rgmii-txid is set,

Re: [PATCH V2 1/2] net: ravb: Add tx/rx delay flag checks and support for rgmii-rxid

2022-02-25 Thread Adam Ford
On Fri, Feb 25, 2022 at 2:08 PM Marek Vasut wrote: > > On 2/25/22 19:29, Adam Ford wrote: > > Some boards like the Beacon RZ/G2 SOM use either flags for > > tx-internal-delay-ps, rx-internal-delay-ps or rgmii-rxid. > > > > In Linux the APSR_RDM flag is set when either rx-internal-delay-ps > > is s

Re: [PATCH V2 1/2] net: ravb: Add tx/rx delay flag checks and support for rgmii-rxid

2022-02-25 Thread Marek Vasut
On 2/25/22 19:29, Adam Ford wrote: Some boards like the Beacon RZ/G2 SOM use either flags for tx-internal-delay-ps, rx-internal-delay-ps or rgmii-rxid. In Linux the APSR_RDM flag is set when either rx-internal-delay-ps is set or the mode is rgmii-rxid, and the APSR_TDM is set when tx-internal-de

hi

2022-02-25 Thread Neuber Sousa
I need help here

Re: [PATCH v3] scripts: Makefile.lib: generate dsdt_generated.c instead of dsdt.c

2022-02-25 Thread Tom Rini
On Tue, Feb 22, 2022 at 02:54:39PM +0100, Philippe Reynes wrote: > There is a conflict between the static file > lib/acpi/dsdt.c and the file dsdt.c generated > dynamicaly by scripts/Makefile.lib. When a > mrproper is done, the static file dsdt.c is > removed. If a build with acpi enabled is > lau

Re: [GIT PULL] clock changes for v2022.04-rc2

2022-02-25 Thread Tom Rini
On Fri, Feb 25, 2022 at 01:57:07AM -0500, Sean Anderson wrote: > The following changes since commit 90de95f7443cb06f014824976251f126ac6f71c0: > > Merge https://gitlab.denx.de/u-boot/custodians/u-boot-usb (2022-02-23 > 13:34:14 -0500) > > are available in the Git repository at: > > https://

[PATCH V2 2/2] arm: rmobile: rzg2_beacon: Enable proper Ethernet PHY

2022-02-25 Thread Adam Ford
The wrong phy was being enabled, because it worked and the proper PHY did not. After the Renesas maintainer made some adjustments to the device tree, Linux was able to use the proper driver, and when that device tree was ported to Linux, the ethernet stopped working due to the lack of rgmii-rxid s

[PATCH V2 1/2] net: ravb: Add tx/rx delay flag checks and support for rgmii-rxid

2022-02-25 Thread Adam Ford
Some boards like the Beacon RZ/G2 SOM use either flags for tx-internal-delay-ps, rx-internal-delay-ps or rgmii-rxid. In Linux the APSR_RDM flag is set when either rx-internal-delay-ps is set or the mode is rgmii-rxid, and the APSR_TDM is set when tx-internal-delay-ps is found or rgmii-txid is set,

[PATCH v4] scripts: Makefile.lib: generate dsdt_generated.c instead of dsdt.c

2022-02-25 Thread Philippe Reynes
There is a conflict between the static file lib/acpi/dsdt.c and the file dsdt.c generated dynamicaly by scripts/Makefile.lib. When a mrproper is done, the static file dsdt.c is removed. If a build with acpi enabled is launched after, the following error is raised: CC lib/acpi/acpi_table.o m

Re: [PATCH v3] scripts: Makefile.lib: generate dsdt_generated.c instead of dsdt.c

2022-02-25 Thread Philippe REYNES
Hi Heinrich, Le 25/02/2022 à 15:59, Heinrich Schuchardt a écrit : On 2/25/22 13:33, Heiko Thiery wrote: Hi, Am Di., 22. Feb. 2022 um 14:55 Uhr schrieb Philippe Reynes : There is a conflict between the static file lib/acpi/dsdt.c and the file dsdt.c generated dynamicaly by scripts/Makefile.li

Re: [PATCH V2] dt-bindings: nvmem: add U-Boot environment variables binding

2022-02-25 Thread Rob Herring
On Thu, Feb 17, 2022 at 02:02:35PM +0100, Rafał Miłecki wrote: > From: Rafał Miłecki > > U-Boot uses environment variables for storing device setup data. It > usually needs to be accessed by a bootloader, kernel and often > user-space. How much of this is already in use vs. proposed? I know I've

[PATCH 6/9] Convert CONFIG_BOOTP_MAY_FAIL et al to Kconfig

2022-02-25 Thread Tom Rini
This converts the following to Kconfig: CONFIG_BOOTP_MAY_FAIL CONFIG_BOOTP_VENDOREX CONFIG_BOOTP_BOOTFILESIZE CONFIG_BOOTP_NISDOMAIN CONFIG_BOOTP_TIMEOFFSET Cc: Ramon Fried Signed-off-by: Tom Rini --- README| 15 --- cmd/Kconfig

[PATCH 4/9] Convert CONFIG_BOOTFILE to Kconfig

2022-02-25 Thread Tom Rini
This converts the following to Kconfig: CONFIG_BOOTFILE Signed-off-by: Tom Rini --- configs/M5235EVB_Flash32_defconfig | 2 ++ configs/M5235EVB_defconfig | 2 ++ configs/MPC837XERDB_defconfig | 2 ++ configs/MPC8548CDS_36BIT_d

[PATCH 8/9] Convert CONFIG_CFI_FLASH_USE_WEAK_ACCESSORS to Kconfig

2022-02-25 Thread Tom Rini
This converts the following to Kconfig: CONFIG_CFI_FLASH_USE_WEAK_ACCESSORS Signed-off-by: Tom Rini --- configs/blanche_defconfig | 1 + configs/ls1021aqds_ddr4_nor_defconfig | 1 + configs/ls1021aqds_ddr4_nor_lpuart_defconfig| 1 + configs/ls10

[PATCH 9/9] Convert CONFIG_CHIP_SELECTS_PER_CTRL to Kconfig

2022-02-25 Thread Tom Rini
This converts the following to Kconfig: CONFIG_CHIP_SELECTS_PER_CTRL Cc: Alison Wang Cc: Pramod Kumar Cc: Priyanka Jain Cc: Rajesh Bhagat Cc: Vladimir Oltean Signed-off-by: Tom Rini --- arch/arm/cpu/armv7/ls102xa/Kconfig | 2 +- arch/arm/cpu/armv7/ls102xa/soc.c | 2

[PATCH 5/9] powerpc: P1010RDB: Move CONFIG_BOOTMODE out of CONFIG namespace

2022-02-25 Thread Tom Rini
This slight environment modification shouldn't be in the CONFIG namespace, change it. Signed-off-by: Tom Rini --- include/configs/P1010RDB.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/configs/P1010RDB.h b/include/configs/P1010RDB.h index a5df554edf7b..a9c49

[PATCH 7/9] net: Remove CONFIG_BOOTP_DHCP_REQUEST_DELAY

2022-02-25 Thread Tom Rini
This option is not in use anywhere and the documentation implies it's for some very old and unlikely to be seen currently issues. Rather than update the code so the CONFIG symbol could be easily in Kconfig, remove the code. Cc: Ramon Fried Signed-off-by: Tom Rini --- README | 14 -

[PATCH 3/9] Convert CONFIG_BOARD_POSTCLK_INIT to Kconfig

2022-02-25 Thread Tom Rini
This converts the following to Kconfig: CONFIG_BOARD_POSTCLK_INIT Signed-off-by: Tom Rini --- README | 1 - arch/arm/Kconfig | 2 ++ arch/xtensa/Kconfig | 1 + common/Kconfig | 6 ++ include/configs/brppt2.h | 1 - include/confi

[PATCH 1/9] Convert CONFIG_BIOSEMU to Kconfig

2022-02-25 Thread Tom Rini
This converts the following to Kconfig: CONFIG_BIOSEMU Cc: Simon Glass Signed-off-by: Tom Rini --- board/google/Kconfig | 7 +++ include/configs/chromebook_samus.h | 3 --- include/configs/x86-chromebook.h | 1 - 3 files changed, 7 insertions(+), 4 deletions(-) diff --gi

[PATCH 2/9] Convert CONFIG_BOARD_ECC_SUPPORT to Kconfig

2022-02-25 Thread Tom Rini
This converts the following to Kconfig: CONFIG_BOARD_ECC_SUPPORT Signed-off-by: Tom Rini --- arch/arm/mach-mvebu/Kconfig | 5 + include/configs/db-mv784mp-gp.h | 1 - include/configs/maxbcm.h| 1 - 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-mv

Re: [PATCH 07/10] tpm: rng: Move the TPM RNG functionality to driver model

2022-02-25 Thread Ilias Apalodimas
On Thu, Feb 24, 2022 at 11:35:49PM +0530, Sughosh Ganu wrote: > Currently, the TPM random number generator(RNG) functions are defined > as part of the library functions under the corresponding tpm files for > tpmv1 and tpmv2. Move the RNG functionality under TPM RNG drivers > complying with the dri

Re: [PATCH 02/10] tpm: rng: Change tpm_get_random to return an int

2022-02-25 Thread Ilias Apalodimas
On Thu, 24 Feb 2022 at 20:06, Sughosh Ganu wrote: > > The tpm random number generation functionality will be moved to the > driver model. With that, the tpm_get_random function will call the > common driver model api instead of separate functions for tpmv1 and > tpmv2. Return an int instead of a u

Re: [PATCH 01/10] tpm: Move tpm-utils header under the include directory

2022-02-25 Thread Ilias Apalodimas
On Thu, Feb 24, 2022 at 11:35:43PM +0530, Sughosh Ganu wrote: > The random number generation functions of TPM will be moved under a > dedicated driver. With this, the function declarations along with > some other relevant macro definitions need to be moved under a > common header file directory. Mo

Re: [PATCH v3] scripts: Makefile.lib: generate dsdt_generated.c instead of dsdt.c

2022-02-25 Thread Heinrich Schuchardt
On 2/25/22 13:33, Heiko Thiery wrote: Hi, Am Di., 22. Feb. 2022 um 14:55 Uhr schrieb Philippe Reynes : There is a conflict between the static file lib/acpi/dsdt.c and the file dsdt.c generated dynamicaly by scripts/Makefile.lib. When a mrproper is done, the static file dsdt.c is removed. If a

[PATCH v6 16/16] configs: sandbox_defconfig: enable config CMD_VERIFY

2022-02-25 Thread Philippe Reynes
Enable the command verify on sandbox. Signed-off-by: Philippe Reynes --- configs/sandbox_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig index 46bf18bc98..a56aa92f94 100644 --- a/configs/sandbox_defconfig +++ b/configs/sandbox_d

[PATCH v6 12/16] tools: binman: add support for pre-load header

2022-02-25 Thread Philippe Reynes
Adds the support of the pre-load header with the image signature to binman. Signed-off-by: Philippe Reynes --- tools/binman/etype/pre_load.py| 165 ++ tools/binman/ftest.py | 45 + tools/binman/test/225_dev.key | 28 ++

[PATCH v6 13/16] configs: sandbox_defconfig: enable stage pre-load in bootm

2022-02-25 Thread Philippe Reynes
Enable the support of stage pre-load in bootm. For the moment, this stage allow to verify the signature of the full image with a header. Signed-off-by: Philippe Reynes --- configs/sandbox_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/sandbox_defconfig b/configs/sandbox

[PATCH v6 14/16] test: py: vboot: add test for global image signature

2022-02-25 Thread Philippe Reynes
Adds test units for the pre-load header signature. Signed-off-by: Philippe Reynes --- test/py/tests/test_vboot.py | 125 +++--- test/py/tests/vboot/sandbox-binman-pss.dts| 25 test/py/tests/vboot/sandbox-binman.dts| 24 .../tests/vboot/sandbo

[PATCH v6 15/16] cmd: verify: initial import

2022-02-25 Thread Philippe Reynes
Add the command verify that check the signature of an image with the pre-load header. If the check succeed, the u-boot env variable 'loadaddr_verified' is set to the address of the image (without the header). It allows to run such commands: tftp script.img && verify $loadaddr && source $loadaddr_v

[PATCH v6 07/16] boot: image: add a stage pre-load

2022-02-25 Thread Philippe Reynes
Add a stage pre-load that could check or modify an image. For the moment, only a header with a signature is supported. This header has the following format: - magic : 4 bytes - version : 4 bytes - header size : 4 bytes - image size : 4 bytes - offset image signature : 4 bytes - flags : 4 bytes - r

[PATCH v6 11/16] Makefile: provide sah-key to binman

2022-02-25 Thread Philippe Reynes
Set the variable key-path with the shell variable KEY_PATH that contain the keys path (used for signature). This variable key-path is provided to binman. Signed-off-by: Philippe Reynes --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 697cc51d67..c6da6cdb

[PATCH v6 09/16] common: spl: fit_ram: allow to use image pre load

2022-02-25 Thread Philippe Reynes
Add the support of image pre load in spl or tpl when loading an image from ram. Reviewed-by: Simon Glass Signed-off-by: Philippe Reynes --- common/spl/spl_ram.c | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/common/spl/spl_ram.c b/common/spl/spl_ram.c

[PATCH v6 03/16] lib: Kconfig: enhance the help of OID_REGISTRY

2022-02-25 Thread Philippe Reynes
Enhance the help for the config OID_REGISTRY. Reviewed-by: Simon Glass Signed-off-by: Philippe Reynes --- lib/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/lib/Kconfig b/lib/Kconfig index b0e5d60b3d..e749826f22 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -812,6 +812,10 @@ co

[PATCH v6 02/16] lib: Kconfig: enhance help for ASN1

2022-02-25 Thread Philippe Reynes
Enhance the help for configs ASN1_COMPILER and ASN1_decoder. Reviewed-by: Simon Glass Signed-off-by: Philippe Reynes --- lib/Kconfig | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lib/Kconfig b/lib/Kconfig index 3c6fa99b1a..b0e5d60b3d 100644 --- a/lib/Kconfig

[PATCH v6 10/16] mkimage: add public key for image pre-load stage

2022-02-25 Thread Philippe Reynes
This commit enhances mkimage to update the node /image/pre-load/sig with the public key. Signed-off-by: Philippe Reynes --- include/image.h| 15 ++ tools/fit_image.c | 3 ++ tools/image-host.c | 114 + 3 files changed, 132 insertions(+) di

[PATCH v6 06/16] lib: rsa: allow rsa verify with pkey in SPL

2022-02-25 Thread Philippe Reynes
This commit adds the option SPL_RSA_VERIFY_WITH_PKEY. Reviewed-by: Simon Glass Signed-off-by: Philippe Reynes --- lib/rsa/Kconfig | 19 +++ 1 file changed, 19 insertions(+) diff --git a/lib/rsa/Kconfig b/lib/rsa/Kconfig index be9775bcce..b773f17c26 100644 --- a/lib/rsa/Kconfig

[PATCH v6 04/16] lib: allow to build asn1 decoder and oid registry in SPL

2022-02-25 Thread Philippe Reynes
This commit adds the options: - SPL_ASN1_DECODER - SPL_OID_REGISTRY Signed-off-by: Philippe Reynes --- lib/Kconfig | 19 +++ lib/Makefile | 4 ++-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/lib/Kconfig b/lib/Kconfig index e749826f22..effe735365 100644 ---

[PATCH v6 05/16] lib: crypto: allow to build crypyo in SPL

2022-02-25 Thread Philippe Reynes
This commit adds the options: - SPL_ASYMMETRIC_KEY_TYPE - SPL_ASYMMETRIC_PUBLIC_KEY_SUBTYPE - SPL_RSA_PUBLIC_KEY_PARSER Reviewed-by: Simon Glass Signed-off-by: Philippe Reynes --- lib/Makefile| 3 ++- lib/crypto/Kconfig | 29 + lib/crypto/Makefile | 19

[PATCH v6 08/16] cmd: bootm: add a stage pre-load

2022-02-25 Thread Philippe Reynes
Add a stage pre-load to the command bootm. Right now, this stage may be used to read a header and check the signature of the full image. Reviewed-by: Simon Glass Signed-off-by: Philippe Reynes --- boot/bootm.c| 33 + cmd/Kconfig | 10 ++ cmd/bootm

[PATCH v6 00/16] image: add a stage pre-load

2022-02-25 Thread Philippe Reynes
This serie adds a stage pre-load before launching an image. This stage is used to read a header before the image and this header contains the signature of the full image. So u-boot may check the full image before using any data of the image. The support of this header is added to binman, and a com

[PATCH v6 01/16] arch: Kconfig: imply BINMAN for SANDBOX

2022-02-25 Thread Philippe Reynes
To be able to use the tool binman on sandbox, the config SANDBOX should imply BINMAN. Reviewed-by: Simon Glass Signed-off-by: Philippe Reynes --- arch/Kconfig | 1 + arch/sandbox/dts/sandbox.dtsi | 3 +++ arch/sandbox/dts/test.dts | 3 +++ test/py

Re: [PATCH 1/2] ARM: imx: imx8mn-evk: enable DM_SERIAL

2022-02-25 Thread Fabio Estevam
Hi Heiko, On Fri, Feb 25, 2022 at 10:21 AM Heiko Thiery wrote: > > Signed-off-by: Heiko Thiery Please provide a commit log explaining why you are doing this change. Thanks

Re: [PATCH 1/1] cmd: pwm: fix typo 'eisable' -> 'disable'

2022-02-25 Thread Michal Simek
On 2/25/22 14:48, Sébastien Szymanski wrote: Fixed misspelled 'disable' in help text. Signed-off-by: Sébastien Szymanski --- cmd/pwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/pwm.c b/cmd/pwm.c index 7947e61aee..7e82955239 100644 --- a/cmd/pwm.c +++ b/cmd/pw

[PATCH 2/2] bootcount: Add pmic pfuze100 bootcount driver

2022-02-25 Thread Philip Oberfichtner
Use the MEMA - MEMD registers on the PFUZE100 as bootcount registers. Based on work from Heiko Schocher . Signed-off-by: Philip Oberfichtner --- drivers/bootcount/Kconfig | 7 ++ drivers/bootcount/Makefile | 1 + drivers/bootcount/bootcount_pmic_pfuze100.c

[PATCH 1/2] power: pfuze100: Add MEMx register definitions

2022-02-25 Thread Philip Oberfichtner
Add missing MEMA - MEMD register definitions for PFUZE100. Based on work from Heiko Schocher . Signed-off-by: Philip Oberfichtner --- include/power/pfuze100_pmic.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/power/pfuze100_pmic.h b/include/power/pfuze100_pmic.h index f4383

[PATCH 0/2] Add pmic bootcount driver

2022-02-25 Thread Philip Oberfichtner
This series adds a new bootcount driver. The required register definitions and the actual driver are separated in two patches. Philip Oberfichtner (2): power: pfuze100: Add MEMx register definitions bootcount: Add pmic pfuze100 bootcount driver drivers/bootcount/Kconfig

Re: IMX8MM 4GiB boundary issue

2022-02-25 Thread Marek Vasut
On 2/25/22 12:37, Mark Kettenis wrote: From: Fabio Estevam Date: Fri, 25 Feb 2022 08:12:58 -0300 Hi Tim, On Thu, Feb 24, 2022 at 6:46 PM Tim Harvey wrote: Fabio, No, that commit is 'not' in v2021.07. Please test with master and you should see that go away. Yes, you are right. Regardles

[PATCH 1/1] cmd: pwm: fix typo 'eisable' -> 'disable'

2022-02-25 Thread Sébastien Szymanski
Fixed misspelled 'disable' in help text. Signed-off-by: Sébastien Szymanski --- cmd/pwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/pwm.c b/cmd/pwm.c index 7947e61aee..7e82955239 100644 --- a/cmd/pwm.c +++ b/cmd/pwm.c @@ -111,5 +111,5 @@ U_BOOT_CMD(pwm, 6, 0, do_pwm

RE: [PATCH] armv8: fsl-layerscape: use previous aligned address for gic_lpi_base

2022-02-25 Thread Z.Q. Hou
Hi Wasim, Marc and all, > -Original Message- > From: Wasim Khan (OSS) > Sent: 2022年2月21日 21:23 > To: Marc Zyngier ; Michael Walle ; > Z.Q. Hou > Cc: Wasim Khan (OSS) ; s...@chromium.org; > Priyanka Jain ; tred...@nvidia.com; > twar...@nvidia.com; Varun Sethi ; > u-boot@lists.denx.de > Su

[PATCH] arch: arm: recode the initialization of GICv3 ITS Re-Distributor tables

2022-02-25 Thread Zhiqiang Hou
From: Hou Zhiqiang The current implementation needs the caller provides the memory region for the property and pending tables and the number of re-distibutor, and it doesn't handle the address alignment of the tables and doesn't help to add the reserved-memory node for the tables. This patch cha

[PATCH 2/2] ARM: imx: imx8mn-ddr4-evk: enable DM_SERIAL

2022-02-25 Thread Heiko Thiery
Signed-off-by: Heiko Thiery --- configs/imx8mn_ddr4_evk_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/imx8mn_ddr4_evk_defconfig b/configs/imx8mn_ddr4_evk_defconfig index c13885ab5e..05aa4fb259 100644 --- a/configs/imx8mn_ddr4_evk_defconfig +++ b/configs/imx8mn_ddr4_evk_

[PATCH 1/2] ARM: imx: imx8mn-evk: enable DM_SERIAL

2022-02-25 Thread Heiko Thiery
Signed-off-by: Heiko Thiery --- configs/imx8mn_evk_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/imx8mn_evk_defconfig b/configs/imx8mn_evk_defconfig index 95ac6f85fa..15909d545c 100644 --- a/configs/imx8mn_evk_defconfig +++ b/configs/imx8mn_evk_defconfig @@ -84,6 +84,8 @

[PATCH 0/2] enable DM_SERIAL on imx8mn-evk and imx8mn-ddr4-evk

2022-02-25 Thread Heiko Thiery
I was only able to test it on a 8MNANOD3L-EVK board. Please help testing this change on the other 2 eval boards (8MNANOLPD4-EVK, 8MNANOD4-EVK). Heiko Thiery (2): ARM: imx: imx8mn-evk: enable DM_SERIAL ARM: imx: imx8mn-ddr4-evk: enable DM_SERIAL configs/imx8mn_ddr4_evk_defconfig | 2 ++ confi

Re: [PATCH v3] scripts: Makefile.lib: generate dsdt_generated.c instead of dsdt.c

2022-02-25 Thread Heiko Thiery
Hi, Am Di., 22. Feb. 2022 um 14:55 Uhr schrieb Philippe Reynes : > > There is a conflict between the static file > lib/acpi/dsdt.c and the file dsdt.c generated > dynamicaly by scripts/Makefile.lib. When a > mrproper is done, the static file dsdt.c is > removed. If a build with acpi enabled is > l

[PATCH 3/4] ARM: omap3_beagle: Enable Pinctrl

2022-02-25 Thread Romain Naour
The simple pinctrl driver currently available works with the omap3. Enabling this will use the device tree to automatically set the pin-muxing for various drivers. Based on commit: 57dbf754e37d3347cad441f3869bf72c0d726a71 Signed-off-by: Romain Naour --- configs/omap3_beagle_defconfig | 2 ++ 1

[PATCH 4/4] ARM: omap3_beagle: Enable DM_PMIC and DM_REGULATOR

2022-02-25 Thread Romain Naour
Enabling DM_PMIC, DM_REGULATOR_FIXED, and DM_REGULATOR_GPIO gives us the ability to better monitor voltages and enable hardware through the device tree. The TL4030 (TPS65950) is not yet migrated to DM, so this patch only enables the fixed and GPIO controlled regulators. Based on commit [1][2]. [1

[PATCH 2/4] ARM: omap3_beagle: Power on MMC when setting up PMIC

2022-02-25 Thread Romain Naour
The PMIC enables power to the MMC card by default, but depending on the state it was left when restarted, it's possible the MMC may be powered down. This patch patch explicitly tells the twl4030 to power the MMC. Based on commits [1][2]. [1] 64fd2d26140aa72b43428d079974f7c0e7f88353 [2] 27b653449

[PATCH 1/4] ARM: omap3_beagle: Remove non-DM initialization

2022-02-25 Thread Romain Naour
With DM_MMC working for both SPL and U-Boot, this patch removes the legacy style of initializing the MMC driver. Based on omap3_logic: 42140dd0962bc134c0aad27524d0f4cc3955f255. Signed-off-by: Romain Naour --- board/ti/beagle/beagle.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/boa

Re: IMX8MM 4GiB boundary issue

2022-02-25 Thread Mark Kettenis
> From: Fabio Estevam > Date: Fri, 25 Feb 2022 08:12:58 -0300 > > Hi Tim, > > On Thu, Feb 24, 2022 at 6:46 PM Tim Harvey wrote: > > > Fabio, > > > > No, that commit is 'not' in v2021.07. Please test with master and you > > should see that go away. > > Yes, you are right. > > > Regardless, Ma

Re: [RESEND RFC PATCH v2 1/4] efi_loader: add menu-driven boot device selection

2022-02-25 Thread Masahisa Kojima
Hi Heinrich, On Fri, 25 Feb 2022 at 16:26, Heinrich Schuchardt wrote: > > On 2/25/22 02:32, Masahisa Kojima wrote: > > This patch enables the menu-driven boot device selection. > > User can select the Boot included in BootOrder variable. > > > > If user quits thie menu, or the selected Boot##

Re: IMX8MM 4GiB boundary issue

2022-02-25 Thread Fabio Estevam
Hi Tim, On Thu, Feb 24, 2022 at 6:46 PM Tim Harvey wrote: > Fabio, > > No, that commit is 'not' in v2021.07. Please test with master and you > should see that go away. Yes, you are right. > Regardless, Marek's suggestion is the right fix if you can manage > that... we really don't want to limi

[PATCH v2] clk: nuvoton: Add support for NPCM845

2022-02-25 Thread Stanley Chu
Add clock controller driver for NPCM845 Signed-off-by: Stanley Chu Reviewed-by: Sean Anderson --- v2: - simplify function arguments as comment by Sean Anderson --- drivers/clk/Makefile | 1 + drivers/clk/nuvoton/Makefile | 1 + drivers/clk/nuvoton