Re: [PATCH v2 8/8] ARM: imxrt1170_defconfig: Add i.MXRT1170 defconfig

2022-06-17 Thread Fabio Estevam
Hi Jesse, On Fri, Jun 17, 2022 at 1:42 PM Jesse Taube wrote: > > Add a base defconfig for the i.MXRT1170 This should be part of the patch that adds support for the board (1/8). > +CONFIG_ARM=y > +CONFIG_SYS_DCACHE_OFF=y Any reason to turn off DCACHE?

Re: [PATCH 1/3] board: ti: common: Optimize boot when detecting consecutive bad records

2022-06-17 Thread Tom Rini
On Fri, Jun 17, 2022 at 02:19:57PM -0500, Nishanth Menon wrote: > On 14:50-20220617, Tom Rini wrote: > > On Fri, Jun 17, 2022 at 01:26:10PM -0500, Nishanth Menon wrote: > > > > > The eeprom data area is much bigger than the data we intend to store, > > > howeve

[PATCH 4/4] powerpc: Clean up CHAIN_OF_TRUST related options

2022-06-17 Thread Tom Rini
As things stand currently, there is only one PowerPC platform that enables the options for CHAIN_OF_TRUST. From the board header files, remove a number of never-set options. Remove board specific values from arch/powerpc/include/asm/fsl_secure_boot.h as well. Rework

[PATCH 3/4] nxp: config_fsl_chain_trust.h: Clean up and remove unused portions

2022-06-17 Thread Tom Rini
The way that secure boot is implemented today on NXP ARM platforms does not reuse the elements found in include/config_fsl_chain_trust.h to construct CONFIG_SECBOOT but instead board header files have their environment setup as needed and then fsl_setenv_chain_of_trust() will set secureboot in the

[PATCH 2/4] fsl_validate: Migrate SPL_UBOOT_KEY_HASH to Kconfig

2022-06-17 Thread Tom Rini
Move setting of SPL_UBOOT_KEY_HASH to a non-NULL value to Kconfig. As part of this, change fsl_secboot_validate(...) to check that it is passed a non-empty string, rather than non-NULL. Cc: Peng Fan Cc: Priyanka Jain Cc: Kshitiz Varshney Signed-off-by: Tom Rini --- arch/Kconfig.nxp

[PATCH 1/4] arch/Kconfig.nxp: Re-organize slightly

2022-06-17 Thread Tom Rini
Make all of the CHAIN_OF_TRUST options be under a single menu and add a comment for the rest, so the resulting config file reads more clearly. Remove duplicate CHAIN_OF_TRUST options from board/congatec/common/Kconfig. Remove duplicate NXP_ESBC config questions and move to arch/Kconfig.nxp.

Re: [PATCH] firmware: ti_sci_static_data: Make file board agnostic

2022-06-17 Thread Nishanth Menon
On 19:33-20220615, Vignesh Raghavendra wrote: > Static DMA channel data for R5 SPL is mostly board agnostic so use SOC > configs instead of EVM specific config to ease adding new board support. > > Drop J7200 EVM specific settings as its same as J721e > > Signed-off-by: Vignesh Raghavendra

Re: [PATCH 1/3] board: ti: common: Optimize boot when detecting consecutive bad records

2022-06-17 Thread Nishanth Menon
On 14:50-20220617, Tom Rini wrote: > On Fri, Jun 17, 2022 at 01:26:10PM -0500, Nishanth Menon wrote: > > > The eeprom data area is much bigger than the data we intend to store, > > however, with bad programming, we might end up reading bad records over > > and over till we

Re: [PATCH 1/3] board: ti: common: Optimize boot when detecting consecutive bad records

2022-06-17 Thread Tom Rini
On Fri, Jun 17, 2022 at 01:26:10PM -0500, Nishanth Menon wrote: > The eeprom data area is much bigger than the data we intend to store, > however, with bad programming, we might end up reading bad records over > and over till we run out of eeprom space. instead just exit when 10 > consecutive

[PATCH 3/3] board: ti: common: board_detect: Do 1byte address checks first.

2022-06-17 Thread Nishanth Menon
Do 1 byte address checks first prior to doing 2 byte address checks. When performing 2 byte addressing on 1 byte addressing eeprom, the second byte is taken in as a write operation and ends up erasing the eeprom region we want to preserve. While we could have theoretically handled this by

[PATCH 1/3] board: ti: common: Optimize boot when detecting consecutive bad records

2022-06-17 Thread Nishanth Menon
The eeprom data area is much bigger than the data we intend to store, however, with bad programming, we might end up reading bad records over and over till we run out of eeprom space. instead just exit when 10 consecutive records are read. Signed-off-by: Nishanth Menon ---

[PATCH 2/3] board: ti: common: Handle the legacy eeprom address width properly

2022-06-17 Thread Nishanth Menon
Due to supply chain issues, we are starting to see a mixture of eeprom usage including the smaller 7-bit addressing eeproms such as 24c04 used for eeproms. These eeproms don't respond well to 2 byte addressing and fail the read operation. We do have a check to ensure that we are reading the

[PATCH 0/3] board: ti: common: Fixups and optimizations for eeprom handling

2022-06-17 Thread Nishanth Menon
Hi, These are few of the fixes picked up from U-boot tree done for BeagleBone-AI64 and others. Additional testing is much appreciated - my test environment is currently limited :( Nishanth Menon (3): board: ti: common: Optimize boot when detecting consecutive bad records board: ti:

Re: Re: [Rock Pi 4+] Mainline LPDDR4 RAM initialisation is not sufficient to boot successfully

2022-06-17 Thread Lee Jones
On Fri, 17 Jun 2022, c...@rock-chips.com wrote: > Could you help us to get the DRAM part number which initialization failures > on the Rock Pi 4+. I have tested 3 boards; one appears to be fully working, on another 1 of the 2 LPDDR4 (Channel 1) chips consistently fails with a Col and Cap

[PATCH v2 7/8] ARM: dts: imx: add i.MXRT1170-EVK support

2022-06-17 Thread Jesse Taube
The NXP i.MXRT1170 Evaluation Kit (EVK) provides a platform for rapid evaluation of the i.MXRT, which features NXP's implementation of the Arm Cortex-M7 and Cortex-M4 core. The EVK provides 64 MB SDRAM, Micro SD card socket, USB 2.0 OTG. This patch aims to support the preliminary booting up

[PATCH v2 8/8] ARM: imxrt1170_defconfig: Add i.MXRT1170 defconfig

2022-06-17 Thread Jesse Taube
Add a base defconfig for the i.MXRT1170 Signed-off-by: Jesse Taube --- V1 -> V2: * Nothing done --- configs/imxrt1170-evk_defconfig | 67 + include/configs/imxrt1170-evk.h | 37 ++ 2 files changed, 104 insertions(+) create mode 100644

[PATCH v2 2/8] ARM: dts: imxrt11170-pinfunc: Add pinctrl binding header

2022-06-17 Thread Jesse Taube
Add binding header for i.MXRT1170 pinctrl device tree. Signed-off-by: Jesse Taube --- V1 -> V2: * Nothing done --- arch/arm/dts/imxrt1170-pinfunc.h | 1561 ++ 1 file changed, 1561 insertions(+) create mode 100644 arch/arm/dts/imxrt1170-pinfunc.h diff --git

[PATCH v2 6/8] RAM: Add changes for i.MXRT11xx series

2022-06-17 Thread Jesse Taube
The i.MXRT11 series has different offsets for IOCR_MUX, it also can address 64MiB of SDRAM so add a macro for that. Signed-off-by: Jesse Taube --- V1 -> V2: * Nothing done --- drivers/ram/imxrt_sdram.c| 9 + include/dt-bindings/memory/imxrt-sdram.h | 1 + 2 files

[PATCH v2 5/8] clk: imx: Add initial support for i.MXRT1170 clock driver

2022-06-17 Thread Jesse Taube
Add clock driver support for i.MXRT1170. Signed-off-by: Jesse Taube --- V1 -> V2: * Use C file not dts for constant clock divider --- drivers/clk/imx/Kconfig | 16 +++ drivers/clk/imx/Makefile| 1 + drivers/clk/imx/clk-imxrt1170.c | 221 3

[PATCH v2 4/8] clk: imx: Add i.MXRT11xx pllv3 variant

2022-06-17 Thread Jesse Taube
The i.MXRT11 series has two new pll types but are variants of existing. This patch adds the ability to read one of the pll types' frequency as it can't be changed unlike the generic pll it also has the division factors swapped. Signed-off-by: Jesse Taube --- V1 -> V2: * Change BM_PLL_POWER and

[PATCH v2 3/8] dt-bindings: imx: Add clock binding for i.MXRT1170

2022-06-17 Thread Jesse Taube
Add the clock binding doc for i.MXRT1170. Signed-off-by: Jesse Taube --- V1 -> V2: * Nothing done --- include/dt-bindings/clock/imxrt1170-clock.h | 48 + 1 file changed, 48 insertions(+) create mode 100644 include/dt-bindings/clock/imxrt1170-clock.h diff --git

[PATCH v2 1/8] imx: imxrt1170-evk: Add support for the NXP i.MXRT1170-EVK

2022-06-17 Thread Jesse Taube
This commit adds board support for i.MXRT1170-EVK from NXP. This board is an evaluation kit provided by NXP for i.MXRT117x processor family. Signed-off-by: Jesse Taube --- V1 -> V2: * Nothing done --- arch/arm/include/asm/arch-imx/cpu.h | 1 + arch/arm/mach-imx/imxrt/Kconfig

[PATCH v2 0/8] Add support for the i.MXRT1170

2022-06-17 Thread Jesse Taube
This patchset contains: - i.MXRT1170 clock driver adaption - i.MXRT1170-evk basic support Jesse Taube (8): imx: imxrt1170-evk: Add support for the NXP i.MXRT1170-EVK ARM: dts: imxrt11170-pinfunc: Add pinctrl binding header dt-bindings: imx: Add clock binding for i.MXRT1170 clk: imx: Add

[PATCH v4 3/3] drivers: rng: optee_rng: register to CONFIG_OPTEE_SERVICE_DISCOVERY

2022-06-17 Thread Etienne Carriere
Changes optee_rng driver to register itself has a OP-TEE service so that a device is bound for the driver when OP-TEE enumerates the PTA RNG service. Cc: Sughosh Ganu Cc: Patrick Delaunay Signed-off-by: Etienne Carriere --- Changes since v3: - Unconditionally register driver with

[PATCH v4 2/3] drivers: tee: optee: discover OP-TEE services

2022-06-17 Thread Etienne Carriere
This change defines resources for OP-TEE service drivers to register themselves for being bound to when OP-TEE firmware reports the related service is supported. OP-TEE services are discovered during optee driver probe sequence which mandates optee driver is always probe once bound. Discovery of

[PATCH v4 1/3] drivers: tee: optee: remove unused probe local variable

2022-06-17 Thread Etienne Carriere
Removes local variable child in optee_probe() that is not used. Cc: Patrick Delaunay Reviewed-by: Patrick Delaunay Signed-off-by: Etienne Carriere --- Changes since v3: - Applied Patrick's R-b tag. No change since v2. New change not in v1 series. --- drivers/tee/optee/core.c | 3 +-- 1 file

Re: Re: [Rock Pi 4+] Mainline LPDDR4 RAM initialisation is not sufficient to boot successfully

2022-06-17 Thread c...@rock-chips.com
Could you help us to get the DRAM part number which initialization failures on the Rock Pi 4+. We have found that some LPDDR4 abnormal operation at 50MHz. I think you can try that use 400MHz to detect capacity. diff --git a/drivers/ram/rockchip/sdram_rk3399.c

Re: [RFC PATCH v4 00/28] Modernize U-Boot shell

2022-06-17 Thread Tom Rini
On Fri, Jun 17, 2022 at 12:31:30AM +0200, Francis Laniel wrote: > Hi. > > > First I hope you are fine and the same for your relatives. > > During 2021 summer, Sean Anderson wrote a contribution to add a new shell, > based > on LIL, to U-Boot [1][2]. > While one of the goals of this

Re: [RFC PATCH v4 27/28] for test purpose only: Comment out failed function which fails only in CI.

2022-06-17 Thread Tom Rini
On Fri, Jun 17, 2022 at 12:31:57AM +0200, Francis Laniel wrote: > Signed-off-by: Francis Laniel > --- > test/cmd/setexpr.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/test/cmd/setexpr.c b/test/cmd/setexpr.c > index 0dc94f7e61..71c751d766 100644 > ---

Re: [RFC PATCH v4 28/28] board: keymile: common: Use environment to store IVM_* variables.

2022-06-17 Thread Tom Rini
On Fri, Jun 17, 2022 at 12:31:58AM +0200, Francis Laniel wrote: > These boards used set_local_var() to store some variables as local shell. > They then used get_local_var() to retrieve the variables values. > > Instead of using local shell variables, they should use environment ones > (like a >

Re: [PATCH v10 00/13] fpga: zynqmp: Adding support of loading authenticated images

2022-06-17 Thread Adrian Fiergolski
Hi Oleksandr, Thank you for the follow-up. I took the chance to test this patchset in the actual hardware. I focused on the encrypted bitfiles (not authenticated) and I confirm it works. Regads, Adrian On 12.06.2022 00:06, Oleksandr Suvorov wrote: This patchset introduces support for the

Re: [PATCH v3 3/3] drivers: rng: optee_rng: register to CONFIG_OPTEE_SERVICE_DISCOVERY

2022-06-17 Thread Etienne Carriere
Hi Patrick, On Fri, 17 Jun 2022 at 14:06, Patrick DELAUNAY wrote: > > Hi, > > a minor remark > > On 6/7/22 12:21, Etienne Carriere wrote: > > Changes optee_rng driver to register itself has a OP-TEE service so > > that a device is bound for the driver when OP-TEE enumerates the > > PTA RNG

Re: [RFC PATCH v4 26/28] for test purpose only: Comment out dollar tests which prints error messages.

2022-06-17 Thread Tom Rini
On Fri, Jun 17, 2022 at 12:31:56AM +0200, Francis Laniel wrote: > Error messages like "unknown command" will make the CI fails. > So, for the moment, we comment these tests. > > Signed-off-by: Francis Laniel Why don't we have the test expect "unknown command" as the output here, when on the

Re: [PATCH v5 20/23] FWU: synquacer: Generate dfu_alt_info from devicetree partition

2022-06-17 Thread Michal Simek
On 6/9/22 14:30, Sughosh Ganu wrote: From: Masami Hiramatsu Generate dfu_alt_info from the partition uuid information in the devicetree, and record the mapping of partition uuid and the index of dfu_alt_num. This could be a reference implementation of the automatic DFU generation for FWU

Re: [PATCH v5 19/23] FWU: synquacer: Add FWU Multi bank update support for DeveloperBox

2022-06-17 Thread Michal Simek
On 6/9/22 14:30, Sughosh Ganu wrote: From: Masami Hiramatsu The DeveloperBox platform can support the FWU Multi bank update. SCP firmware will switch the boot mode by DSW3-4 and load the Multi bank update supported TF-A BL2 from 0x60 offset on the SPI flash. Thus it can co-exist with

Re: [PATCH v5 21/23] doc: synquacer: Add how to enable FWU Multi Bank Update

2022-06-17 Thread Michal Simek
On 6/9/22 14:30, Sughosh Ganu wrote: From: Masami Hiramatsu Add a section for the instruction of building the FWU Multi Bank Update supported U-Boot and installation. Signed-off-by: Masami Hiramatsu Signed-off-by: Sughosh Ganu --- doc/board/socionext/developerbox.rst | 110

Re: [PATCH] tools: binman: install btool

2022-06-17 Thread Tom Rini
On Tue, Jun 14, 2022 at 06:42:07PM +0800, Peng Fan (OSS) wrote: > From: Peng Fan > > btool is needed after install binman to system. > > Signed-off-by: Peng Fan > Reviewed-by: Alper Nebi Yasak Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] board: ti: am335x: eth_cpsw should depend on CONFIG_NET

2022-06-17 Thread Tom Rini
On Tue, Jun 14, 2022 at 08:44:07AM +, Corentin LABBE wrote: > The origin of this patch is the breaking of am335x-hs boot > due to commit e41651fffda7 ("dm: Support parent devices with of-platdata") > HS boards have less SRAM for SPL and so this commit increased memory usage > beyond am335x

Re: [PATCH v2] armv8: always use current exception level for TCR_ELx access

2022-06-17 Thread Tom Rini
On Tue, Jun 14, 2022 at 12:11:10AM +0100, Andre Przywara wrote: > Currently get_tcr() takes an "el" parameter, to select the proper > version of the TCR_ELx system register. > This is problematic in case of the Apple M1, since it runs with > HCR_EL2.E2H fixed to 1, so TCR_EL2 is actually using

Re: [PATCH] arm64: dts: imx8mq-kontron-pitx-imx8m-u-boot.dtsi: disable assigned clocks

2022-06-17 Thread Tom Rini
On Sat, Jun 11, 2022 at 08:09:04AM +0200, Heiko Thiery wrote: > With the move to use DM_CLK the boards uart stops working. The used > properties are not supported by the imx8mq clock driver. Thus > the correct baudrate cannot be selected. Remove this properties here and > the board can start with

Re: [PATCH v2] fs/squashfs: sqfs_read: Prevent arbitrary code execution

2022-06-17 Thread Tom Rini
On Thu, Jun 09, 2022 at 04:02:06PM +0200, Miquel Raynal wrote: > Following Jincheng's report, an out-of-band write leading to arbitrary > code execution is possible because on one side the squashfs logic > accepts directory names up to 65535 bytes (u16), while U-Boot fs logic > accepts directory

Re: [PATCH] odroid_xu3: Fix board environment variable

2022-06-17 Thread Tom Rini
On Wed, Jun 08, 2022 at 02:30:14PM -0400, Tom Rini wrote: > When migrating CONFIG_CONS_INDEX to Kconfig, on this platform we changed > what "board" evaluated to in the environment. This in turn meant that > we would no longer try and find the correct fdtfile via the normal > distro boot logic.

Re: [PATCH] usb: host: ehci-generic: Make resets and clocks optional

2022-06-17 Thread Tom Rini
On Wed, Jun 08, 2022 at 12:42:22AM +0100, Andre Przywara wrote: > The generic EHCI binding does not *require* resets and clocks > properties, and indeed for instance the Allwinner A20 SoCs does not > need or define any resets in its DT. > > Don't easily give up if clk_get_bulk() or

Re: [PATCH] .gitignore: add files produced by b4

2022-06-17 Thread Tom Rini
On Tue, Jun 07, 2022 at 10:13:00AM +0200, Andrey Zhizhikin wrote: > b4 utility [1] is introduced by Linux Kernel developers and used to > fetch patches and patch series from lore.kernel.org and is proven > to be useful for U-Boot development. Detailed usage of the tool can be > read under post

Re: [PATCH] Update email address and company name

2022-06-17 Thread Tom Rini
On Thu, May 12, 2022 at 04:21:53PM +0200, Christophe Leroy wrote: > This patch updates my email address and company name. > > Signed-off-by: Christophe Leroy Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] arch: arm: mach-k3: am642_init: bring back MCU_PADCFG_MMR1 unlock

2022-06-17 Thread Tom Rini
On Thu, May 12, 2022 at 08:21:01AM +0200, Christian Gmeiner wrote: > Without this register unlock it is not possible to configure the > pinmux used for mcu spi0. > > Fixes: 92e46092f2 ("arch: arm: mach-k3: am642_init: Probe ESM nodes") > Signed-off-by: Christian Gmeiner > Reviewed-by: Nishanth

Re: [PATCH] net: Fix discuss discard typo

2022-06-17 Thread Tom Rini
On Sun, May 01, 2022 at 06:43:55PM +0200, Marek Vasut wrote: > Replace discuss with discard, that is what happens with packet with > incorrect checksum. Fix the typo. > > Fixes: 4b37fd146bb ("Convert CONFIG_UDP_CHECKSUM to Kconfig") > Signed-off-by: Marek Vasut > Cc: Ramon Fried > Cc: Simon

Re: [PATCH] crypto: fsl_hash: Remove unnecessary alignment check in caam_hash()

2022-06-17 Thread Tom Rini
On Fri, Apr 29, 2022 at 03:34:44PM +0200, Stefan Roese wrote: > While working on an LX2160 based board and updating to latest mainline > I noticed problems using the HW accelerated hash functions on this > platform, when trying to boot a FIT Kernel image. Here the resulting > error message: > >

Re: [PATCH] disk: part: change from hextoul to dectoul

2022-06-17 Thread Tom Rini
On Fri, Jun 17, 2022 at 07:01:59PM +0900, Jaehoon Chung wrote: > When 'ls' command is running with partition number, it's passed by a hex > value. For example, if want to check a 15th partition, it has to input > as 0xf. > Before applied > - ls mmc 0:f > After applied > - ls mmc 0:15 > > The

Re: [PATCH v3 3/3] drivers: rng: optee_rng: register to CONFIG_OPTEE_SERVICE_DISCOVERY

2022-06-17 Thread Patrick DELAUNAY
Hi, a minor remark On 6/7/22 12:21, Etienne Carriere wrote: Changes optee_rng driver to register itself has a OP-TEE service so that a device is bound for the driver when OP-TEE enumerates the PTA RNG service. Cc: Sughosh Ganu Cc: Patrick Delaunay Signed-off-by: Etienne Carriere --- No

Re: [PATCH v3 3/3] drivers: rng: optee_rng: register to CONFIG_OPTEE_SERVICE_DISCOVERY

2022-06-17 Thread Patrick DELAUNAY
Hi, On 6/7/22 12:21, Etienne Carriere wrote: Changes optee_rng driver to register itself has a OP-TEE service so that a device is bound for the driver when OP-TEE enumerates the PTA RNG service. Cc: Sughosh Ganu Cc: Patrick Delaunay Signed-off-by: Etienne Carriere --- No change since v2.

Re: [PATCH v3 2/3] drivers: tee: optee: discover OP-TEE services

2022-06-17 Thread Patrick DELAUNAY
Hi, On 6/7/22 12:21, Etienne Carriere wrote: This change defines resources for OP-TEE service drivers to register themselves for being bound to when OP-TEE firmware reports the related service is supported. OP-TEE services are discovered during optee driver probe sequence which mandates optee

Re: [PATCH v3 1/3] drivers: tee: optee: remove unused probe local variable

2022-06-17 Thread Patrick DELAUNAY
Hi Etienne, On 6/7/22 12:21, Etienne Carriere wrote: Removes local variable child in optee_probe() that is not used. Cc: Patrick Delaunay Signed-off-by: Etienne Carriere --- No change since v2. New change not in v1 series. --- drivers/tee/optee/core.c | 3 +-- 1 file changed, 1

[PULL] Pull request for u-boot master / v2022.07 = u-boot-stm32-20220617

2022-06-17 Thread Patrick DELAUNAY
Hi Tom, Please pull the STM32 related fixes for u-boot/master, v2022.07: u-boot-stm32-20220617 - Fix the stm32prog command for stm32mp platform - Add stm32mp15x DHCOR based DRC Compact board CI status: https://source.denx.de/u-boot/custodians/u-boot-stm/-/pipelines/12387 Thanks, Patrick

Re: [PATCH 00/10] xilinx: zynqmp: Support foreign vendor boards

2022-06-17 Thread Michal Simek
Hi, On 6/8/22 18:20, Stefan Herbrechtsmeier wrote: [CAUTION: External Email] From: Stefan Herbrechtsmeier At the moment the xilinx zynqmp soc is only supported by xilinx vendor boards. Rework the xilinx zynqmp board code to support reuse by foreign vendor boards. Stefan Herbrechtsmeier

[PATCH v3 11/11] socfpga: arria10: Allow dcache_enable before relocation

2022-06-17 Thread Paweł Anikiel
Before relocating to SDRAM, the ECC is initialized by clearing the whole SDRAM. In order to speed this up, dcache_enable is used (see sdram_init_ecc_bits). Since commit 503eea451903 ("arm: cp15: update DACR value to activate access control"), this no longer works, because running code in OCRAM

[PATCH v3 10/11] socfpga: arria10: Wait for fifo empty after writing bitstream

2022-06-17 Thread Paweł Anikiel
For some reason, on the Mercury+ AA1 module, calling fpgamgr_wait_early_user_mode immediately after writing the peripheral bitstream leaves the fpga in a broken state (ddr calibration hangs). Adding a delay before the first sync word is written seems to fix this. Inspecting the fpgamgr registers

[PATCH v3 09/11] socfpga: arria10: Improve bitstream loading speed

2022-06-17 Thread Paweł Anikiel
Apply some optimizations to speed up bitstream loading (both for full and split periph/core bitstreams): * Change the size of the first fs read, so that all the subsequent reads are aligned to a specific value (called MAX_FIRST_LOAD_SIZE). This value was chosen so that in subsequent reads

[PATCH v3 08/11] socfpga: arria10: Replace delays with busy waiting in cm_full_cfg

2022-06-17 Thread Paweł Anikiel
Using udelay while the clocks aren't fully configured causes the timer system to save the wrong clock rate. Use sdelay and wait_on_value instead (the values used in these functions were found experimentally). Signed-off-by: Paweł Anikiel --- arch/arm/mach-socfpga/clock_manager_arria10.c | 31

[PATCH v3 07/11] sysreset: socfpga: Use parent device for reading base address

2022-06-17 Thread Paweł Anikiel
This driver is a child of the rstmgr driver, both of which share the same devicetree node. As a result, passing the child's udevice pointer to dev_read_addr_ptr results in a failure of reading the #address-cells property. Use the parent udevice pointer instead. Signed-off-by: Paweł Anikiel

[PATCH v3 06/11] misc: atsha204a: Increase wake delay by tWHI

2022-06-17 Thread Paweł Anikiel
>From the ATSHA204A datasheet (document DS40002025A): Wake: If SDA is held low for a period greater than tWLO, the device exits low-power mode and, after a delay of tWHI, is ready to receive I2C commands. tWHI value can be found in table 7-2. Signed-off-by: Paweł Anikiel Reviewed-by: Simon

[PATCH v3 05/11] config: Add Chameleonv3 config

2022-06-17 Thread Paweł Anikiel
Add defconfig and Kconfig files for Google Chameleon V3 board Signed-off-by: Paweł Anikiel Reviewed-by: Simon Glass --- arch/arm/mach-socfpga/Kconfig | 7 + configs/socfpga_chameleonv3_defconfig | 29 ++ include/configs/socfpga_chameleonv3.h | 44

[PATCH v3 04/11] board: Add Chameleonv3 board dir

2022-06-17 Thread Paweł Anikiel
Add board directory for Google Chameleon V3 board Signed-off-by: Paweł Anikiel Reviewed-by: Simon Glass --- board/google/chameleonv3/Makefile | 5 +++ board/google/chameleonv3/board.c | 27 ++ board/google/chameleonv3/fpga.its | 28 ++

[PATCH v3 03/11] arm: dts: Add Chameleonv3 devicetrees

2022-06-17 Thread Paweł Anikiel
Add devicetrees for Google Chameleon V3 board Signed-off-by: Paweł Anikiel Signed-off-by: Alexandru M Stan Reviewed-by: Simon Glass --- arch/arm/dts/Makefile | 2 + arch/arm/dts/socfpga_arria10_chameleonv3.dts | 90 +++

[PATCH v3 02/11] arm: dts: Add Chameleonv3 handoff headers

2022-06-17 Thread Paweł Anikiel
Add handoff headers for the Google Chameleonv3 variants: 480-2 and 270-3. Both files were generated using qts-filter-a10.sh. Signed-off-by: Paweł Anikiel Reviewed-by: Simon Glass --- ...ocfpga_arria10_chameleonv3_270_3_handoff.h | 305 ++

[PATCH v3 01/11] arm: dts: Add Mercury+ AA1 devicetrees

2022-06-17 Thread Paweł Anikiel
Devicetree headers for Mercury+ AA1 module Signed-off-by: Paweł Anikiel Reviewed-by: Simon Glass --- .../socfpga_arria10_mercury_aa1-u-boot.dtsi | 54 ++ arch/arm/dts/socfpga_arria10_mercury_aa1.dtsi | 72 +++ 2 files changed, 126 insertions(+) create mode 100644

[PATCH v3 00/11] Add Chameleon v3 support

2022-06-17 Thread Paweł Anikiel
The Google Chameleon v3 is a board made for testing both video and audio interfaces of external devices. It has a connector compatible with the Mercury+ AA1 module, which itself contains an Arria 10 SoCFPGA. The AA1 module comes in a few different configurations, the Chameleon V3 supports

Re: [PATCH 04/10] xilinx: zynqmp: Use soc machine function to get silicon idcode name

2022-06-17 Thread Michal Simek
On 6/8/22 18:20, Stefan Herbrechtsmeier wrote: [CAUTION: External Email] From: Stefan Herbrechtsmeier Use the soc_get_machine function of the soc uclass to get silicon idcode name for the fpga init. Signed-off-by: Stefan Herbrechtsmeier --- board/xilinx/zynqmp/zynqmp.c | 287

Re: [PATCH 03/10] soc: xilinx: zynqmp: Add machine identification support

2022-06-17 Thread Michal Simek
On 6/8/22 18:20, Stefan Herbrechtsmeier wrote: [CAUTION: External Email] From: Stefan Herbrechtsmeier Add machine identification support based on the zynqmp_get_silicon_idcode_name function in board/xilinx/zynqmp/zynqmp.c. Signed-off-by: Stefan Herbrechtsmeier ---

[PATCH] disk: part: change from hextoul to dectoul

2022-06-17 Thread Jaehoon Chung
When 'ls' command is running with partition number, it's passed by a hex value. For example, if want to check a 15th partition, it has to input as 0xf. Before applied - ls mmc 0:f After applied - ls mmc 0:15 The using decimal number is more readable than passed by a hex value. Signed-off-by:

Re: [PATCH] stm32mp1: fix reference for STMicroelectronics

2022-06-17 Thread Patrick DELAUNAY
Hi, On 5/20/22 18:38, Patrick Delaunay wrote: Replace reference to the correct name STMicroelectronics Signed-off-by: Patrick Delaunay --- arch/arm/Kconfig | 2 +- arch/arm/cpu/armv7/stv0991/lowlevel.S | 2 +- arch/arm/mach-sti/Kconfig | 2 +-

Re: [PATCH v2] configs: stm32mp: cleanup the stm32mp15 file

2022-06-17 Thread Patrick DELAUNAY
Hi, On 6/15/22 19:41, Patrick Delaunay wrote: Remove STM32_SYSRAM_END and clean the comments in stm32mp15_common.h file after moving some CONFIG to Kconfig: CONFIG_SYS_CBSIZE, CONFIG_SPL_MAX_FOOTPRINT, CONFIG_SYS_SPL_MALLOC_START and CONFIG_SYS_SPL_MALLOC_SIZE. Signed-off-by: Patrick Delaunay

Re: [PATCH] stm32mp: stpmic1: remove the debug unit request by debugger

2022-06-17 Thread Patrick DELAUNAY
Hi, On 6/1/22 18:33, Patrick Delaunay wrote: Depending on backup register value, U-Boot SPL maintains the debug unit powered-on for debugging purpose; only BUCK1 is required for powering the debug unit, so revert the setting for all the other power lanes, except BUCK3 that has to be always on.

Re: [PATCH v1 2/2] ARM: stm32: activate OF_LIVE for DHSOM

2022-06-17 Thread Patrick DELAUNAY
Hi, On 6/6/22 16:04, Patrick Delaunay wrote: Activate the live DT with CONFIG_OF_LIVE to reduce the DT parsing time. Tested-by: Marek Vasut Signed-off-by: Patrick Delaunay --- Changes in v1: - previously sent as RFC, Tested by Marek

Re: [PATCH v1 1/2] board: dhelectronics: stm32mp1: convert to livetree

2022-06-17 Thread Patrick DELAUNAY
Hi, On 6/6/22 16:04, Patrick Delaunay wrote: Replace call to fdt_*() functions and access to gd->fdt_blob with call to ofnode_*() functions to support a live tree. Tested-by: Marek Vasut Signed-off-by: Patrick Delaunay --- Changes in v1: - previously sent as RFC, Tested by Marek

Re: [PATCH 2/2] board: engicam: stm32mp1: convert to livetree

2022-06-17 Thread Patrick DELAUNAY
Hi, On 5/19/22 09:07, Patrick Delaunay wrote: Replace gd->fdt_blob access with fdt_getprop() function to the function ofnode_get_property() to support a live tree. Signed-off-by: Patrick Delaunay --- board/engicam/stm32mp1/stm32mp1.c | 6 ++ 1 file changed, 2 insertions(+), 4

Re: [PATCH 1/2] board: stm32mp1: convert to livetree

2022-06-17 Thread Patrick DELAUNAY
Hi, On 5/19/22 09:07, Patrick Delaunay wrote: Replace gd->fdt_blob access with fdt_getprop() function to the function ofnode_get_property() to support a live tree. Signed-off-by: Patrick Delaunay --- board/st/stm32mp1/stm32mp1.c | 13 - 1 file changed, 4 insertions(+), 9

Re: [PATCH v3 3/3] ARM: dts: stm32: add rcc node for STM32MP13

2022-06-17 Thread Patrick DELAUNAY
Hi, On 6/2/22 15:05, Patrick Delaunay wrote: Add the RCC node, not yet in Linux kernel device tree to handle the U-Boot RCC drivers with the needed U-Boot property "u-boot,dm-pre-reloc" property as the clock and reset drivers are required during pre-location. Signed-off-by: Patrick Delaunay

Re: [PATCH v3 2/3] misc: stm32mp13: introduce STM32MP13 RCC driver

2022-06-17 Thread Patrick DELAUNAY
Hi, On 6/2/22 15:05, Patrick Delaunay wrote: Add the MISC RCC driver for STM32MP13, and bind it to the RCC reset driver, required for initial support. Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- (no changes since v1) drivers/misc/stm32_rcc.c | 6 ++ 1 file

Re: [PATCH v3 1/3] clk: Add directory for STM32 clock drivers

2022-06-17 Thread Patrick DELAUNAY
Hi, On 6/2/22 15:05, Patrick Delaunay wrote: Add a directory in drivers/clk to regroup the clock drivers for all STM32 SoCs with CONFIG_ARCH_STM32 (MCUs with Cortex-M) or CONFIG_ARCH_STM32MP (MPUs with Cortex-A). Signed-off-by: Patrick Delaunay Reviewed-by: Grzegorz Szymaszek Reviewed-by:

Re: [PATCH 2/2] stm32mp: fdt: update etzpc for STM32MP13x

2022-06-17 Thread Patrick DELAUNAY
Hi, On 5/9/22 17:13, Patrick Delaunay wrote: Add support of STM32MP13x the ETZPC part of fdt.c Signed-off-by: Patrick Delaunay Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/fdt.c | 153 +++- 1 file changed, 151 insertions(+), 2 deletions(-)

Re: [PATCH 1/2] stm32mp: fdt: update etzpc for STM32MP15x

2022-06-17 Thread Patrick DELAUNAY
Hi, On 5/9/22 17:13, Patrick Delaunay wrote: Introduce STM32MP15 function and defines to prepare the STM32MP13 introduction. Signed-off-by: Patrick Delaunay Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/fdt.c | 123 1 file changed, 67

Re: [PATCH 16/16] doc: st: stm32mp1: add STM32MP13x support

2022-06-17 Thread Patrick DELAUNAY
Hi, On 5/6/22 16:06, Patrick Delaunay wrote: Add in U-Boot documentation the quick instruction for setup the STMicroelectronics STM32MP13x boards. Signed-off-by: Patrick Delaunay --- doc/board/st/stm32mp1.rst | 181 ++ 1 file changed, 125 insertions(+),

Re: [PATCH 15/16] configs: add stm32mp13 defconfig

2022-06-17 Thread Patrick DELAUNAY
Hi some adaptation for Kconfig migration in next branch On 5/6/22 16:06, Patrick Delaunay wrote: Add a initial config for STM32M13x SOC family, using the stm32mp135f-dk device tree. Signed-off-by: Patrick Delaunay --- board/st/stm32mp1/MAINTAINERS | 1 + configs/stm32mp13_defconfig |

Re: [PATCH 14/16] arm: dts: stm32mp: add stm32mp13 device tree for U-Boot

2022-06-17 Thread Patrick DELAUNAY
Hi, On 5/6/22 16:06, Patrick Delaunay wrote: Compile the device tree of STM32MP13x boards and add the needed U-Boot add-on. Signed-off-by: Patrick Delaunay --- arch/arm/dts/Makefile | 3 + arch/arm/dts/stm32mp13-u-boot.dtsi | 91 +

Pull request: SoCFPGA changes for commit c18e5fb055ab

2022-06-17 Thread Chee, Tien Fong
Hi Tom, Please pull the SoCFPGA changes as shown in below. Thanks. Best regards, Tien Fong The following changes since commit c18e5fb055ab789f58434e3cb432582adee0134c: dtoc: Update test_src_scan.py for new tegra compatibles (2022-06-14 13:59:23 -0400) are available in the Git repository

Re: [PATCH 13/16] mmc: stm32_sdmmc2: make reset property optional

2022-06-17 Thread Patrick DELAUNAY
Hi, On 5/6/22 16:06, Patrick Delaunay wrote: Although not recommended, the reset property could be made optional. This way the driver will probe even if no reset property is provided in an sdmmc node in DT. This reset is already optional in Linux. Signed-off-by: Yann Gautier Signed-off-by:

Re: [PATCH 12/16] ram: stm32mp1: add support of STM32MP13x

2022-06-17 Thread Patrick DELAUNAY
Hi, On 5/6/22 16:06, Patrick Delaunay wrote: Add support for new compatible "st,stm32mp13-ddr" to manage the DDR sub system (Controller and PHY) in STM32MP13x SOC: - only one AXI port - support of 16 port output (MEMC_DRAM_DATA_WIDTH = 2) The STM32MP15x SOC have 2 AXI ports and 32 bits

Re: [PATCH 11/16] board: stm32pm1: add stm32mp13 board support

2022-06-17 Thread Patrick DELAUNAY
Hi, Accepted with minor modification. On 5/6/22 16:06, Patrick Delaunay wrote: Add stm32mp15x prefix to all STM32MP15x board specific function, this patch is a preliminary step for STM32MP13x support. This patch also add the RCC probe to avoid circular access with usbphyc probe as clk

Re: [PATCH 10/16] pinctrl: stm32: add support of STM32MP135

2022-06-17 Thread Patrick DELAUNAY
Hi, On 5/6/22 16:06, Patrick Delaunay wrote: Add support for "st,stm32mp135-pinctrl" for STM32MP13x Signed-off-by: Patrick Delaunay --- drivers/pinctrl/pinctrl_stm32.c | 1 + 1 file changed, 1 insertion(+) Applied to u-boot-stm/next, thanks! Regards Patrick

Re: [PATCH 09/16] arm: stm32mp: support 2 MAC address for STM32MP13

2022-06-17 Thread Patrick DELAUNAY
Hi, On 5/6/22 16:06, Patrick Delaunay wrote: Add support of several MAC address in OTP (3 32bits OTP word for 2 MAC address) for SOCs in STM32MP13x family: STM32MP133 and STM32MP135. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/cpu.c | 41 ---

Re: [PATCH 08/16] arm: stm32mp: add support of STM32MP13x

2022-06-17 Thread Patrick DELAUNAY
Hi, Some ad On 5/6/22 16:06, Patrick Delaunay wrote: Introduce the code in mach-stm32mp and the configuration file stm32mp13_defconfig for the new STM32MP family. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/Kconfig | 21 +++-

Re: [PATCH 07/16] arm: stm32mp: add CONFIG_STM32MP15_PWR

2022-06-17 Thread Patrick DELAUNAY
Hi, On 5/6/22 16:06, Patrick Delaunay wrote: Add config CONFIG_STM32MP15_PWR to handle the access on regulators managed by the PWR driver defined in pwr_regulator.c This driver is only used in U-Boot by STM32MP15x family. Signed-off-by: Patrick Delaunay ---

Re: [PATCH 06/16] arm: stm32mp: add sub config Kconfig.15x

2022-06-17 Thread Patrick DELAUNAY
Hi, On 5/6/22 16:06, Patrick Delaunay wrote: Add sub Kconfig for each SOC in the STM32 CPU family. It is a preliminary step to introduce a new SOC in the STM32MP family. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/Kconfig | 119 +---

Re: [PATCH 05/16] arm: stm32mp: add choice for STM32MP SOC family

2022-06-17 Thread Patrick DELAUNAY
Hi, On 5/6/22 16:06, Patrick Delaunay wrote: Add mandatory choice for SOC support in ARCH_STM32MP. This patch is a preliminary step for new SOC introduction in STM32MP family. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/Kconfig | 23 +--

Re: [PATCH 04/16] arm: stm32mp: move code for STM32MP15x

2022-06-17 Thread Patrick DELAUNAY
Hi, On 5/6/22 16:06, Patrick Delaunay wrote: Move code and defines only needed for CONFIG_STM32MP15x in stm32mp15x.c when low level init without TFABOOT is supported. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/Makefile| 2 + arch/arm/mach-stm32mp/cpu.c

Re: [PATCH 03/16] arm: stm32mp: move the get_otp helper function in bsec

2022-06-17 Thread Patrick DELAUNAY
Hi, On 5/6/22 16:06, Patrick Delaunay wrote: As the get_otp() helper function in bsec are common for all STM32MP family, move this function in bsec driver Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/bsec.c | 17 + arch/arm/mach-stm32mp/cpu.c

Re: [PATCH 02/16] configs: stm32mp1: move SUPPORT_SPL in STM32MP15x

2022-06-17 Thread Patrick DELAUNAY
Hi, On 5/6/22 16:06, Patrick Delaunay wrote: The SPL is only supported by STM32MP15x not by all the SOC with STM32MP arch. Only TFABOOT is supported in next products. Signed-off-by: Patrick Delaunay Signed-off-by: Patrick Delaunay --- arch/arm/Kconfig | 1 -

Re: [PATCH 01/16] ARM: dts: stm32: add STM32MP13 SoCs support

2022-06-17 Thread Patrick DELAUNAY
Hi, On 5/6/22 16:06, Patrick Delaunay wrote: Add initial support of STM32MP13 family based on v5.18-rc2 Signed-off-by: Patrick Delaunay --- arch/arm/dts/stm32mp13-pinctrl.dtsi | 123 ++ arch/arm/dts/stm32mp131.dtsi| 358

Re: [PATCH v5 11/23] mkeficapsule: Add support for generating empty capsules

2022-06-17 Thread Sughosh Ganu
Takahiro, On Fri, 17 Jun 2022 at 06:16, Takahiro Akashi wrote: > > Sughosh, > > On Thu, Jun 16, 2022 at 12:42:08PM +0530, Sughosh Ganu wrote: > > hi Takahiro, > > > > On Thu, 16 Jun 2022 at 06:31, Takahiro Akashi > > wrote: > > > > > > Sughosh, > > > > > > On Wed, Jun 15, 2022 at 04:19:56PM

  1   2   >