Re: [PATCH v3] wdt: nuvoton: Add support for Nuvoton

2022-03-09 Thread Stefan Roese
On 3/10/22 04:50, jimliu2 wrote: Add watchdog controller driver for NPCM7xx/npcm8xx Signed-off-by: jimliu2 Reviewed-by: Stefan Roese Thanks, Stefan --- Changes for v2: - coding Style cleanup - change register type from struct npcm_wdt to iomem Changes for v3: - remove

Re: [PATCH] doc: device-tree-bindings: watchdog: document common properties

2022-03-09 Thread Stefan Roese
On 3/9/22 14:56, Philippe Reynes wrote: Adds simple documentation about common properties for watchdog in the device tree. Signed-off-by: Philippe Reynes Reviewed-by: Stefan Roese Thanks, Stefan --- doc/device-tree-bindings/watchdog/common.txt | 12 1 file changed, 12

Re: [PATCH 03/15] Convert CONFIG_ARMV8_SWITCH_TO_EL1 to Kconfig

2022-03-09 Thread Michal Simek
Hi Tom, On 3/10/22 02:43, Tom Rini wrote: This converts the following to Kconfig: CONFIG_ARMV8_SWITCH_TO_EL1 As this option isn't enabled anywhere and is for very specific circumstances, it's not an asked Kconfig option and instead noted as something to select. Cc: Alex Nemirovsky Cc:

[PATCH] mtd: spi-nor: Parse SFDP Command Sequence to change to Octal DDR(8D-8D-8D) mode

2022-03-09 Thread JaimeLiao
Parcing table of SFDP Command Sequence to change to Octal DDR(8D-8D-8D) mode(CSODDR) and following SPI protocol to judge opcode, address, dummy and data. Enabling Octal DDR mode when nor->octal_dtr_enable didn't hook. Signed-off-by: JaimeLiao --- drivers/mtd/spi/spi-nor-core.c | 114

Re: [RFC PATCH v3 2/2] bootmenu: add UEFI and disto_boot entries

2022-03-09 Thread Ilias Apalodimas
[...] > > > + command = calloc(1, command_size); > > > + if (!command) { > > > + free(entry->title); > > > + free(load_option); > > > + free(entry); > > > +

Re: [PATCH 11/15] Remove CONFIG_HAS_ETH0 et al symbols

2022-03-09 Thread Heiko Schocher
Hello Tom, On 10.03.22 02:44, Tom Rini wrote: > This converts removes the following symbols: >CONFIG_HAS_ETH0 >CONFIG_HAS_ETH1 >CONFIG_HAS_ETH2 >CONFIG_HAS_ETH3 > > This is because at this point, only the ids8313 platform was using the > code which was controlled by these

Re: [RFC PATCH v3 2/2] bootmenu: add UEFI and disto_boot entries

2022-03-09 Thread Masahisa Kojima
On Thu, 10 Mar 2022 at 11:42, Takahiro Akashi wrote: > > On Thu, Mar 10, 2022 at 10:50:57AM +0900, Takahiro Akashi wrote: > > On Wed, Mar 09, 2022 at 04:34:42PM +0200, Ilias Apalodimas wrote: > > > Hi Kojima-san > > > > > > On Tue, Mar 08, 2022 at 11:07:45PM +0900, Masahisa Kojima wrote: > > > >

[PATCH v3] wdt: nuvoton: Add support for Nuvoton

2022-03-09 Thread jimliu2
Add watchdog controller driver for NPCM7xx/npcm8xx Signed-off-by: jimliu2 --- Changes for v2: - coding Style cleanup - change register type from struct npcm_wdt to iomem Changes for v3: - remove common.h drivers/watchdog/Kconfig| 6 ++ drivers/watchdog/Makefile | 1 +

Re: [RFC PATCH v3 2/2] bootmenu: add UEFI and disto_boot entries

2022-03-09 Thread Masahisa Kojima
Hi Ilias, On Wed, 9 Mar 2022 at 23:34, Ilias Apalodimas wrote: > > Hi Kojima-san > > On Tue, Mar 08, 2022 at 11:07:45PM +0900, Masahisa Kojima wrote: > > This commit adds the UEFI related menu entries and > > distro_boot entries into the bootmenu. > > > > For UEFI, user can select which UEFI

Re: [RFC PATCH v3 2/2] bootmenu: add UEFI and disto_boot entries

2022-03-09 Thread Takahiro Akashi
On Thu, Mar 10, 2022 at 10:50:57AM +0900, Takahiro Akashi wrote: > On Wed, Mar 09, 2022 at 04:34:42PM +0200, Ilias Apalodimas wrote: > > Hi Kojima-san > > > > On Tue, Mar 08, 2022 at 11:07:45PM +0900, Masahisa Kojima wrote: > > > This commit adds the UEFI related menu entries and > > >

Re: [PATCH 13/15] imx: Convert some boards to DM_ETH

2022-03-09 Thread Tom Rini
On Wed, Mar 09, 2022 at 06:07:44PM -0800, Troy Kisky wrote: > On 3/9/2022 5:44 PM, Tom Rini wrote: > > A small number of i.MX6/7 and vf610 boards have not enabled DM_ETH yet. > > Given the state of the rest of the platform, enable DM_ETH. > > > > Cc: Alison Wang > > Cc: Fabio Estevam > > Cc:

Re: [PATCH 13/15] imx: Convert some boards to DM_ETH

2022-03-09 Thread Troy Kisky
On 3/9/2022 5:44 PM, Tom Rini wrote: > A small number of i.MX6/7 and vf610 boards have not enabled DM_ETH yet. > Given the state of the rest of the platform, enable DM_ETH. > > Cc: Alison Wang > Cc: Fabio Estevam > Cc: Richard Hu > Cc: Troy Kisky > Cc: Uri Mashiach > Signed-off-by: Tom Rini

Re: [RFC PATCH v3 2/2] bootmenu: add UEFI and disto_boot entries

2022-03-09 Thread Takahiro Akashi
On Wed, Mar 09, 2022 at 04:34:42PM +0200, Ilias Apalodimas wrote: > Hi Kojima-san > > On Tue, Mar 08, 2022 at 11:07:45PM +0900, Masahisa Kojima wrote: > > This commit adds the UEFI related menu entries and > > distro_boot entries into the bootmenu. > > > > For UEFI, user can select which UEFI

[PATCH 15/15] net: fec_mxc: Drop CONFIG_FEC_XCV_TYPE

2022-03-09 Thread Tom Rini
With all boards now using DM_ETH we determine the value for CONFIG_FEC_XCV_TYPE at run time, except in the case of the default fall-back. Set the fallback directly now. Cc: Fabio Estevam Cc: Ramon Fried Cc: Stefano Babic Signed-off-by: Tom Rini --- doc/README.fec_mxc |

[PATCH 14/15] net: fec_mxc: Remove non-DM_ETH code

2022-03-09 Thread Tom Rini
Now that all boards have been converted, remove the non-DM_ETH code. Cc: Fabio Estevam Cc: Ramon Fried Cc: Stefano Babic Signed-off-by: Tom Rini --- drivers/net/fec_mxc.c | 245 -- 1 file changed, 245 deletions(-) diff --git a/drivers/net/fec_mxc.c

[PATCH 07/15] Convert CONFIG_NET_RETRY_COUNT to Kconfig

2022-03-09 Thread Tom Rini
This converts the following to Kconfig: CONFIG_NET_RETRY_COUNT Cc: Ramon Fried Signed-off-by: Tom Rini --- README| 7 --- arch/arm/mach-mvebu/include/mach/config.h | 7 --- configs/am335x_baltos_defconfig | 1 +

[PATCH 13/15] imx: Convert some boards to DM_ETH

2022-03-09 Thread Tom Rini
A small number of i.MX6/7 and vf610 boards have not enabled DM_ETH yet. Given the state of the rest of the platform, enable DM_ETH. Cc: Alison Wang Cc: Fabio Estevam Cc: Richard Hu Cc: Troy Kisky Cc: Uri Mashiach Signed-off-by: Tom Rini --- I would very much welcome tested and perhaps

[PATCH 11/15] Remove CONFIG_HAS_ETH0 et al symbols

2022-03-09 Thread Tom Rini
This converts removes the following symbols: CONFIG_HAS_ETH0 CONFIG_HAS_ETH1 CONFIG_HAS_ETH2 CONFIG_HAS_ETH3 This is because at this point, only the ids8313 platform was using the code which was controlled by these symbols. In turn, this code already performs error checking on being

[PATCH 10/15] Convert CONFIG_NFS_TIMEOUT to Kconfig

2022-03-09 Thread Tom Rini
This converts the following to Kconfig: CONFIG_NFS_TIMEOUT Cc: Ramon Fried Signed-off-by: Tom Rini --- README | 7 --- cmd/Kconfig | 9 + configs/kzm9g_defconfig | 1 + include/configs/kzm9g.h | 2 -- net/nfs.c | 9 ++--- 5 files

[PATCH 09/15] Convert CONFIG_BOOT_RETRY_TIME et al to Kconfig

2022-03-09 Thread Tom Rini
This converts the following to Kconfig: CONFIG_BOOT_RETRY_TIME CONFIG_BOOT_RETRY_MIN CONFIG_RESET_TO_RETRY We also introduce CONFIG_BOOT_RETRY to gate these options, and clean up the associated Makefile entry and C code for picking default values of CONFIG_BOOT_RETRY_MIN. Signed-off-by:

[PATCH 02/15] arm: sunxi: Remove most SoC-specific config header files

2022-03-09 Thread Tom Rini
At this point, sunxi-common.h is used for all systems except for some MACH_SUN50I variants. Remove the now basically empty header files and update CONFIG_SYS_CONFIG_NAME to use sunxi-common.h directly. Cc: Jagan Teki Cc: Andre Przywara Signed-off-by: Tom Rini --- arch/arm/mach-sunxi/Kconfig

[PATCH 04/15] Convert CONFIG_A003399_NOR_WORKAROUND to Kconfig

2022-03-09 Thread Tom Rini
This converts the following to Kconfig: CONFIG_A003399_NOR_WORKAROUND Signed-off-by: Tom Rini --- README | 4 arch/powerpc/cpu/mpc85xx/Kconfig | 7 +++ include/configs/P1010RDB.h | 6 -- 3 files changed, 7 insertions(+), 10 deletions(-) diff

[PATCH 06/15] Convert CONFIG_ARP_TIMEOUT to Kconfig

2022-03-09 Thread Tom Rini
This converts the following to Kconfig: CONFIG_ARP_TIMEOUT Cc: Ramon Fried Signed-off-by: Tom Rini --- README | 4 arch/arm/mach-mvebu/include/mach/config.h | 1 - configs/aristainetos2c_defconfig| 1 +

[PATCH 03/15] Convert CONFIG_ARMV8_SWITCH_TO_EL1 to Kconfig

2022-03-09 Thread Tom Rini
This converts the following to Kconfig: CONFIG_ARMV8_SWITCH_TO_EL1 As this option isn't enabled anywhere and is for very specific circumstances, it's not an asked Kconfig option and instead noted as something to select. Cc: Alex Nemirovsky Cc: Marek Vasut Cc: Michal Simek Cc: Nobuhiro

[PATCH 08/15] powerpc: Move CONFIG_BPTR_VIRT_ADDR out of CONFIG namespace

2022-03-09 Thread Tom Rini
This is only used in one file, and is never overridden. Move this out of CONFIG namespace. Signed-off-by: Tom Rini --- arch/powerpc/cpu/mpc85xx/mp.c | 6 +++--- arch/powerpc/include/asm/config.h | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git

[PATCH 05/15] Convert CONFIG_A008044_WORKAROUND to Kconfig

2022-03-09 Thread Tom Rini
This converts the following to Kconfig: CONFIG_A008044_WORKAROUND Signed-off-by: Tom Rini --- README | 4 arch/powerpc/cpu/mpc85xx/Kconfig | 7 +++ include/configs/T104xRDB.h | 6 -- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git

[PATCH 01/15] Convert CONFIG_ARMV7_SECURE_BASE et al to Kconfig

2022-03-09 Thread Tom Rini
This converts the following to Kconfig: CONFIG_ARMV7_SECURE_BASE CONFIG_ARMV7_SECURE_MAX_SIZE CONFIG_ARMV7_SECURE_RESERVE_SIZE Signed-off-by: Tom Rini --- arch/arm/cpu/armv7/Kconfig | 31 ++ configs/Bananapi_M2_Ultra_defconfig| 1 +

Re: [RFC PATCH v3 1/2] efi_loader: introduce "bootefi bootindex" command

2022-03-09 Thread Masahisa Kojima
Hi Akashi-san, Ilias, On Wed, 9 Mar 2022 at 22:50, Ilias Apalodimas wrote: > > Hi Kojima-san > > On Wed, Mar 09, 2022 at 11:35:57AM +0900, Takahiro Akashi wrote: > > On Wed, Mar 09, 2022 at 09:47:25AM +0900, Masahisa Kojima wrote: > > > On Tue, 8 Mar 2022 at 23:17, Takahiro Akashi > > > wrote:

Re: [PATCH v3 08/19] dm: add tag support

2022-03-09 Thread AKASHI Takahiro
On Wed, Mar 09, 2022 at 01:41:04PM +0200, Ilias Apalodimas wrote: > Hi Akashi-san, > > > Signed-off-by: AKASHI Takahiro > > Reviewed-by: Simon Glass > > --- > > drivers/core/Makefile | 2 +- > > drivers/core/root.c | 2 + > > drivers/core/tag.c|

Re: [PATCH v3] arm: kirkwood: nas220: Add DM Ethernet, SATA, GPIO

2022-03-09 Thread Tony Dinh
Hi Hajo, Please see comments below. On Wed, Mar 9, 2022 at 5:42 AM Hajo Noerenberg wrote: > > On 09.03.2022 at 12:26 Tony Dinh wrote: > > Hi Hajo, > > > > Hi Tony, > > > On Wed, Mar 9, 2022 at 1:27 AM Hajo Noerenberg > > wrote: > >> > >> Bring the NAS220 board up to current standards. This is

Re: [PATCH] WIP: Nokia RX-51: Convert to CONFIG_DM_VIDEO

2022-03-09 Thread Anatolij Gustschin
Hi Pali, On Wed, 9 Mar 2022 20:44:50 +0100 Pali Rohár p...@kernel.org wrote: > On Sunday 06 March 2022 11:44:22 Simon Glass wrote: > > Hi Pali, > > > > On Sun, 6 Mar 2022 at 08:25, Pali Rohár wrote: > > > > > > On Sunday 06 March 2022 07:42:03 Simon Glass wrote: > > > > Yes let's go with

[PATCH 1/1] efi_loader: copy GUID in InstallProtocolInterface()

2022-03-09 Thread Heinrich Schuchardt
InstallProtocolInterface() is called with a pointer to the protocol GUID. There is not guarantee that the memory used by the caller for the protocol GUID stays allocated. To play it safe the GUID should be copied to U-Boot's internal structures. Reported-by: Joerie de Gram Signed-off-by:

[PATCH v3 3/4] arch: arm: mach-k3: am642_init: Probe ESM nodes

2022-03-09 Thread Hari Nagalla
On AM64x devices, it is possible to route Main ESM0 error events to MCU ESM. MCU ESM high error output can trigger the reset logic to reset the device. So, for these devices we expect two ESM device nodes in the device tree, one for Main ESM and the another MCU ESM in the device tree. When these

[PATCH v3 4/4] configs: am64x_evm_r5_defconfig: Add support for ESM

2022-03-09 Thread Hari Nagalla
Enable ESM driver for AM64x R5 SPL/u-boot builds. Signed-off-by: Hari Nagalla --- configs/am64x_evm_r5_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am64x_evm_r5_defconfig b/configs/am64x_evm_r5_defconfig index 61138dd1a9..e29e99c2d1 100644 ---

[PATCH v3 1/4] misc: k3_esm: Add functionality to set and route error events within K3SoC

2022-03-09 Thread Hari Nagalla
Add functionality to enable, set priority to the input events and to route to MCU ESM. On AM64x/AM62x devices, it is possible to route Main ESM0 error events to MCU ESM. When these error events are routed to MCU ESM high output, it can trigger the reset logic to reset the device, when

[PATCH v3 0/4] Add ESM driver support for AM64x R5 SPL/U-boot

2022-03-09 Thread Hari Nagalla
AM64x devices have a main ESM and a MCU ESM. The ESM driver enables routing of the error events from various sources to different processors or to reset hardware logic. Only the MCU ESM's high output can trigger reset logic. The main RTI0 WWDT output can be routed to the MCU highoutput to trigger

[PATCH v3 2/4] arm: dts: k3-am64: Add support for ESM device nodes

2022-03-09 Thread Hari Nagalla
Enable access to ESM0 configuration space and add Main ESM0 and MCU ESM nodes to the AM64 device tree. Signed-off-by: Hari Nagalla --- arch/arm/dts/k3-am64.dtsi| 1 + arch/arm/dts/k3-am642-r5-evm.dts | 19 +++ arch/arm/dts/k3-am642-r5-sk.dts | 19 +++ 3

Re: Please pull u-boot-watchdog/master

2022-03-09 Thread Tom Rini
On Tue, Mar 08, 2022 at 10:14:16AM +0100, Stefan Roese wrote: > Hi Tom, > > please pull the following watchdog related patches: > Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] board: .gitignore: replace dsdt.c by dsdt_generated.c

2022-03-09 Thread Tom Rini
On Tue, Mar 08, 2022 at 10:37:19AM +0100, Philippe Reynes wrote: > Since commit 5d94cbd1dca7 ("scripts: Makefile.lib: generate > dsdt_generated.c instead of dsdt.c"), the file generated > is named dsdt_generated.c instead of dsdt.c. > So all files .gitignore referencing dsdt.c should be > upated

Re: [PATCH] .mailmap: Fix Heinrich's xypron.g...@gmx.de record

2022-03-09 Thread Tom Rini
On Mon, Mar 07, 2022 at 08:41:21AM +0100, Michal Simek wrote: > There is one issue with Heinrich xypron.g...@gmx.de > record which should be specifically grouped with his name. > > Signed-off-by: Michal Simek Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: [PATCH v2] drivers: serial: Make sure we really return a serial device

2022-03-09 Thread Tom Rini
On Mon, Feb 21, 2022 at 10:17:37PM +0100, Mark Kettenis wrote: > The stdout-path property in the device tree does not necessarily > point at a serial device. On machines such as the Apple M1 laptops > where the serial port isn't easy to access and users expect to see > console output on the

[PATCH v2 2/2] Nokia RX-51: Convert to CONFIG_DM_VIDEO

2022-03-09 Thread Pali Rohár
Mechanically convert video_hw_init() function to UCLASS_VIDEO probe callback and replace CONFIG_CFB_CONSOLE by CONFIG_DM_VIDEO. As framebuffer base address is setup by the bootloader which loads U-Boot, set plat->base to that fixed framebuffer address. This change was tested in qemu n900 machine

[PATCH v2 1/2] video: Allow drivers to allocate the frame buffer themselves

2022-03-09 Thread Pali Rohár
When plat->base is set by driver then skip frame buffer reservation and allocation. Signed-off-by: Pali Rohár --- drivers/video/video-uclass.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c index

Re: [PATCH] WIP: Nokia RX-51: Convert to CONFIG_DM_VIDEO

2022-03-09 Thread Pali Rohár
On Sunday 06 March 2022 11:44:22 Simon Glass wrote: > Hi Pali, > > On Sun, 6 Mar 2022 at 08:25, Pali Rohár wrote: > > > > On Sunday 06 March 2022 07:42:03 Simon Glass wrote: > > > Yes let's go with that. > > > > Done, I sent final version of the patch. > > > > > > > > > > > Second thing is that

Re: [PATCH] Nokia RX-51: Convert to CONFIG_DM_VIDEO

2022-03-09 Thread Pali Rohár
On Sunday 06 March 2022 11:43:21 Simon Glass wrote: > On Sun, 6 Mar 2022 at 08:09, Pali Rohár wrote: > > -/* > > - * Routine: video_hw_init > > - * Description: Set up the GraphicDevice depending on sys_boot. > > - */ > > -void *video_hw_init(void) > > +static int rx51_video_probe(struct udevice

Re: [PATCH v2] mmc: fsl_esdhc_imx: use VENDORSPEC_FRC_SDCLK_ON when necessary

2022-03-09 Thread Tom Rini
On Tue, Feb 22, 2022 at 11:28:18AM +0800, haibo.c...@nxp.com wrote: > From: Haibo Chen > > After commit f132aab40327 ("Revert "mmc: fsl_esdhc_imx: use > VENDORSPEC_FRC_SDCLK_ON to control card clock output""), it > involve issue in mmc_switch_voltage(), because of the special > design of usdhc.

[PATCH] ARM: imx: romapi: Repair FlexSPI NOR boot offset

2022-03-09 Thread Marek Vasut
The FlexSPI NOR boot offset does not require any special handling, the image_offset is correct in either case (0x1000 for FlexSPI NOR and 0x8000 for SD/eMMC) and the offset of u-boot.itb from the start of flash.bin is always 0x58000 on MX8MN/MX8MP, which matches the

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

2022-03-09 Thread Rob Herring
On Wed, Mar 09, 2022 at 02:42:43PM +0100, Michal Simek wrote: > > > On 2/28/22 14:12, 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. > >

Re: [PATCH v3 00/19] efi_loader: more tightly integrate UEFI disks to driver model

2022-03-09 Thread Simon Glass
Hi Tom, On Wed, 9 Mar 2022 at 07:25, Tom Rini wrote: > > On Tue, Mar 08, 2022 at 08:10:38PM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Tue, 8 Mar 2022 at 20:00, Tom Rini wrote: > > > > > > On Tue, Mar 08, 2022 at 07:32:59PM -0700, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On

Re: [PATCH v3 6/8] cmd: rng: Add support for selecting RNG device

2022-03-09 Thread Simon Glass
Hi Sugosh, On Fri, 4 Mar 2022 at 06:35, Sughosh Ganu wrote: > > The 'rng' u-boot command is used for printing a select number of > random bytes on the console. Currently, the RNG device from which the > random bytes are read is fixed. However, a platform can have multiple > RNG devices, one

Re: [RFC PATCH v3 2/2] bootmenu: add UEFI and disto_boot entries

2022-03-09 Thread Ilias Apalodimas
Hi Kojima-san On Tue, Mar 08, 2022 at 11:07:45PM +0900, Masahisa Kojima wrote: > This commit adds the UEFI related menu entries and > distro_boot entries into the bootmenu. > > For UEFI, user can select which UEFI "Boot" option > to execute, call UEFI bootmgr and UEFI boot variable >

Re: [PATCH v3 00/19] efi_loader: more tightly integrate UEFI disks to driver model

2022-03-09 Thread Tom Rini
On Tue, Mar 08, 2022 at 08:10:38PM -0700, Simon Glass wrote: > Hi Tom, > > On Tue, 8 Mar 2022 at 20:00, Tom Rini wrote: > > > > On Tue, Mar 08, 2022 at 07:32:59PM -0700, Simon Glass wrote: > > > Hi Tom, > > > > > > On Tue, 8 Mar 2022 at 17:13, Tom Rini wrote: > > > > > > > > On Tue, Mar 08,

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

2022-03-09 Thread Rafał Miłecki
On 9.03.2022 14:42, Michal Simek wrote: On 2/28/22 14:12, 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. This binding allows describing environment data

[PATCH 3/3] lib: rsa: Update function padding_pss_verify (any-salt)

2022-03-09 Thread SESA644425
Modify function to support any salt length instead of max length only. Function now detects salt length by parsing the content of db buffer. Note that it works with (but is not limited to) zero-length, digest-length and max-length Signed-off-by: SESA644425 --- Despite checkpath.pl

[PATCH 2/3] lib: rsa: Leverage existing data buffer instead of systematic copy

2022-03-09 Thread SESA644425
Prior to introduction of modifications in rsassa_pss functions related to padding verification, doing a pass to reduce memory consumption of function by replacing memory copies of parts of const buffer by pointers to the original buffer (masked_db and h are subparts of msg buffer which is declared

[PATCH 1/3] lib: rsa: Fix const-correctness of rsassa_pss functions

2022-03-09 Thread SESA644425
Prior to introduction of modifications in rsassa_pss functions related to padding verification, doing a pass to update const-correctness in targeted functions to comply with coding-rules and avoid const-cast Signed-off-by: SESA644425 --- Despite checkpath.pl recommendation, it is not possible to

[PATCH 0/3] Support any-salt for padding pss verification

2022-03-09 Thread SESA644425
This patchset does add support for any salt length in function padding_pss_verify which currently supports only max salt-length option. The fix is preceded by two changes to enhance memory consumption and const-correctness in the area of the patch. - Hermann Gioja - SESA644425 (3): lib: rsa:

[PATCH] doc: device-tree-bindings: watchdog: document common properties

2022-03-09 Thread Philippe Reynes
Adds simple documentation about common properties for watchdog in the device tree. Signed-off-by: Philippe Reynes --- doc/device-tree-bindings/watchdog/common.txt | 12 1 file changed, 12 insertions(+) create mode 100644 doc/device-tree-bindings/watchdog/common.txt diff --git

Re: [RFC PATCH v3 1/2] efi_loader: introduce "bootefi bootindex" command

2022-03-09 Thread Ilias Apalodimas
Hi Kojima-san On Wed, Mar 09, 2022 at 11:35:57AM +0900, Takahiro Akashi wrote: > On Wed, Mar 09, 2022 at 09:47:25AM +0900, Masahisa Kojima wrote: > > On Tue, 8 Mar 2022 at 23:17, Takahiro Akashi > > wrote: > > > > > > On Tue, Mar 08, 2022 at 11:07:44PM +0900, Masahisa Kojima wrote: > > > > This

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

2022-03-09 Thread Michal Simek
On 2/28/22 14:12, 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. This binding allows describing environment data located in a raw flash partition. It's

Re: [PATCH v3] arm: kirkwood: nas220: Add DM Ethernet, SATA, GPIO

2022-03-09 Thread Hajo Noerenberg
On 09.03.2022 at 12:26 Tony Dinh wrote: > Hi Hajo, > Hi Tony, > On Wed, Mar 9, 2022 at 1:27 AM Hajo Noerenberg > wrote: >> >> Bring the NAS220 board up to current standards. This is basically an >> adaptation of the changes Tony Dinh implemented for the Dockstar board. >> >> - Implement the

[PATCH v4 7/8] doc: rng: Add documentation for the rng command

2022-03-09 Thread Sughosh Ganu
Add a usage document for the 'rng' u-boot command. Signed-off-by: Sughosh Ganu Reviewed-by: Ilias Apalodimas Reviewed-by: Simon Glass --- Changes since V3: None doc/usage/index.rst | 1 + doc/usage/rng.rst | 25 + 2 files changed, 26 insertions(+) create mode

[PATCH v4 8/8] test: rng: Add a UT testcase for the rng command

2022-03-09 Thread Sughosh Ganu
The 'rng' command dumps a number of random bytes on the console. Add a set of tests for the 'rng' command. The test function performs basic sanity testing of the command. Since a unit test is being added for the command, enable it by default in the sandbox platforms. Signed-off-by: Sughosh Ganu

[PATCH v4 5/8] qemu: arm: Remove platform specific function to get RNG device

2022-03-09 Thread Sughosh Ganu
The Qemu platform has a function defined to get the random number generator(RNG) device. However, the RNG device can be obtained simply by searching for a device belonging to the RNG uclass. Remove the superfluous platform function defined for the Qemu platform for getting the RNG device.

[PATCH v4 6/8] cmd: rng: Add support for selecting RNG device

2022-03-09 Thread Sughosh Ganu
The 'rng' u-boot command is used for printing a select number of random bytes on the console. Currently, the RNG device from which the random bytes are read is fixed. However, a platform can have multiple RNG devices, one example being qemu, which has a virtio RNG device and the RNG pseudo device

[PATCH v4 3/8] tpm: rng: Add driver model interface for TPM RNG device

2022-03-09 Thread Sughosh Ganu
The TPM device has a builtin random number generator(RNG) functionality. Expose the RNG functions of the TPM device to the driver model so that they can be used by the EFI_RNG_PROTOCOL if the protocol is installed. Also change the function arguments and return type of the random number functions

[PATCH v4 4/8] tpm: Add the RNG child device

2022-03-09 Thread Sughosh Ganu
The TPM device comes with the random number generator(RNG) functionality which is built into the TPM device. Add logic to add the RNG child device in the TPM uclass post probe callback. The RNG device can then be used to pass a set of random bytes to the linux kernel, need for address space

[PATCH v4 2/8] tpm: Fix the return type of tpm_startup

2022-03-09 Thread Sughosh Ganu
The tpm_startup function returns negative values for error conditions. Fix the return type of the function to a signed int instead of a u32. Signed-off-by: Sughosh Ganu Reviewed-by: Ilias Apalodimas Reviewed-by: Simon Glass --- Changes since V3: None include/tpm_api.h | 2 +- lib/tpm_api.c

[PATCH v4 1/8] tpm: rng: Change tpm_get_random to return an int

2022-03-09 Thread Sughosh Ganu
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 u32 to comply with the return value of the driver model

[PATCH v4 0/8] tpm: rng: Move TPM RNG functionality to driver model

2022-03-09 Thread Sughosh Ganu
The TPM device provides the random number generator(RNG) functionality, whereby sending a command to the TPM device results in the TPM device responding with random bytes. There was a discussion on the mailing list earlier[1], where it was explained that platforms with a TPM device can install

Re: [PATCH v3 00/19] efi_loader: more tightly integrate UEFI disks to driver model

2022-03-09 Thread Heinrich Schuchardt
On 3/9/22 06:07, AKASHI Takahiro wrote: On Tue, Mar 08, 2022 at 08:10:01PM -0700, Simon Glass wrote: Hi Takahiro, On Tue, 8 Mar 2022 at 19:48, AKASHI Takahiro wrote: Hi Simon, On Tue, Mar 08, 2022 at 07:34:15PM -0700, Simon Glass wrote: Hi Takahiro, On Tue, 8 Mar 2022 at 19:10, AKASHI

Re: [PATCH 0/3] net: phy: Add support for ethernet-phy-id

2022-03-09 Thread Michal Simek
st 23. 2. 2022 v 15:45 odesílatel Michal Simek napsal: > > Hi, > > this series is adding support for ethernet-phy-id with reset gpio support. > There is another series related to DM_ETH_PHY but it is missing creating > phy devices based on decoded phy IDs from compatible string. > We would like

Re: [PATCH] MAINTAINERS: Remove duplicated entry for ehci-zynq.c

2022-03-09 Thread Michal Simek
po 7. 3. 2022 v 8:43 odesílatel Michal Simek napsal: > > ehci-zynq.c is assigned to Zynq and ZynqMP that's why remove one. > > Signed-off-by: Michal Simek > --- > > MAINTAINERS | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/MAINTAINERS b/MAINTAINERS > index bfddb66abc73..915316a86e95

Re: [PATCH v3 08/19] dm: add tag support

2022-03-09 Thread Ilias Apalodimas
Hi Akashi-san, > Signed-off-by: AKASHI Takahiro > Reviewed-by: Simon Glass > --- > drivers/core/Makefile | 2 +- > drivers/core/root.c | 2 + > drivers/core/tag.c| 139 ++ > include/asm-generic/global_data.h | 4 + >

Re: [PATCH] arm64: zynqmp: add support for zcu106 rev1.0

2022-03-09 Thread Michal Simek
st 2. 3. 2022 v 15:12 odesílatel Michal Simek napsal: > > From: Neal Frager > > This patch adds psu_init for Xilinx ZCU106 rev1.0. Xilinx ZCU106 rev1.0 has > newer x16 DDR4 memories and it is SW compatible with revA. > > Signed-off-by: Neal Frager > Signed-off-by: Michal Simek > --- > >

Re: [PATCH] tools: zynqmp: add support for PM_CONFIG_OBJECT_TYPE_BASE define

2022-03-09 Thread Michal Simek
On 3/7/22 17:27, Adrian Fiergolski wrote: The new define has been added in Vivado 2021.2. Signed-off-by: Adrian Fiergolski --- tools/zynqmp_pm_cfg_obj_convert.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/zynqmp_pm_cfg_obj_convert.py b/tools/zynqmp_pm_cfg_obj_convert.py

Re: drivers: clk: stm32h7: Endless loop of dead in driver probe function

2022-03-09 Thread Johannes (krjdev) Krottmayer
Hi Patrice! I have bricked my board. LOL. Hope I can recover it, when soldering BOOT0 to VDD. Solder Bridge 192 (SB192). Don't verified the power settings first in the clock driver. The current power configuration clears SCUEN. But on STM32H747, this disables the SMPS converter. Same bit

Re: [PATCH 0/3] i2c: i2c-cdns: Driver fixes

2022-03-09 Thread Michal Simek
út 1. 3. 2022 v 9:16 odesílatel Michal Simek napsal: > > Hi, > > these 3 patches came from checking functionality on QEMU in connection to > SOM program. > > Thanks, > Michal > > > Sai Pavan Boddu (3): > i2c: i2c-cdns: Start read transaction after write to transfer_size reg > i2c: i2c-cdns:

Re: [PATCH 0/2] xilinx: video: add skeleton drivers for zynqmp DP

2022-03-09 Thread Michal Simek
st 23. 2. 2022 v 15:52 odesílatel Michal Simek napsal: > > Hi, > > add skeleton drivers for display port and display port DMA. The purpose of > having sketon drivers is to use the whole power domain infrastructure is > used. Without driver power domain driver is not asking for enabling power >

Re: [PATCH 0/4] mmc: zynq_sdhci: Add support for dynamic IP configuration

2022-03-09 Thread Michal Simek
st 23. 2. 2022 v 15:36 odesílatel Michal Simek napsal: > > Hi, > > with SOM boards low level sdhci setting is not fully done. There are > additional registers which are normally programmed via psu_init() but in > this case they are not initialized. Information can be taken from DT and > via

Re: [PATCH v3] arm: kirkwood: nas220: Add DM Ethernet, SATA, GPIO

2022-03-09 Thread Tony Dinh
Hi Hajo, On Wed, Mar 9, 2022 at 1:27 AM Hajo Noerenberg wrote: > > Bring the NAS220 board up to current standards. This is basically an > adaptation of the changes Tony Dinh implemented for the Dockstar board. > > - Implement the changes to v2 as suggested by Stefan Roese > - Add

Re: [PATCH v3 3/8] tpm: rng: Add driver model interface for TPM RNG device

2022-03-09 Thread Sughosh Ganu
hi Simon, On Wed, 9 Mar 2022 at 11:30, Sughosh Ganu wrote: > > hi Simon, > > Thanks for looking into this. I now have a fair idea of the structure > that you are looking for this interface. > > On Wed, 9 Mar 2022 at 08:05, Simon Glass wrote: > > > > Hi Sugosh, > > > > On Fri, 4 Mar 2022 at

Re: [PATCH v2] armv8: layerscape: fix the function mismatch issue

2022-03-09 Thread Andre Przywara
On Wed, 9 Mar 2022 15:37:22 +0800 andy.t...@nxp.com wrote: Hi Andy, > From: Yuantian Tang > > Signed-off-by: Yuantian Tang > --- > v2: update copyright year > > arch/arm/cpu/armv8/fsl-layerscape/lowlevel.S | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git

Re: iMX8MM USB support?

2022-03-09 Thread Tommaso Merciai
Hi All, In these days I'm working on SDP_SPL support on iMX8MM, thanks to Tim that guide me over the following patches: https://patchwork.ozlabs.org/project/uboot/list/?series=251796=* I'm able to reach the goal to boot U-Boot 2022.04-rc3 over SDP from SPL. I would like to suggest that at the

Re: iMX8MM USB support?

2022-03-09 Thread Michael Nazzareno Trimarchi
Hi Adding Tommaso On Fri, Apr 10, 2020 at 8:37 PM Tim Harvey wrote: > > On Thu, Apr 9, 2020 at 2:45 PM Tim Harvey wrote: > > > > On Thu, Apr 9, 2020 at 3:02 AM Schrempf Frieder > > wrote: > > > > > > On 08.04.20 17:31, Tim Harvey wrote: > > > [...] > > > >> > > > >> In my case I'm loading a

Re: [PATCH v6 2/4] ARM: dts: at91: sama5d2: add AIC node

2022-03-09 Thread Clément Léger
Le Wed, 9 Mar 2022 09:45:01 +, a écrit : > On 3/9/22 11:22 AM, Clément Léger wrote: > > When using interrupts property, a global interrupt controller needs to > > be added to avoid warnings when compiling device-tree: > > > > arch/arm/dts/at91-sama5d2_xplained.dtb: Warning

[PATCH v3] arm: kirkwood: nas220: Add DM Ethernet, SATA, GPIO

2022-03-09 Thread Hajo Noerenberg
Bring the NAS220 board up to current standards. This is basically an adaptation of the changes Tony Dinh implemented for the Dockstar board. - Implement the changes to v2 as suggested by Stefan Roese - Add CONFIG_SUPPORT_PASSING_ATAGS et al, otherwise standard Debian flash-kernel pkg is unable

[PATCH v6 1/4] timer: atmel_tcb_timer: add atmel_tcb driver

2022-03-09 Thread Clément Léger
Add a driver for the timer counter block that can be found on sama5d2. This driver will be used when booting under OP-TEE since the pit timer which is part of the SYSC is secured. Channel 1 & 2 are configured to be chained together which allows to have a 64bits counter. Signed-off-by: Clément

[PATCH v6 4/4] configs: sama5d2: enable option CONFIG_ATMEL_TCB_TIMER

2022-03-09 Thread Clément Léger
Enable CONFIG_ATMEL_TCB_TIMER and disable CONFIG_ATMEL_PIT_TIMER. This will allow using the TCB timer instead of the PIT one when running under OP-TEE. Signed-off-by: Clément Léger --- configs/sama5d2_icp_mmc_defconfig| 2 +- configs/sama5d2_ptc_ek_mmc_defconfig | 2 +-

[PATCH v6 3/4] ARM: dts: at91: sama5d2: add TCB node

2022-03-09 Thread Clément Léger
Add the device-tree node to describe the TCB timer. Signed-off-by: Clément Léger --- arch/arm/dts/sama5d2.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/dts/sama5d2.dtsi b/arch/arm/dts/sama5d2.dtsi index 1904f16eb6..ffbb171644 100644 ---

[PATCH v6 2/4] ARM: dts: at91: sama5d2: add AIC node

2022-03-09 Thread Clément Léger
When using interrupts property, a global interrupt controller needs to be added to avoid warnings when compiling device-tree: arch/arm/dts/at91-sama5d2_xplained.dtb: Warning (interrupts_property): /ahb/apb/timer@f800c000: Missing interrupt-parent Add AIC node as the sama5d2 global interrupt

[PATCH v6 0/4] add TCB driver for sama5d2

2022-03-09 Thread Clément Léger
When booting under OP-TEE, the SYSC is secured which means the PIT is also not accessible by non-secure world. The TCB 0 however is always available for non-secure world and thus can be used. This series add a TCB driver and enables it in sama5d2 configs. --- Changes in V6: - Fix node ordering in

[PATCH v3 2/2] usb: dwc3: Add support for usb3-phy PHY configuration

2022-03-09 Thread Michal Simek
When usb3-phy label is found, PHY driver is called and serdes line is initialized. This is preparation for serdes/psgtr driver to configure GT lines based on description in DT. Signed-off-by: Michal Simek --- Changes in v3: - Add cover letter Changes in v2: - Add missing header

[PATCH v3 0/2] usb: dwc3: Enable PHY support

2022-03-09 Thread Michal Simek
Hi, I am sending two patches for adding PHY support for DWC3 driver. For getting this work one header patch is required to fix issue with am57xx_hs_evm_usb_defconfig which enabled CONFIG_PHY and DWC3 drivers for U-Boot proper but doesn't enable CONFIG_SPL_PHY support. That's why there is a need

[PATCH v3 1/2] generic-phy: s/CONFIG_PHY/CONFIG_IS_ENABLED(PHY)/

2022-03-09 Thread Michal Simek
Allow to disable PHY driver in SPL because it checks the CONFIG_SPL_PHY variable for SPL builds. The same change was done for usb by commit fd09c205fc57 ("usb: s/CONFIG_DM_USB/CONFIG_IS_ENABLED(DM_USB)/"). Signed-off-by: Michal Simek --- (no changes since v2) Changes in v2: - based on bug

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

2022-03-09 Thread Ilias Apalodimas
Akashi-san [...] > > > I think that users should know how "dfu_alt_info" is defined > > > (in other words, where the firmware be located on the target > > > system) > > > when capsule files are created. > > > >>> > > > >>> That is true for a non A/B

Re: drivers: clk: stm32h7: Endless loop of dead in driver probe function

2022-03-09 Thread Patrice CHOTARD
On 3/9/22 09:02, Johannes (krjdev) Krottmayer wrote: > Hi Patrice! > > On 09.03.22 08:43, Patrice CHOTARD wrote: >> Hi johannes >> >> On 3/9/22 08:24, Johannes (krjdev) Krottmayer wrote: >>> Hi Patrick! >>> >>> Sorry, for my late response. :( >>> >>> On 08.03.22 10:00, Patrick DELAUNAY wrote:>

Re: drivers: clk: stm32h7: Endless loop of dead in driver probe function

2022-03-09 Thread Johannes (krjdev) Krottmayer
Hi Patrice! On 09.03.22 08:43, Patrice CHOTARD wrote: > Hi johannes > > On 3/9/22 08:24, Johannes (krjdev) Krottmayer wrote: >> Hi Patrick! >> >> Sorry, for my late response. :( >> >> On 08.03.22 10:00, Patrick DELAUNAY wrote:> Yes, the current clock >> driver for STM32 MCU is not perfect,> > as