[PATCH 06/11] stm32mp1: dynamically detect op-tee presence

2020-03-18 Thread Patrick Delaunay
Activate OP-TEE driver for trusted and optee defconfig. This driver allows detection of TEE presence for boot from flash; CONFIG_STM32MP1_OPTEE is also removed. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/Kconfig | 10 -- arch/arm/mach-stm32mp/fdt.c

[PATCH 00/11] stm32mp1: migrate MTD and DFU configuration in Kconfig

2020-03-18 Thread Patrick Delaunay
CONFIG_SYS_MTDPARTS_RUNTIME to defconfigs Patrick Delaunay (11): board: stm32mp1: move board_get_mtdparts in st common directory board: stm32mp1: move set_dfu_alt_info in st common directory stm32mp1: dynamically build DFU_ALT_INFO stm32mp1: move MTDPART configuration in Kconfig board

[PATCH 09/11] board: stm32mp1: support boot from spi-nand

2020-03-18 Thread Patrick Delaunay
Manage BOOT_FLASH_SPINAND, with boot_device="spi-nand" and treat this value in bootcmd_stm32mp. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/cpu.c| 4 arch/arm/mach-stm32mp/include/mach/stm32.h | 3 +++ arch/arm/mach-stm32mp/spl.c| 2

[PATCH 11/11] doc: stm32mp1: update DFU support example

2020-03-18 Thread Patrick Delaunay
Update stm32mp1 board documentation with new management of MMC and MTD partitions and new PID df11. Signed-off-by: Patrick Delaunay --- doc/board/st/stm32mp1.rst | 115 ++ 1 file changed, 54 insertions(+), 61 deletions(-) diff --git a/doc/board/st/stm32mp1

[PATCH 10/11] board: stm32mp1: adapt MTD partition for BOOT from NOR or NAND

2020-03-18 Thread Patrick Delaunay
(TF-A, U-Boot and OP-TE) in NOR 2/ one large UBI partition in NAND For boot from NAND 1/ bootloader (TF-A, U-Boot and OP-TE) in MTD raw partition 2/ one large UBI partition Signed-off-by: Patrick Delaunay # Conflicts: # board/st/common/stm32mp_mtdparts.c --- board/st/common

[PATCH 00/18] stm32mp1: add command stm32prog

2020-03-18 Thread Patrick Delaunay
command and is parsed by U-Boot (see "AN5275: USB DFU/USART protocols used in STM32MP1 Series bootloaders" for details). Regards Patrick Patrick Delaunay (18): usb: gadget: g_dnl: add function g_dnl_set_product dfu: add prototype for dfu_transaction_initiate/cleanup stm32mp: ad

[PATCH 05/18] stm32mp: stm32prog: add flash layout parsing

2020-03-18 Thread Patrick Delaunay
Build the list of device and of partition with a tab separated value file with a stm32 header: the FlashLayout.tsv (https://wiki.st.com/stm32mpu/wiki/STM32CubeProgrammer_flashlayout) Signed-off-by: Patrick Delaunay --- .../mach-stm32mp/cmd_stm32prog/stm32prog.c| 372 +- 1

[PATCH 01/18] usb: gadget: g_dnl: add function g_dnl_set_product

2020-03-18 Thread Patrick Delaunay
Add a function g_dnl_set_product to change the Product string used in USB enumeration in any command based on download gadget. If the function is called with NULL pointer, the product string is set to the default value (product[] = "USB download gadget"). Signed-off-by: Patric

[PATCH 03/18] stm32mp: add function get_cpu_dev

2020-03-18 Thread Patrick Delaunay
Add a function get_cpu_dev to get the DEV_ID present in DBGMCU_IDC register. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/cpu.c| 11 ++- arch/arm/mach-stm32mp/include/mach/sys_proto.h | 5 + 2 files changed, 11 insertions(+), 5 deletions(-) diff

[PATCH 06/18] stm32mp: stm32prog: add MMC device

2020-03-18 Thread Patrick Delaunay
Add support of MMC device (based on DFU_MMC backend) for SD card and eMMC update. Create a GPT partitioning on the device. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/Kconfig | 3 + .../mach-stm32mp/cmd_stm32prog/stm32prog.c| 204

[PATCH 07/18] stm32mp: stm32prog: add support of boot partition for eMMC device

2020-03-18 Thread Patrick Delaunay
Add support of eMMC device boot partition with part_id = -1 for offset="boot1" or = -2 for offset="boot2" The stm32prog command configures the MMC DFU backend with "mmcpart" and configure the eMMC (command "mmc bootbus" and "mmc partconf"

[PATCH 08/18] stm32mp: stm32prog: add upport of partial update

2020-03-18 Thread Patrick Delaunay
Add support of partial update, update only some partitions, and check the coherence of the layout with the existing GPT partitions (offset and size). Signed-off-by: Patrick Delaunay --- .../mach-stm32mp/cmd_stm32prog/stm32prog.c| 69 +++ .../mach-stm32mp/cmd_stm32prog

[PATCH 02/18] dfu: add prototype for dfu_transaction_initiate/cleanup

2020-03-18 Thread Patrick Delaunay
Add prototype for function dfu_transaction_initiate and dfu_transaction_cleanup to avoid warning with W=1. Signed-off-by: Patrick Delaunay --- include/dfu.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/dfu.h b/include/dfu.h index fb5260d903..2f0e335ec0 100644 --- a/include

[PATCH 09/18] stm32mp: stm32prog: add MTD devices support

2020-03-18 Thread Patrick Delaunay
Add support of MTD device (DFU_MTD backend) for NOR, NAND or SPI-NAND target. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/Kconfig | 2 + .../mach-stm32mp/cmd_stm32prog/stm32prog.c| 114 +- .../mach-stm32mp/cmd_stm32prog/stm32prog.h| 4

[PATCH 12/18] stm32mp: stm32prog: add support for delete option in flashlayout

2020-03-18 Thread Patrick Delaunay
Add support for delete option 'D' in flashlayout for full device or for partitions Signed-off-by: Patrick Delaunay --- .../mach-stm32mp/cmd_stm32prog/stm32prog.c| 105 ++ 1 file changed, 105 insertions(+) diff --git a/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog

[PATCH 10/18] stm32mp: stm32prog: adapt the MTD partitions

2020-03-18 Thread Patrick Delaunay
Dynamically adapt the MTD partitions in NOR/NAND/SPI-NAND when stm32prog command detects in the parsed flash layout files: - a fsbl partition in NOR. - a tee partition in NOR/NAND/SPI-NAND Signed-off-by: Patrick Delaunay --- .../mach-stm32mp/cmd_stm32prog/cmd_stm32prog.c | 17

[PATCH 13/18] stm32mp: stm32prog: add otp update support

2020-03-18 Thread Patrick Delaunay
Add a virtual partition to update the STM32MP15x OTP based on SMC service provided by TF-A. Signed-off-by: Patrick Delaunay --- .../mach-stm32mp/cmd_stm32prog/stm32prog.c| 130 +- .../mach-stm32mp/cmd_stm32prog/stm32prog.h| 11 ++ .../cmd_stm32prog/stm32prog_usb.c

[PATCH 11/18] stm32mp: stm32prog: add support of ssbl copy

2020-03-18 Thread Patrick Delaunay
For reliability of boot from NAND/SPI-NAND (with read-disturb issue) the SSBL can be present several time, when it is indicated in the flashlayout with "Binary(X)". The received binary is copied X times by U-Boot on the target. Signed-off-by: Patrick Delaunay --- .../mach-stm32mp/cmd

[PATCH 17/18] stm32mp: stm32prog: support for script

2020-03-18 Thread Patrick Delaunay
f11 -a 0 -D u-boot.stm32 $> dfu-util -d 0483:df11 -a 0 -e Then you can used dfu-utils to update your device To increase speed, you can also switch to fastboot protocol with: echo "fastboot 0" > script.cmd Signed-off-by: Patrick Delaunay --- .../arm/mach-stm32mp/cmd_stm32p

[PATCH 14/18] stm32mp: stm32prog: add pmic NVM update support

2020-03-18 Thread Patrick Delaunay
Add a virtual partition to update the pmic non volatile memory. (on ST board, STPMIC1). Signed-off-by: Patrick Delaunay --- .../mach-stm32mp/cmd_stm32prog/stm32prog.c| 95 ++- .../mach-stm32mp/cmd_stm32prog/stm32prog.h| 10 ++ .../cmd_stm32prog/stm32prog_usb.c

[PATCH 18/18] stm32mp: stm32prog: add support of RAM target

2020-03-18 Thread Patrick Delaunay
blBinary none0x u-boot.stm32 P 0x10kernel System ram00xC200 uImage.bin P 0x11dtb FileSystem ram00xC400 dtb.bin Signed-off-by: Patrick Delaunay --- .../cmd_stm32prog/cmd_stm32pro

[PATCH 04/18] stm32mp: add the command stm32prog

2020-03-18 Thread Patrick Delaunay
port=usb1 -w flaslayout.tsv 1/ the ROM code loads TF-A in embedded RAM (DFU or uart) 2/ TF-A loads flashlayout file and U-Boot in DDR (DFU or uart) 3/ U-Boot executes the stm32prog command (DFU or uart) Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/Kconfig | 12 +

[PATCH 16/18] stm32mp: stm32prog: enable videoconsole

2020-03-18 Thread Patrick Delaunay
Enable the videoconsole during the stm32prog command execution to have information without UART. Signed-off-by: Patrick Delaunay --- .../cmd_stm32prog/cmd_stm32prog.c | 28 +++ 1 file changed, 28 insertions(+) diff --git a/arch/arm/mach-stm32mp/cmd_stm32prog

[PATCH 15/18] stm32mp: stm32prog: add serial link support

2020-03-18 Thread Patrick Delaunay
Add a support of UART, using the same protocol than MCU STM32. See "AN5275: USB DFU/USART protocols used in STM32MP1 Series bootloaders" for details. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/cmd_stm32prog/Makefile | 1 + .../cmd_stm32prog/cmd_stm32prog.c

[PATCH 1/2] net: dwc_eth_qos: implement reset-gpios for stm32

2020-03-18 Thread Patrick Delaunay
From: Christophe Roullier Add management of property "reset-gpios" in the node identified by "phy-handle" to configure any GPIO used to reset the PHY. Signed-off-by: Christophe Roullier Reviewed-by: Patrice CHOTARD Reviewed-by: Patrick DELAUNAY Signed-off-by: Patrick Del

[PATCH 2/2] net: dwc_eth_qos: implement phy reg and max-speed for stm32

2020-03-18 Thread Patrick Delaunay
Add management of property "reg" to configure @ of phy and also "max-speed" property to specify maximum speed in Mbit/s supported by the device Signed-off-by: Christophe Roullier Reviewed-by: Patrick DELAUNAY Signed-off-by: Patrick Delaunay --- drivers/ne

[RFC RFT PATCH] env: spl: filter the variables in default environment of SPL or TPL

2020-03-18 Thread Patrick Delaunay
- list of variables (comma separated) to keept in SPL/TPL (it searches ^= in u-boot-initial-env) - "*" the variables are not filtered Signed-off-by: Patrick Delaunay --- Hi, I propose this patch to reduce the SPL/TPL size when they support the U-Boot environment. But I need feedback, rev

RE: [RFC RFT PATCH] env: spl: filter the variables in default environment of SPL or TPL

2020-03-18 Thread Patrick DELAUNAY
Hi Wolfgang, > From: Wolfgang Denk > Sent: mercredi 18 mars 2020 15:51 > To: Patrick DELAUNAY > Cc: u-boot@lists.denx.de; Bin Meng ; Fabio Estevam > ; Heinrich Schuchardt ; Jagan > Teki ; Joe Hershberger > ; Kever Yang ; Marek > Vasut ; Simon Glass ; U-Boot STM32 &g

RE: [PATCH v4 2/3] env: introduce macro ENV_IS_IN_SOMEWHERE

2020-03-18 Thread Patrick DELAUNAY
Hi, > From: Patrick DELAUNAY > Sent: jeudi 3 octobre 2019 09:24 > > This patch introduce a macro ENV_IS_IN_SOMEWHERE to check if the the > environment can be saved somewhere, in a storage medium, without assumption > on CONFIG$(SPL_TPL_)ENV_IS_NOWHERE. > > Since the c

RE: [PATCH v4 3/3] env: Add CONFIG_ENV_FULL_SUPPORT

2020-03-18 Thread Patrick DELAUNAY
Hi, > From: Patrick DELAUNAY > Sent: jeudi 3 octobre 2019 09:24 > To: u-boot@lists.denx.de > > Add a new flag CONFIG_ENV_FULL_SUPPORT to compile all > the environment features (attributes, callbacks > and flags) in U-Boot, TPL and SPL. > > This flag replace the exi

RE: [PATCH 07/10] board: stm32mp1: add finished good in board identifier OTP

2020-03-19 Thread Patrick DELAUNAY
Hi Wolfgang, > From: Wolfgang Denk > Sent: mercredi 18 mars 2020 11:45 > > Dear Patrick, > > In message <20200212183744.5309-8-patrick.delau...@st.com> you wrote: > > Update the command stboard to support the coding of OTP 59 with > > finished good: > > Can you please explain what "finished go

RE: [PATCH v2 1/2] timer: sti: convert to livetree

2020-03-19 Thread Patrick DELAUNAY
Hi, > From: U-Boot On Behalf Of Nicolas Heemeryck > Sent: vendredi 13 mars 2020 23:43 > > Update STI timer to support a live tree > > Signed-off-by: Nicolas Heemeryck > Cc: Patrice Chotard > > --- Applied to u-boot-stm/next, thanks! Regards Patrick

RE: [PATCH v2 2/2] timer: sti: use clk API to get timer clock rate

2020-03-19 Thread Patrick DELAUNAY
Hi, > From: U-Boot On Behalf Of Nicolas Heemeryck > Sent: vendredi 13 mars 2020 23:43 > > Retrieve clock rate through device tree. This mimics the behavior of > arm_global_timer in Linux. > > Signed-off-by: Nicolas Heemeryck > Cc: Patrice Chotard > > --- Applied to u-boot-stm/next, thanks!

[PATCH 3/3] env: mmc: add redundancy support in mmc_offset_try_partition

2020-03-19 Thread Patrick Delaunay
Manage 2 copy at the end of the partition selected by config "u-boot,mmc-env-partition" to save the U-Boot environment, with CONFIG_ENV_SIZE and 2*CONFIG_ENV_SIZE offset. This patch allows to support redundancy (CONFIG_ENV_OFFSET_REDUND). Signed-off-by: Patrick Delaunay --- env

[PATCH 2/3] env: mmc: correct the offset returned by mmc_offset_try_partition

2020-03-19 Thread Patrick Delaunay
->read_bl_len or /write_bl_len so this offset is not a multiple of blksz. Signed-off-by: Patrick Delaunay --- env/mmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/env/mmc.c b/env/mmc.c index 902cca23ad..c24b169f3e 100644 --- a/env/mmc.c +++ b/env/mmc.c @@ -56,10 +56

[PATCH 1/3] env: mmc: allow support of mmc_get_env_dev with OF_CONTROL

2020-03-19 Thread Patrick Delaunay
Use the weak function mmc_get_env_dev in mmc_offset_try_partition function to allow dynamic selection of mmc device to use and no more use directly the define CONFIG_SYS_MMC_ENV_DEV. Signed-off-by: Patrick Delaunay --- env/mmc.c | 18 -- 1 file changed, 12 insertions(+), 6

[PATCH 2/3] stm32mp1: use a specific SD/eMMC partition for U-Boot enviromnent

2020-03-19 Thread Patrick Delaunay
aved in ext4 file, U-Boot need to create/modify the file uenv.txt in the ext4 file system; so this EXT4 file system need to be generated without some functionality, like metadata_csum and dir_index, because they are not supported by U-Boot. Signed-off-by: Patrick Delaunay --- arch/arm/dts/stm

[PATCH 3/3] configs:stm32mp1: activate env config in SPL

2020-03-19 Thread Patrick Delaunay
Activate env config in SPL with CONFIG_SPL_ENV_SUPPORT and use CONFIG_IS_ENABLED macro to test the activated CONFIG_$(SPL_)ENV_IS_IN_... in env_get_location. Signed-off-by: Patrick Delaunay --- board/st/stm32mp1/stm32mp1.c | 8 configs/stm32mp15_basic_defconfig | 3 +++ 2 files

[PATCH 1/3] stm32mp1: board: add support of CONFIG_ENV_IS_IN_MMC

2020-03-19 Thread Patrick Delaunay
Add support of CONFIG_ENV_IS_IN_MMC in env_get_location, used for all mmc device (SD card and eMMC). The 2 configs CONFIG_ENV_IS_IN_MMC and CONFIG_ENV_IS_IN_EXT4 are incompatible. Add the weak function mmc_get_env_dev to select the mmc boot instance. Signed-off-by: Patrick Delaunay --- board

RE: [PATCH 07/10] board: stm32mp1: add finished good in board identifier OTP

2020-03-23 Thread Patrick DELAUNAY
Hi Wolfgang, > From: Wolfgang Denk > Sent: jeudi 19 mars 2020 10:14 > > Dear Patrick, > > In message <07159b22a76a445089aa6cd646c0e...@sfhdag6node3.st.com> > you wrote: > > > > > I can't parse the sentence above, sorry. > > > > It is a part of the codification used in production of ST board, so

[PATCH v2] board: stm32mp1: add finished good in board identifier OTP

2020-03-24 Thread Patrick Delaunay
M (01, 255) The updated command is: stboard [-y] And the displayed STMicroelectronics board identification is: Board: MB Var. Rev.- Signed-off-by: Patrick Delaunay --- Changes in v2: - update commit message - add comments in cmd_stboard.c board/st/common/cmd_stboard.c | 60

RE: [PATCH 02/10] board: stm32mp1: read OTP in command stboard

2020-03-24 Thread Patrick DELAUNAY
Hi, > From: Patrick DELAUNAY > Sent: mercredi 12 février 2020 19:38 > > Read the value directly from the OTP and no more of the shadows to avoid the > need of reboot after stboard command to have correct value. > > Signed-off-by: Patrick Delaunay > --- Applied to

RE: [PATCH 01/10] board: stm32mp1: update command stboard on misc_write result

2020-03-24 Thread Patrick DELAUNAY
Hi, > From: Patrick DELAUNAY > Sent: mercredi 12 février 2020 19:38 > > Update management of misc_write, which now return length of data after the > commit 8729b1ae2cbd ("misc: Update read() and write() methods to return bytes > xfered") > > Signed-off-by: Pat

RE: [PATCH 03/10] arm: stm32mp: bsec: remove unneeded test

2020-03-24 Thread Patrick DELAUNAY
Hi, > From: Patrick DELAUNAY > Sent: mercredi 12 février 2020 19:38 > > Remove the test offs < 0 , as offs is unsigned. > > This patch solves the warnings when compiling with W=1 on stm32mp1 board: > > In function ‘stm32mp_bsec_read’: > arch/arm/mach-

RE: [PATCH 04/10] arm: stm32mp: bsec: add permanent lock support in bsec driver

2020-03-24 Thread Patrick DELAUNAY
Hi, > From: Patrick DELAUNAY > Sent: mercredi 12 février 2020 19:38 > > Add BSEC lock access (read / write) at 0xC000 offset of misc driver. > The write access only available for Trusted boot mode, based on new SMC > STM32_SMC_WRLOCK_OTP. > > With the fuse com

RE: [PATCH 05/10] board: stm32mp1: stboard: lock the OTP after programming

2020-03-24 Thread Patrick DELAUNAY
Hi, > From: Patrick DELAUNAY > Sent: mercredi 12 février 2020 19:38 > > Lock the OTP used for board identification for the ST boards after > programming. > > Signed-off-by: Patrick Delaunay > --- Applied to u-boot-stm/next, thanks! Regards Patrick

RE: [PATCH 06/10] arm: stm32mp: improve the error message for smc

2020-03-24 Thread Patrick DELAUNAY
Hi, > From: Patrick DELAUNAY > Sent: mercredi 12 février 2020 19:38 > > Add the SMC code and operation for trace on errors. > > Signed-off-by: Patrick Delaunay > --- Applied to u-boot-stm/next, thanks! Regards Patrick

RE: [PATCH 08/10] board: stm32mp1: display reference only for STMicroelectronics board

2020-03-24 Thread Patrick DELAUNAY
Hi, > From: Patrick DELAUNAY > Sent: mercredi 12 février 2020 19:38 > > Display the reference MB found in OTP49 only for STMicroelectronics boards > when CONFIG_CMD_STBOARD is activated. > > Signed-off-by: Patrick Delaunay > --- Applied to u-boot-stm/next, thanks! Regards Patrick

RE: [PATCH 09/10] arm: stm32mp: add function get_soc_name

2020-03-24 Thread Patrick DELAUNAY
Hi, > From: Patrick DELAUNAY > Sent: mercredi 12 février 2020 19:38 > > Add a function get_soc_name to get a string with the full name of the SOC > "STM32MP15xxx Rev.x" > > Signed-off-by: Patrick Delaunay > --- Applied to u-boot-stm/next, thanks! Regards Patrick

RE: [PATCH 10/10] arm: stm32mp: fdt: update kernel device tree according the part number

2020-03-24 Thread Patrick DELAUNAY
Hi, > From: Patrick DELAUNAY > Sent: mercredi 12 février 2020 19:38 > > Update the kernel device tree for STM32MP15x product lines according the used > soc and its part number, when CONFIG_OF_SYSTEM_SETUP is activated: > - STM32MP15XA hasn't Crypto (cryp1/2) > - STM3

RE: [PATCH] stm32mp1: add 800 MHz profile support

2020-03-24 Thread Patrick DELAUNAY
Hi, > From: Patrick DELAUNAY > Sent: mercredi 26 février 2020 11:27 > > The STM32MP1 series is available in 3 different lines which are pin-to-pin > compatible: > - STM32MP157: Dual Cortex-A7 cores, Cortex-M4 core @ 209 MHz, > 3D GPU, DSI display

RE: [PATCH] stm32mp: psci: set cntfrq register of cpu on

2020-03-24 Thread Patrick DELAUNAY
Hi, > From: Patrick DELAUNAY > Sent: lundi 2 mars 2020 11:27 > > From: Ludovic Barre > > This path allows to set the cntfrq register of targeted cpu. > > Signed-off-by: Ludovic Barre > Reviewed-by: Patrick DELAUNAY > Signed-off-by: Patrick Delaunay >

RE: [PATCH 1/2] clk: stm32mp1: correct CKSELR masks

2020-03-24 Thread Patrick DELAUNAY
Hi, > From: Patrick DELAUNAY > Sent: lundi 9 mars 2020 14:59 > > Correct three masks used to access on the RCC register RCC_QSPICKSELR, > RCC_FMCCKSELR and RCC_ADCCKSELR: only 3 bits. > > Signed-off-by: Patrick Delaunay > --- Applied to u-boot-stm/next, thanks! Regards Patrick

RE: [PATCH 2/2] clk: stm32mp1: add SPI5_K support

2020-03-24 Thread Patrick DELAUNAY
Hi, > From: Patrick DELAUNAY > Sent: lundi 9 mars 2020 14:59 > > Add clock support for SPI5, as this instance is available on extension > connector of > ST board. > > Signed-off-by: Patrick Delaunay > --- Applied to u-boot-stm/next, thanks! Regards Patrick

RE: [PATCH v2] ARM: dts: stm32mp1: DT alignment with Linux 5.6-rc1

2020-03-24 Thread Patrick DELAUNAY
Hi, > From: Patrick DELAUNAY > Sent: vendredi 6 mars 2020 17:55 > > This commit manages diversity for STM32M15x SOCs with: > - dedicated files to support all STM32MP15 SOCs family. > The differences between those SOCs are: > -STM32MP151 [1]: common file. > -ST

RE: [PATCH 1/9] ram: stm32mp1: increase vdd2_ddr: buck2 for 32bits LPDDR

2020-03-24 Thread Patrick DELAUNAY
Hi, > From: Patrick DELAUNAY > Sent: vendredi 6 mars 2020 11:14 > > Need to increase the LPDDR2/LPDDR3 the voltage vdd2_ddr: buck2 form 1.2V to > 1.25V for 32bits configuration. > > Signed-off-by: Patrick Delaunay > --- Applied to u-boot-stm/next, thanks! Regards Patrick

RE: [PATCH 3/9] ram: stm32mp1: don't display the prompt two times

2020-03-24 Thread Patrick DELAUNAY
Hi, > From: Patrick DELAUNAY > Sent: vendredi 6 mars 2020 11:14 > > Remove one "DDR>" display on command > - next > - step > - go > > Signed-off-by: Patrick Delaunay > --- Applied to u-boot-stm/next, thanks! Regards Patrick

RE: [PATCH 2/9] ram: stm32mp1: display result for software read DQS gating

2020-03-24 Thread Patrick DELAUNAY
Hi, > From: Patrick DELAUNAY > Sent: vendredi 6 mars 2020 11:14 > > Display result information for software read DQS gating, the tuning 0 which be > used by CubeMX DDR tuning tools. > > Signed-off-by: Patrick Delaunay > --- Applied to u-boot-stm/next, thanks! Regards Patrick

RE: [PATCH 5/9] ram: stm32mp1: tuning: deactivate derating during BIST test

2020-03-24 Thread Patrick DELAUNAY
Hi, > From: Patrick DELAUNAY > Sent: vendredi 6 mars 2020 11:14 > > The derating (timing parameter derating using MR4 read value) can't be > activated > during BIST test, as the MR4 read answer will be not understood by BIST > (BISTGSR.BDONE bit stay at 0, BISTWCSR

RE: [PATCH 4/9] ram: stm32mp1: tuning: add timeout for polling BISTGSR.BDDONE

2020-03-24 Thread Patrick DELAUNAY
Hi, > From: Patrick DELAUNAY > Sent: vendredi 6 mars 2020 11:14 > > Avoid to block the tuning procedure on BIST error (not finished BIST > procedure) > by adding a 1000us timeout on the polling of BISTGSR.BDDONE executed to > detect the end of BIST. > > The normal d

RE: [PATCH 7/9] ram: stm32mp1_ddr: fix self refresh disable during DQS training

2020-03-24 Thread Patrick DELAUNAY
Hi, > From: Patrick DELAUNAY > Sent: vendredi 6 mars 2020 11:14 > > DDRCTRL_PWRCTL.SELFREF_EN needs to be reset before DQS training step, > not to enter in self refresh mode during the execution of this phase. > Depending on settings, it can be set after the DQS training.

RE: [PATCH 6/9] ram: stm32mp1: update BIST config for tuning

2020-03-24 Thread Patrick DELAUNAY
Hi, > From: Patrick DELAUNAY > Sent: vendredi 6 mars 2020 11:14 > > Update the BIST config to compute the real use mask for the real bank, row and > col of the used DDR. The values are get from addrmap register value. > > Signed-off-by: Patrick Delaunay > --- Ap

RE: [PATCH 8/9] ram: stm32mp1: reduce delay after BIST reset for tuning

2020-03-24 Thread Patrick DELAUNAY
Hi, > From: Patrick DELAUNAY > Sent: vendredi 6 mars 2020 11:14 > > Reduce the delay after BIST delay, from 1ms to 10us which is enough accoriding > datasheet. > > Signed-off-by: Patrick Delaunay > --- Applied to u-boot-stm/next, thanks! Regards Patrick

RE: [PATCH 9/9] ram: stm32mp1: the property st,phy-cal becomes optional

2020-03-24 Thread Patrick DELAUNAY
Hi, > From: Patrick DELAUNAY > Sent: vendredi 6 mars 2020 11:14 > > This parameter "st,phy-cal" becomes optional and when it is absent the > built-in > PHY calibration is done. > > It is the case in the helper dtsi file "stm32mp15-ddr.dtsi" > e

RE: [PATCH] i2c: stm32f7_i2c: allows for any bus frequency

2020-03-24 Thread Patrick DELAUNAY
Hi > From: Patrick DELAUNAY > Sent: vendredi 6 mars 2020 11:09 > > From: Alain Volmat > > Do not limit to 3 (100KHz, 400KHz, 1MHz) bus frequencies, but instead allow > for > any frequency. Depending on the requested frequency (via the clock-frequency > DT ent

[PATCH v3] board: stm32mp1: add finished good in board identifier OTP

2020-03-24 Thread Patrick Delaunay
M (01, 255) The updated command is: stboard [-y] And the displayed STMicroelectronics board identification is: Board: MB Var. Rev.- Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- Changes in v3: - fix comment after Patrice Chotard review Changes in v2: - update co

[PULL] Pull request: u-boot-stm/next =u-boot-stm32-20200324

2020-03-25 Thread Patrick DELAUNAY
tm32f7_i2c: allows for any bus frequency Ludovic Barre (1): stm32mp: psci: set cntfrq register of cpu on Nicolas Heemeryck (2): timer: sti: convert to livetree timer: sti: use clk API to get timer clock rate Patrick Delaunay (23): board: stm32mp1: update command stboard on

RE: [PATCH v3] board: stm32mp1: add finished good in board identifier OTP

2020-03-25 Thread Patrick DELAUNAY
Hi, > From: Patrick DELAUNAY > Sent: mardi 24 mars 2020 14:36 > > Update the command stboard to support the updated coding of OTP 59 with > finished good. > > The ST product codification have several element > - "Commercial Product Name" (CPN): type of produ

RE: STM32MP1 boot slow

2020-03-25 Thread Patrick DELAUNAY
Hi, > From: Marek Vasut > Sent: mercredi 25 mars 2020 00:39 > > Hi, > > I was looking at the STM32MP1 boot time and I noticed it takes about 2 seconds > to get to U-Boot. Thanks for the feedback. To be clear, the SPL is not the ST priority as we have many limitation (mainly on power manageme

RE: STM32MP1 boot slow

2020-03-27 Thread Patrick DELAUNAY
Hi, > From: Simon Glass > Sent: jeudi 26 mars 2020 17:20 > > Hi Patrick, > > On Wed, 25 Mar 2020 at 09:57, Patrick DELAUNAY > wrote: > > > > Hi, > > > > > From: Marek Vasut > > > Sent: mercredi 25 mars 2020 00:39 > > > &

RE: STM32MP1 boot slow

2020-03-27 Thread Patrick DELAUNAY
Hi Marek, > From: Marek Vasut > Sent: jeudi 26 mars 2020 17:28 > > On 3/26/20 5:19 PM, Simon Glass wrote: > > Hi Patrick, > > Hi, > > > On Wed, 25 Mar 2020 at 09:57, Patrick DELAUNAY > wrote: > >> > >> Hi, > >> > >>>

[PATCH] arm: stm32mp1: activate data cache in SPL and before relocation

2020-03-30 Thread Patrick Delaunay
For example, the result on STM32MP157C-DK2 board is: 1,6s gain for trusted boot chain with TF-A 2,2s gain for basic boot chain with SPL Signed-off-by: Patrick Delaunay --- Example of bootstage report on STM32MP157C-DK2 1/ For trusted boot chain with TF-A a) Before the patch STM3

RE: STM32MP1 boot slow

2020-03-30 Thread Patrick DELAUNAY
Hi, > From: Marek Vasut > Sent: vendredi 27 mars 2020 19:21 > > On 3/27/20 4:35 PM, Patrick DELAUNAY wrote: > > Hi Marek, > > Hi, > > [...] > > >>> I would like to see patches to enable the cache. We did this some > >>> years ag

RE: [PATCH] arm: stm32mp1: activate data cache in SPL and before relocation

2020-03-30 Thread Patrick DELAUNAY
Hi Marek, > From: Marek Vasut > Sent: lundi 30 mars 2020 11:57 > > On 3/30/20 9:46 AM, Patrick Delaunay wrote: > [...] > > > 2/ And for the basic boot chain with SPL > > > > a) Before the patch: > > > > STM32MP> bootstage repor

RE: [PATCH V2 01/14] ARM: dts: stm32: Repair SD1 pre-reloc pinmux DT node on AV96

2020-03-31 Thread Patrick DELAUNAY
SPL extras were not updated to reflect that > change. > Fix this. > > This fixes booting from SD1 X9 slot on the AV96 board. > > Fixes: 35a54d41d9d4 ("ARM: dts: stm32mp1: sync device tree with v5.2-rc4") > Signed-off-by: Marek Vasut > Cc: Patrick Delaunay > Cc: P

RE: [PATCH V2 02/14] ARM: dts: stm32: Add alternate pinmux for SDMMC1 direction pins

2020-03-31 Thread Patrick DELAUNAY
Hi Marek > From: Marek Vasut > Sent: mardi 31 mars 2020 02:49 > > Add another mux option for SDMMC1 direction pins, in particular > SDMMC1_D123DIR, this is used on AV96 board. > > Signed-off-by: Marek Vasut > Cc: Patrick Delaunay > Cc: Patrice Chotard > --- &

RE: [PATCH V2 03/14] ARM: dts: stm32: Repair SDMMC1 operation on AV96

2020-03-31 Thread Patrick DELAUNAY
Hi Marek, > From: Marek Vasut > Sent: mardi 31 mars 2020 02:49 > To: u-boot@lists.denx.de > Cc: Marek Vasut ; Patrick DELAUNAY > ; Patrice CHOTARD > Subject: [PATCH V2 03/14] ARM: dts: stm32: Repair SDMMC1 operation on AV96 > Importance: High > > The SD us

RE: [PATCH V2 04/14] ARM: dts: stm32: Add alternate pinmux for SDMMC2 pins 4-7

2020-03-31 Thread Patrick DELAUNAY
Hi Marek > -Original Message- > From: Marek Vasut > Sent: mardi 31 mars 2020 02:49 > To: u-boot@lists.denx.de > Cc: Marek Vasut ; Patrick DELAUNAY > ; Patrice CHOTARD > Subject: [PATCH V2 04/14] ARM: dts: stm32: Add alternate pinmux for SDMMC2 > pins 4-7 >

RE: [PATCH V2 05/14] ARM: dts: stm32: Repair SDMMC2 operation

2020-03-31 Thread Patrick DELAUNAY
atic too. > > Signed-off-by: Marek Vasut > Cc: Patrick Delaunay > Cc: Patrice Chotard > --- > V2: Update also the -u-boot.dtsi to match this change > --- Reviewed-by: Patrick Delaunay Thanks Patrick

RE: [PATCH V2 06/14] ARM: dts: stm32: Add QSPI NOR on AV96

2020-03-31 Thread Patrick DELAUNAY
Hi Marek, > From: Marek Vasut > Sent: mardi 31 mars 2020 02:49 > > The DH Electronics DHCOR SOM has QSPI NOR on the SoM itself, add it into the > DT. > > Signed-off-by: Marek Vasut > Cc: Patrick Delaunay > Cc: Patrice Chotard > --- > V2: Drop the explic

RE: [PATCH V2 05/14] ARM: dts: stm32: Repair SDMMC2 operation

2020-03-31 Thread Patrick DELAUNAY
atic too. > > Signed-off-by: Marek Vasut > Cc: Patrick Delaunay > Cc: Patrice Chotard > --- > V2: Update also the -u-boot.dtsi to match this change > --- Reviewed-by: Patrick Delaunay Thanks Patrick

RE: [PATCH V2 07/14] ARM: dts: stm32: Use DT alias for the configuration EEPROM

2020-03-31 Thread Patrick DELAUNAY
board code to handle new phandle lookup. > > Signed-off-by: Marek Vasut > Cc: Patrick Delaunay > Cc: Patrice Chotard > --- > V2: No change > --- Reviewed-by: Patrick Delaunay Thanks Patrick

RE: [PATCH V2 08/14] ARM: dts: stm32: Add configuration EEPROM on AV96

2020-03-31 Thread Patrick DELAUNAY
Hi Marek, > From: Marek Vasut > > The board has an EEPROM on the same I2C bus as PMIC, at address 0x53. > The EEPROM contains the board MAC address. > > Signed-off-by: Marek Vasut > Cc: Patrick Delaunay > Cc: Patrice Chotard > --- > V2: No change > --

RE: [PATCH V2 09/14] ARM: dts: stm32: Add alternate pinmux for ethernet RGMII

2020-03-31 Thread Patrick DELAUNAY
Hi Marek, > From: Marek Vasut > Sent: mardi 31 mars 2020 02:49 > > Add another mux option for DWMAC RGMII, this is used on AV96 board. > > Signed-off-by: Marek Vasut > Cc: Patrick Delaunay > Cc: Patrice Chotard > --- > V2: No change > --- Reviewed-by: Patrick Delaunay Thanks Patrick

RE: [PATCH V2 10/14] ARM: dts: stm32: Repair ethernet operation on AV96

2020-03-31 Thread Patrick DELAUNAY
Hi Marek, > From: Marek Vasut > Sent: mardi 31 mars 2020 02:49 > > The AV96 RGMII uses different pinmux for ETH_RGMII_TXD0, > ETH_RGMII_RXD2 and ETH_RGMII_TX_CTL. Use the correct pinmux to make > ethernet operational. > > Signed-off-by: Marek Vasut > Cc: Patr

RE: [PATCH V2 11/14] ARM: dts: stm32: Add missing ethernet PHY reset on AV96

2020-03-31 Thread Patrick DELAUNAY
Hi Marek, > From: Marek Vasut > Sent: mardi 31 mars 2020 02:49 > > Add PHY reset GPIO on AV96 ethernet PHY. > > Signed-off-by: Marek Vasut > Cc: Patrick Delaunay > Cc: Patrice Chotard > --- > V2: No change > --- > arch/arm/dts/stm32mp157a-avenger96.dts

RE: [PATCH V2 13/14] ARM: dts: stm32: Adjust PLL4 settings on AV96

2020-03-31 Thread Patrick DELAUNAY
slower and FDCAN is also unaffected. > > Signed-off-by: Marek Vasut > Cc: Patrick Delaunay > Cc: Patrice Chotard > --- > V2: Move this patch before the split of AV96 into SoM and carrier > --- Reviewed-by: Patrick Delaunay Thanks Patrick

RE: [PATCH V2 14/14] ARM: dts: stm32: Split AV96 into DHCOR SoM and AV96 board

2020-03-31 Thread Patrick DELAUNAY
e in st/common the part common for all the STM32MP157 boards > Signed-off-by: Marek Vasut > Cc: Patrick Delaunay > Cc: Patrice Chotard > --- > V2: No change > --- > arch/arm/dts/Makefile | 3 +- > arch/arm/dts/stm32mp157a-avenger96.dts| 421

RE: [PATCH V2 00/14] ARM: stm32: Fix Avenger96

2020-03-31 Thread Patrick DELAUNAY
name arch/arm/dts/{stm32mp157a-avenger96-u-boot.dtsi => stm32mp15xx- > dhcor-u-boot.dtsi} (73%) create mode 100644 arch/arm/dts/stm32mp15xx- > dhcor.dtsi > > Cc: Patrick Delaunay > Cc: Patrice Chotard Regards > -- > 2.25.1

[PATCH 02/16] arm: stm32mp: remove dependency for STM32KEY

2020-03-31 Thread Patrick Delaunay
This command is not more depending on fuse command, but have direct access to BSEC misc driver, so the dependency wuth can be removed CMD_FUSE Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/Kconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/mach-stm32mp/Kconfig b

[PATCH 01/16] arm: stm32mp: update dependency for STM32_ETZPC

2020-03-31 Thread Patrick Delaunay
). Signed-off-by: Patrick Delaunay Acked-by: Patrice Chotard --- arch/arm/mach-stm32mp/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-stm32mp/Kconfig b/arch/arm/mach-stm32mp/Kconfig index e4d621dee8..96153693a7 100644 --- a/arch/arm/mach-stm32mp/Kco

[PATCH 03/16] arm: stm32mp: reset to default environment when serial# change

2020-03-31 Thread Patrick Delaunay
: Patrick Delaunay --- arch/arm/mach-stm32mp/cpu.c | 20 +++- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-stm32mp/cpu.c b/arch/arm/mach-stm32mp/cpu.c index 9aa5794334..365c2aa4f7 100644 --- a/arch/arm/mach-stm32mp/cpu.c +++ b/arch/arm/mach-stm32mp/cpu.c

[PATCH 07/16] board: stm32mp1: Keep error led ON in case of low power detection

2020-03-31 Thread Patrick Delaunay
nks 2 or 3 times and must stay ON. Signed-off-by: Patrice Chotard Signed-off-by: Patrick Delaunay --- board/st/stm32mp1/stm32mp1.c | 1 + 1 file changed, 1 insertion(+) diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c index 07f5344ec9..8ed09ae24a 100644 --- a/board/s

[PATCH 04/16] arm: stm32mp: detect U-Boot version used to save environment

2020-03-31 Thread Patrick Delaunay
Imply CONFIG_VERSION_VARIABLE for stm32mp1 target and test U-Boot version ($env_ver) when the environment was saved for the last time and to display warning trace. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/Kconfig | 1 + include/configs/stm32mp1.h| 11 --- 2 files

[PATCH 05/16] arm: stm32mp: spl: add bsec driver in SPL

2020-03-31 Thread Patrick Delaunay
Add the bsec driver in SPL, as it is needed by SOC part number detection. Signed-off-by: Patrick Delaunay --- arch/arm/dts/stm32mp15-u-boot.dtsi | 2 +- arch/arm/mach-stm32mp/Makefile | 2 +- arch/arm/mach-stm32mp/bsec.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions

[PATCH 06/16] arm: stm32mp: spl: display error in board_init_f

2020-03-31 Thread Patrick Delaunay
Update board_init_f and try to display error message when console is available. This patch adds trace to debug a spl boot issue when DEBUG and DEBUG_UART is not activated, after uart probe. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/spl.c | 33

[PATCH 11/16] board: stm32mp1: check env_get result in board_late_init

2020-03-31 Thread Patrick Delaunay
This patch avoids crash in strcmp when the boot_device is not present in environment (this case should be never occur) Signed-off-by: Patrick Delaunay --- board/st/stm32mp1/stm32mp1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st

[PATCH 08/16] board: stm32mp1: update management of boot-led

2020-03-31 Thread Patrick Delaunay
Force boot-led ON and no more rely on default-state. This patch avoid device-tree modification for U-Boot. Signed-off-by: Patrick Delaunay --- arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi | 4 arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi | 4 board/st/stm32mp1/stm32mp1.c | 10

[PATCH 09/16] board: stm32mp1: gt9147 IRQ before reset on EV1

2020-03-31 Thread Patrick Delaunay
Software workaround for I2C issue on EV1 board, configure the IRQ line for touchscreen before LCD reset to fix the used I2C address. Signed-off-by: Patrick Delaunay --- board/st/stm32mp1/stm32mp1.c | 41 1 file changed, 41 insertions(+) diff --git a/board

[PATCH 10/16] board: stm32mp1: set environment variable fdtfile

2020-03-31 Thread Patrick Delaunay
For booting Linux in the generic distro mechanism and support of FDTDIR in extlinux.conf , cmd/pxe.c retrieves the FDT file name from "fdtfile" environment variable. Dynamically build this variable with compatible of STMicroelectronics boards. Signed-off-by: Patrick Delaunay ---

<    1   2   3   4   5   6   7   8   9   10   >