[PATCH 16/16] configs: stm32mp1: activate CONFIG_ERRNO_STR

2020-03-31 Thread Patrick Delaunay
Add support of errno_str, used in command pmic and regulator. Signed-off-by: Patrick Delaunay --- configs/stm32mp15_basic_defconfig | 1 + configs/stm32mp15_trusted_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/stm32mp15_basic_defconfig b/configs

[PATCH 12/16] board: stm32mp1: add timeout for I/O compensation ready

2020-03-31 Thread Patrick Delaunay
This patch avoids infinite loop when I/O compensation failed, it adds a 1s timeout to detect error. Signed-off-by: Patrick Delaunay --- board/st/stm32mp1/stm32mp1.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st

[PATCH 14/16] ARM: dts: stm32mp15: use DDR3 files generated by STM32CubeMX

2020-03-31 Thread Patrick Delaunay
Use the DDR3 dtsi files generated by STM32CubeMX 5.6.0 Speed Bin Grade = using DDR3-1066G / 8-8-8 and all others parameters at default value. Signed-off-by: Patrick Delaunay --- .../dts/stm32mp15-ddr3-1x4Gb-1066-binG.dtsi | 49 +-- .../dts/stm32mp15-ddr3-2x4Gb-1066-binG.dtsi

[PATCH 15/16] configs: stm32mp1: activate Ethernet PHY Realtek

2020-03-31 Thread Patrick Delaunay
From: Christophe Roullier Need Realtek driver to manage in RTL8211F the configuration of the LED. Initialize LCR (LED Control Register) to configure green LED for Link, yellow LED for Active Signed-off-by: Christophe Roullier Signed-off-by: Patrick Delaunay --- configs

[PATCH 13/16] gpio: stm32: support gpio ops in SPL

2020-03-31 Thread Patrick Delaunay
The GPIO support is needed in SPL to managed the SD cart detect used on stm32mp157c-ev1 and dk2 board. So this patch activates the associated code in stm32_gpio.c. Signed-off-by: Patrick Delaunay --- drivers/gpio/stm32_gpio.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff

RE: [U-Boot] [PATCH v1 2/2] gpio: stm32f7: Fix SPL code size

2020-03-31 Thread Patrick DELAUNAY
Hi Simon and Marek, > From: Simon Glass > Sent: mardi 31 mars 2020 18:08 > > Hi, > > On Mon, 30 Mar 2020 at 20:51, Marek Vasut wrote: > > > > On 1/4/19 10:55 AM, Patrice Chotard wrote: > > > > Hi, > > > > > @@ -215,7 +220,9 @@ U_BOOT_DRIVER(gpio_stm32) = { > > > .id = UCLASS_GPIO, >

[PATCH] configs: stm32mp1: replace STM32MP1_TRUSTED by TFABOOT

2020-04-01 Thread Patrick Delaunay
U-Boot is loaded by TF-A. Signed-off-by: Patrick Delaunay --- arch/arm/Kconfig| 1 + arch/arm/mach-stm32mp/Kconfig | 21 ++--- arch/arm/mach-stm32mp/bsec.c| 18 +- arch/arm/mach-stm32mp/cpu.c | 10 +--

RE: [PATCH V3 12/14] ARM: dts: stm32: Repair PMIC configuration on AV96

2020-04-01 Thread Patrick DELAUNAY
repair these problems. Also, model the missing > Enpirion EP53A8LQI on the DHCOR SoM as a fixed regulator. > > Reviewed-by: Patrice Chotard > Signed-off-by: Marek Vasut > Cc: Manivannan Sadhasivam > Cc: Patrick Delaunay > Cc: Patrice Chotard > --- > V2: - Model th

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

2020-04-01 Thread Patrick DELAUNAY
Hi Marek, > From: Marek Vasut > Sent: mardi 31 mars 2020 19:51 > > The DH Electronics DHCOR SOM has QSPI NOR on the SoM itself, add it into the > DT. > > Signed-off-by: Marek Vasut > Cc: Manivannan Sadhasivam > Cc: Patrick Delaunay > Cc: Patrice Chotard >

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

2020-04-01 Thread Patrick DELAUNAY
Hi, > From: Marek Vasut > Sent: mardi 31 mars 2020 18:38 > > On 3/31/20 4:59 PM, Patrick DELAUNAY wrote: > > Hi, > > Hi, > > >> It is also highly recommended to configure the board for the DHCOM > >> make stm32mp15_dhcom_basic_defconfig make >

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

2020-04-01 Thread Patrick DELAUNAY
Hi, > From: Marek Vasut > Sent: mardi 31 mars 2020 19:07 > > On 3/31/20 4:06 PM, Patrick DELAUNAY wrote: > > Hi Marek, > > > >> From: Marek Vasut > >> Sent: mardi 31 mars 2020 02:49 > >> > >> Add PHY reset GPIO on AV96 ethernet

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

2020-04-01 Thread Patrick DELAUNAY
Hi Marek, > From: Marek Vasut > Sent: mardi 31 mars 2020 18:59 > > On 3/31/20 5:22 PM, Patrick DELAUNAY wrote: > > Hi Marek, > > Hi, > > >> From: Marek Vasut > >> Sent: mardi 31 mars 2020 02:49 > >> > >> This series fixes

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

2020-04-01 Thread Patrick DELAUNAY
Hi, > From: Marek Vasut > Sent: mardi 31 mars 2020 19:51 > > Add another mux option for SDMMC1 direction pins, in particular > SDMMC1_D123DIR, this is used on AV96 board. > > Reviewed-by: Patrice Chotard > Reviewed-by: Patrick Delaunay > Signed-off-by: Ma

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

2020-04-01 Thread Patrick DELAUNAY
ere not updated to reflect that > change. > Fix this. > > This fixes booting from SD1 X9 slot on the AV96 board. > > Reviewed-by: Patrice Chotard > Reviewed-by: Patrick Delaunay > Fixes: 35a54d41d9d4 ("ARM: dts: stm32mp1: sync device tree with v5.2-rc4"

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

2020-04-01 Thread Patrick DELAUNAY
> Reviewed-by: Patrice Chotard > Reviewed-by: Patrick Delaunay > Signed-off-by: Marek Vasut > Cc: Manivannan Sadhasivam > Cc: Patrick Delaunay > Cc: Patrice Chotard > --- > V2: New patch > V3: No change > --- Applied to u-boot-stm/master, thanks! Regards Patrick

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

2020-04-01 Thread Patrick DELAUNAY
Hi, > From: Marek Vasut > Sent: mardi 31 mars 2020 19:51 > > Add another mux option for SDMMC2 pins 4..7, this is used on AV96 board. > > Reviewed-by: Patrice Chotard > Reviewed-by: Patrick Delaunay > Signed-off-by: Marek Vasut > Cc: Manivannan Sadhasivam &

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

2020-04-01 Thread Patrick DELAUNAY
mux per schematic too. > > Reviewed-by: Patrice Chotard > Reviewed-by: Patrick Delaunay > Signed-off-by: Marek Vasut > Cc: Manivannan Sadhasivam > Cc: Patrick Delaunay > Cc: Patrice Chotard > --- > V2: Update also the -u-boot.dtsi to match this change > V3: No change &g

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

2020-04-01 Thread Patrick DELAUNAY
Hi, > -Original Message- > From: Marek Vasut > Sent: mardi 31 mars 2020 19:51 > To: u-boot@lists.denx.de > Cc: Marek Vasut ; Manivannan Sadhasivam > ; Patrick DELAUNAY > ; Patrice CHOTARD > Subject: [PATCH V3 06/14] ARM: dts: stm32: Add QSPI NOR on AV96 > I

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

2020-04-01 Thread Patrick DELAUNAY
de to handle new phandle lookup. > > Reviewed-by: Patrice Chotard > Reviewed-by: Patrick Delaunay > Signed-off-by: Marek Vasut > Cc: Manivannan Sadhasivam > Cc: Patrick Delaunay > Cc: Patrice Chotard > --- Applied to u-boot-stm/master, thanks! Regards Patrick

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

2020-04-01 Thread Patrick DELAUNAY
Hi, > From: Marek Vasut > Sent: mardi 31 mars 2020 19:52 > > The board has an EEPROM on the same I2C bus as PMIC, at address 0x53. > The EEPROM contains the board MAC address. > > Reviewed-by: Patrice Chotard > Reviewed-by: Patrick Delaunay > Signed-off-by: Ma

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

2020-04-01 Thread Patrick DELAUNAY
Hi, > From: Marek Vasut > Sent: mardi 31 mars 2020 19:52 > > Add another mux option for DWMAC RGMII, this is used on AV96 board. > > Reviewed-by: Patrice Chotard > Reviewed-by: Patrick Delaunay > Signed-off-by: Marek Vasut > Cc: Manivannan Sadhasivam > Cc: P

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

2020-04-01 Thread Patrick DELAUNAY
Hi, > From: Marek Vasut > Sent: mardi 31 mars 2020 19:52 > > 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. > > Reviewed-by: Patrice Chotard > Reviewed-by: Patric

RE: [PATCH V3 12/14] ARM: dts: stm32: Repair PMIC configuration on AV96

2020-04-01 Thread Patrick DELAUNAY
lems. Also, model the missing > Enpirion EP53A8LQI on the DHCOR SoM as a fixed regulator. > > Reviewed-by: Patrice Chotard > Signed-off-by: Marek Vasut > Cc: Manivannan Sadhasivam > Cc: Patrick Delaunay > Cc: Patrice Chotard > --- Applied to u-boot-stm/master, thanks! Regards Patrick

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

2020-04-01 Thread Patrick DELAUNAY
Hi, > From: Marek Vasut > Sent: mardi 31 mars 2020 19:52 > > Add PHY reset GPIO on AV96 ethernet PHY. > > Signed-off-by: Marek Vasut > Cc: Manivannan Sadhasivam > Cc: Patrick Delaunay > Cc: Patrice Chotard > --- Applied to u-boot-stm/master, thanks! Regards Patrick

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

2020-04-01 Thread Patrick DELAUNAY
that much slower and FDCAN is also unaffected. > > Reviewed-by: Patrice Chotard > Reviewed-by: Patrick Delaunay > Signed-off-by: Marek Vasut > Cc: Manivannan Sadhasivam > Cc: Patrick Delaunay > Cc: Patrice Chotard > --- > V2: Move this patch before the split of AV96

[PULL] Pull request: u-boot-stm/master =u-boot-stm32-20200401

2020-04-01 Thread Patrick DELAUNAY
Hi Tom, Please pull the latest STM32 master bugfix for v2020.04 = u-boot-stm32-20200401 With the following changes: - Fix device tree of Avenger96 board from Arrow Electronics and add compatibility with stm32mp15_dhcom_basic_defconfig CI status: Failed for vexpress_ca9x4 test.py https://g

RE: [PATCH V3] ARM: dts: stm32: Add KS8851-16MLL ethernet on FMC2

2020-04-01 Thread Patrick DELAUNAY
Hi Marek, > From: Marek Vasut > Sent: jeudi 26 mars 2020 16:58 > > Add DT entries, Kconfig entries and board-specific entries to configure > FMC2 bus and make KS8851-16MLL on that bus accessible to U-Boot. > > Signed-off-by: Marek Vasut > Cc: Patrick Delaunay > Cc:

RE: [PATCH] ARM: dts: stm32: Define FMC2 base address

2020-04-01 Thread Patrick DELAUNAY
Hi Marek, > From: Marek Vasut > Sent: jeudi 26 mars 2020 16:57 > > Define FMC2 base address, for use in board files, until there is an actual > FMC2 > bus driver. > > Signed-off-by: Marek Vasut > Cc: Patrick Delaunay > Cc: Patrice Chotard > --- > arch/a

RE: [PATCH V3 12/14] ARM: dts: stm32: Repair PMIC configuration on AV96

2020-04-01 Thread Patrick DELAUNAY
Hi, > From: Marek Vasut > Sent: mercredi 1 avril 2020 14:53 > To: Patrice CHOTARD ; Patrick DELAUNAY > ; u-boot@lists.denx.de; Pascal PAILLET-LME > > Cc: Manivannan Sadhasivam ; Alexandre > TORGUE > Subject: Re: [PATCH V3 12/14] ARM: dts: stm32: Repair PMIC configuratio

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

2020-04-03 Thread Patrick DELAUNAY
Hi Marek, > From: Marek Vasut > Sent: lundi 30 mars 2020 16:04 > > On 3/30/20 3:49 PM, Patrick DELAUNAY wrote: > > Hi Marek, > > Hi, > > [...] > > >>> - /* Enable D-cache. I-cache is already enabled in start.S */ > >>> + /* I-cache is

[PATCH 3/3] arm: caches: manage phys_addr_t overflow in mmu_set_region_dcache_behaviour

2020-04-03 Thread Patrick Delaunay
ase the previous behavior is still used: when start is not aligned on MMU section, the end address is only aligned after the sum start + size. Signed-off-by: Patrick Delaunay --- arch/arm/lib/cache-cp15.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/lib/cache-cp15.c b/arch/arm/

[PATCH 2/3] arm: caches: add DCACHE_DEFAULT_OPTION

2020-04-03 Thread Patrick Delaunay
option to select) of mmu_set_region_dcache_behaviour function. Signed-off-by: Patrick Delaunay --- arch/arm/include/asm/system.h | 8 arch/arm/lib/cache-cp15.c | 11 ++- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/arch/arm/include/asm/system.h b/arch/arm

[PATCH 1/3] arm: caches: protect dram_bank_mmu_setup access to bi_dram

2020-04-03 Thread Patrick Delaunay
cases, the MMU must be initialized explicitly with mmu_set_region_dcache_behaviour function. Signed-off-by: Patrick Delaunay --- arch/arm/lib/cache-cp15.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/lib/cache-cp15.c b/arch/arm/lib/cache-cp15.c index f8d20960da..54509f11c3

[PATCH v2 1/2] arm: stm32mp: activate data cache in SPL and before relocation

2020-04-03 Thread Patrick Delaunay
0ms on DK2). Signed-off-by: Patrick Delaunay --- Changes in v2: - create a new function early_enable_caches - use TLB in .init section - use the default weak dram_bank_mmu_setup() and use mmu_set_region_dcache_behaviour() to setup the early MMU configuration - enable data cache on DDR in

[PATCH v2 2/2] arm: stm32mp: activate data cache on DDR in SPL

2020-04-03 Thread Patrick Delaunay
data cache and the TLB. Signed-off-by: Patrick Delaunay --- Changes in v2: - new arch/arm/mach-stm32mp/spl.c | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm/mach-stm32mp/spl.c b/arch/arm/mach-stm32mp/spl.c index 9cd7b418a4..279121af75 100644 --- a/arch/arm

[PATCH v2 0/2] arm: stm32mp1: activate data cache in SPL and before relocation

2020-04-03 Thread Patrick Delaunay
: - create a new function early_enable_caches - use TLB in .init section - use the default weak dram_bank_mmu_setup() and use mmu_set_region_dcache_behaviour() to setup the early MMU configuration - enable data cache on DDR in SPL, after DDR controller initialization - new Patrick Delaunay (2): arm: stm32m

[PATCH v2] dm: core: remove the duplicated function dm_ofnode_pre_reloc

2020-04-03 Thread Patrick Delaunay
dm_ofnode_pre_reloc can be removed and replaced by these function calls by ofnode_pre_reloc(). Signed-off-by: Patrick Delaunay --- Hi Simon, It is a rebased patch for http://patchwork.ozlabs.org/patch/1035799/ marked as superseded but never resent (and I forget it). Compilation is OK on travis

RE: [PATCH 1/6] net: dwc_eth_qos: Fully rewrite RX descriptor field 3

2020-04-06 Thread Patrick DELAUNAY
al dirty > bits. > > Signed-off-by: Marek Vasut > Cc: Joe Hershberger > Cc: Patrice Chotard > Cc: Patrick Delaunay > Cc: Ramon Fried > Cc: Stephen Warren > --- > drivers/net/dwc_eth_qos.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > &g

RE: [PATCH 2/6] net: dwc_eth_qos: Correctly wrap around TX descriptor tail pointer

2020-04-06 Thread Patrick DELAUNAY
-by: Marek Vasut > Cc: Joe Hershberger > Cc: Patrice Chotard > Cc: Patrick Delaunay > Cc: Ramon Fried > Cc: Stephen Warren > --- Reviewed-by: Patrick Delaunay Thanks Patrick

RE: [PATCH 3/6] net: dwc_eth_qos: Flush the RX descriptors on init

2020-04-06 Thread Patrick DELAUNAY
Dear Marek, > From: Marek Vasut > Sent: lundi 23 mars 2020 02:45 > To: u-boot@lists.denx.de > Cc: Marek Vasut ; Joe Hershberger > ; Patrice CHOTARD ; > Patrick DELAUNAY ; Ramon Fried > ; Stephen Warren > Subject: [PATCH 3/6] net: dwc_eth_qos: Flush the RX descriptors on

RE: [PATCH 4/6] net: dwc_eth_qos: Invalidate RX descriptor before reading

2020-04-06 Thread Patrick DELAUNAY
r does support use of RX descriptors in > cacheable memory. > > This patch adds a missing RX descriptor invalidation, which assures the CPU > will > read a fresh copy of the RX descriptor instead of a cached one. > > Signed-off-by: Marek Vasut > Cc: Joe Hershberger

RE: [PATCH 5/6] net: dwc_eth_qos: Invalidate RX packet DMA buffer

2020-04-06 Thread Patrick DELAUNAY
Cc: Joe Hershberger > Cc: Patrice Chotard > Cc: Patrick Delaunay > Cc: Ramon Fried > Cc: Stephen Warren > --- Reviewed-by: Patrick Delaunay Patrick

RE: [PATCH 6/6] net: dwc_eth_qos: Prevent DMA from writing updated RX DMA descriptor

2020-04-06 Thread Patrick DELAUNAY
buffer can be updated without any > interference. > > Signed-off-by: Marek Vasut > Cc: Joe Hershberger > Cc: Patrice Chotard > Cc: Patrick Delaunay > Cc: Ramon Fried > Cc: Stephen Warren > --- Reviewed-by: Patrick Delaunay

RE: [PATCH 1/6] net: dwc_eth_qos: Fully rewrite RX descriptor field 3

2020-04-06 Thread Patrick DELAUNAY
al dirty > bits. > > Signed-off-by: Marek Vasut > Cc: Joe Hershberger > Cc: Patrice Chotard > Cc: Patrick Delaunay > Cc: Ramon Fried > Cc: Stephen Warren > --- For the series, Tested-by: Patrick Delaunay (on STM32MP15C-DK2, manual test: dhcp and run bootcmd_pxe) Regards Patrick

RE: [PATCH 1/4] [RFC] ARM: stm32: Implement board coding on AV96

2020-04-07 Thread Patrick DELAUNAY
alue to pick the correct device tree from an fitImage. Nice. > Signed-off-by: Marek Vasut > Cc: Manivannan Sadhasivam > Cc: Patrick Delaunay > Cc: Patrice Chotard > --- > arch/arm/dts/stm32mp15xx-dhcor-u-boot.dtsi | 9 +++ > arch/arm/mach-stm32mp/spl.c| 2

RE: [PATCH 1/6] net: dwc_eth_qos: Fully rewrite RX descriptor field 3

2020-04-07 Thread Patrick DELAUNAY
Dear Marek, > From: Patrick DELAUNAY > Sent: lundi 6 avril 2020 17:11 > > Dear Marek, > > > From: Marek Vasut > > Sent: lundi 23 mars 2020 02:45 > > > > The RX descriptor field 3 should contain only OWN and BUF1V bits > > before being used for rec

RE: [PATCH 3/4] [RFC] ARM: dts: stm32: Rework DDR DT inclusion

2020-04-07 Thread Patrick DELAUNAY
DDR configuration dtsi > files in > board DT. > > Signed-off-by: Marek Vasut > Cc: Manivannan Sadhasivam > Cc: Patrick Delaunay > Cc: Patrice Chotard > --- > arch/arm/dts/stm32mp15-ddr.dtsi | 357 +++--- > .../dts/stm32mp15-ddr3-1x4Gb-10

RE: [PATCH 2/4] [RFC] ram: stm32mp1: Add support for multiple configs

2020-04-07 Thread Patrick DELAUNAY
is on the single > top- > level DRAM configuration, if matching on subnodes is required, then this > board_stm32mp1_ddr_config_name_match() must be overridden. > > Signed-off-by: Marek Vasut > Cc: Manivannan Sadhasivam > Cc: Patrick Delaunay > Cc: Patrice C

RE: [PATCH 4/4] [RFC] ARM: stm32: Implement DDR3 coding on DHCOR SoM

2020-04-07 Thread Patrick DELAUNAY
M, read > them out and use the value to pick the correct DDR3 config. > > Signed-off-by: Marek Vasut > Cc: Manivannan Sadhasivam > Cc: Patrick Delaunay > Cc: Patrice Chotard > --- It is ok for me. Only check the name check with remarks on previous patch of the serie.

RE: [PATCH 1/6] net: dwc_eth_qos: Fully rewrite RX descriptor field 3

2020-04-07 Thread Patrick DELAUNAY
Dear, > From: Marek Vasut > Sent: mardi 7 avril 2020 12:04 > > On 4/7/20 11:49 AM, Patrick DELAUNAY wrote: > > Dear Marek, > > Hi, > > > To complete my test and to check the cache management in the driver, > > > > I test the sequence (CONFIG_SYS_NO

[PATCH] arm: stm32mp: cleanup test on eth_env_set_enetaddr result

2020-04-07 Thread Patrick Delaunay
Remove the unnecessary inversion on the eth_env_set_enetaddr() result which only make complex the code of setup_mac_address() and display an invalid value in the associated pr_err. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2

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

2020-04-07 Thread Patrick DELAUNAY
t; > environment variables are reset to their default value. > > > > This patch allows to detect that environment is saved in a removable > > device, as a SD card, and reused on a other board, potentially with > > incompatible variables. > > > > Sign

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

2020-04-07 Thread Patrick DELAUNAY
Hi Patrice > From: Patrice CHOTARD > Sent: mercredi 1 avril 2020 09:34 > > Hi Patrick > > On 3/31/20 6:04 PM, Patrick Delaunay wrote: > > Imply CONFIG_VERSION_VARIABLE for stm32mp1 target and test U-Boot > > version ($env_ver) when the environment was saved for th

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

2020-04-07 Thread Patrick DELAUNAY
Dear Wolfgang, > From: Wolfgang Denk > Sent: mercredi 1 avril 2020 13:26 > > Dear Patrick Delaunay, > > In message <20200331160456.26254-1-patrick.delau...@st.com> you wrote: > > Imply CONFIG_VERSION_VARIABLE for stm32mp1 target and test U-Boot > > version

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

2020-04-08 Thread Patrick DELAUNAY
before and after the save is identical: it is the default one. but if it is too aggressive I can kept it for downstream. Marek do you have a opinion: it is acceptable for DH SOM using STM32MP15x SOC? > Best regards, > > Wolfgang Denk > Best Regards Patrick Delaunay

RE: [PATCH 3/4] [RFC] ARM: dts: stm32: Rework DDR DT inclusion

2020-04-08 Thread Patrick DELAUNAY
Hi, > From: Marek Vasut > Sent: mardi 7 avril 2020 22:01 > > On 4/7/20 3:00 PM, Patrick DELAUNAY wrote: > > Dear Marek, > > Hi, > > >> diff --git a/arch/arm/dts/stm32mp15-ddr.dtsi > >> b/arch/arm/dts/stm32mp15-ddr.dtsi index 38f29bb789..50ca70

RE: [PATCH 2/4] [RFC] ram: stm32mp1: Add support for multiple configs

2020-04-08 Thread Patrick DELAUNAY
Hi Marek, > From: Marek Vasut > Sent: mardi 7 avril 2020 21:58 > > On 4/7/20 3:04 PM, Patrick DELAUNAY wrote: > > Hi Marek, > > Hi, > > [...] > > >> +__weak int board_stm32mp1_ddr_config_name_match(struct udevice *dev, > >> +

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

2020-04-08 Thread Patrick DELAUNAY
Dear Wolfgang, > From: Wolfgang Denk > Sent: mercredi 1 avril 2020 13:27 > > Dear Patrick Delaunay, > > In message > <20200331180330.5.I7a042a9ffbb5c2668034eddf5ace91271bb53c5f@changeid> > you wrote: > > Add the bsec driver in SPL, as it is needed by SOC p

RE: [PATCH 1/3] arm: caches: protect dram_bank_mmu_setup access to bi_dram

2020-04-08 Thread Patrick DELAUNAY
Dear Marek, > From: Marek Vasut > Sent: vendredi 3 avril 2020 23:27 > > On 4/3/20 10:28 AM, Patrick Delaunay wrote: > > Add protection in dram_bank_mmu_setup() to avoid access to bd->bi_dram > > before relocation. > > > > This patch allow to use the ge

RE: [PATCH 2/3] arm: caches: add DCACHE_DEFAULT_OPTION

2020-04-08 Thread Patrick DELAUNAY
Dear Marek, > From: Marek Vasut > Sent: vendredi 3 avril 2020 23:29 > > On 4/3/20 10:28 AM, Patrick Delaunay wrote: > > Add the new flags DCACHE_DEFAULT_OPTION to define the default option > > to use according the compilation flags > > CONFIG

[PATCH 01/10] stm32mp: stm32prog: remove all the header check for UART download

2021-05-18 Thread Patrick Delaunay
header. Fixes: 4fb7b3e10891 ("stm32mp: stm32prog: add FIP header support") Signed-off-by: Patrick Delaunay --- .../mach-stm32mp/cmd_stm32prog/stm32prog.c| 14 +- .../mach-stm32mp/cmd_stm32prog/stm32prog.h| 5 - .../cmd_stm32prog/stm32prog_serial.c | 151 ++-

[PATCH 02/10] stm32mp: stm32prog: add timeout in stm32prog_serial_get_buffer

2021-05-18 Thread Patrick Delaunay
Operation fails at packet number 4165 at address 0x1044FF Signed-off-by: Patrick Delaunay --- .../mach-stm32mp/cmd_stm32prog/stm32prog_serial.c| 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_serial.c b/arch/arm

[PATCH 05/10] stm32mp: stm32prog: handle the next phase after USB re-enumeration

2021-05-18 Thread Patrick Delaunay
Handle the second USB enumeration only when the flashlayout is received and when phase is PHASE_FLASHLAYOUT. This patch removes the call of stm32prog_next_phase as it is already done in stm32prog_dfu_init(). Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/cmd_stm32prog

[PATCH 03/10] stm32mp: stm32prog: add support of initrd in flashlayout

2021-05-18 Thread Patrick Delaunay
l, DT and initrd: - 0x01 fsbl Binary none 0x0 tfa.stm32 - 0x03 fip Binary none 0x0 fip.bin P 0x10 fit System ram0 0xC200 fit.bin Signed-off-by: Patrick Delaunay --- .../cmd_stm32prog/cmd_stm32prog.c | 22 +-- .../mach-stm32mp/cmd_stm32prog/stm32prog.c|

[PATCH 00/10] stm32mp: stm32prog: several features and fixes

2021-05-18 Thread Patrick Delaunay
This serie provides several evolution and patches for the command stm32prog used on STM32MP platform to communicate with the STMicroelectonics tools STM32CubeProgrammer. Patrick Delaunay (10): stm32mp: stm32prog: remove all the header check for UART download stm32mp: stm32prog: add

[PATCH 04/10] stm32mp: stm32prog: solve compilation with CONFIG_FIT_SIGNATURE

2021-05-18 Thread Patrick Delaunay
EGACY == |^~~ |IMAGE_FORMAT_FIT Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/cmd_stm32prog/cmd_stm32prog.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-stm32mp/cmd_stm32prog/cmd_stm32prog.c b/arch/arm/mach-stm32mp/cmd_stm3

[PATCH 08/10] stm32mp: stm32prog: change one message level to debug

2021-05-18 Thread Patrick Delaunay
Move the message "Invalid or missing layout file." to debug level as it is a normal behavior and not an error and add the missing '\n'. This patch avoids the strange trace : Boot over usb0! Invalid or missing layout file.DFU alt info setting: done Signed-off-by: Patrick

[PATCH 07/10] stm32mp: stm32prog: use get_cpu_dev for GetID command

2021-05-18 Thread Patrick Delaunay
Use get_cpu_dev() in uart getID command and remove the defines DEVICE_ID_BYTE1 and 2 defines. This patch prepare the support for new SOC family. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_serial.c | 10 ++ 1 file changed, 6 insertions(+), 4

[PATCH 06/10] stm32mp: stm32prog: correctly handle DM_PMIC

2021-05-18 Thread Patrick Delaunay
Correctly handle number of alternate when DM_PMIC is not activated. This patch remove the last UNKNOWN partition in this case. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm

[PATCH 09/10] dfu: add error callback

2021-05-18 Thread Patrick Delaunay
Add error callback in dfu stack to manage some board specific behavior on DFU targets. Signed-off-by: Patrick Delaunay --- drivers/dfu/dfu.c | 12 include/dfu.h | 11 +++ 2 files changed, 23 insertions(+) diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c index

[PATCH 10/10] stm32mp: stm32prog: handle dfu error

2021-05-18 Thread Patrick Delaunay
Handle DFU stack error in STM32CubeProgrammer protocol. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c b/arch/arm/mach-stm32mp/cmd_stm32prog

Re: [PATCH v3] dm: core: Add address translation in fdt_get_resource

2021-05-18 Thread Patrick DELAUNAY
Hi Simon, On 5/4/21 6:58 PM, Simon Glass wrote: On Tue, 4 May 2021 at 04:02, Patrick Delaunay wrote: Today of_address_to_resource() is called only in ofnode_read_resource() for livetree support and fdt_get_resource() is called when livetree is not supported. The fdt_get_resource() doesn'

[PATCH 0/2] dm: core: Add address translation in fdt_get_resource - fixes

2021-05-18 Thread Patrick Delaunay
gards, Patrick [1] [v3] dm: core: Add address translation in fdt_get_resource http://patchwork.ozlabs.org/project/uboot/list/?series=242010&state=* [2] dm: core: Add address translation in fdt_get_resource http://patchwork.ozlabs.org/project/uboot/list/?series=237557&state=* Patric

[PATCH 1/2] net: luton: remove address translation after ofnode_read_resource

2021-05-18 Thread Patrick Delaunay
urce") Reported-by: Horatiu Vultur Signed-off-by: Patrick Delaunay --- drivers/net/mscc_eswitch/luton_switch.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/net/mscc_eswitch/luton_switch.c b/drivers/net/mscc_eswitch/luton_switch.c index 54afa14c9d..73c

[PATCH 2/2] test: add dm_test_read_resource

2021-05-18 Thread Patrick Delaunay
Add a test of dev_read_resource with translation or without translation Signed-off-by: Patrick Delaunay --- test/dm/test-fdt.c | 33 + 1 file changed, 33 insertions(+) diff --git a/test/dm/test-fdt.c b/test/dm/test-fdt.c index 9b771fdf19..b1736fbe27 100644

Re: [Uboot-stm32] [PATCH 2/2] cmd: pinmux: support pin name in status command

2021-05-18 Thread Patrick DELAUNAY
Hi Simon, On 5/6/21 5:02 PM, Simon Glass wrote: Hi Patrick, On Thu, 6 May 2021 at 02:38, Patrick DELAUNAY wrote: ... Any reason to prefer C test to python... I just complete the existing pinmux tests. For performance ? I wrote this up here: https://u-boot.readthedocs.io/en/latest

[PATCH v2 1/2] cmd: pinmux: update result of do_status

2021-05-19 Thread Patrick Delaunay
From: Patrick Delaunay Update the result of do_status and always returns a CMD_RET_ value (-ENOSYS was a possible result of show_pinmux). This patch also adds pincontrol name in error messages (dev->name) and treats correctly the status sub command when pin-controller device is not selec

[PATCH v2 2/2] cmd: pinmux: support pin name in status command

2021-05-19 Thread Patrick Delaunay
Allow pin name parameter for pimux staus command, as gpio command to get status of one pin. The possible usage of the command is: > pinmux dev pinctrl > pinmux status > pinmux status -a > pinmux status Signed-off-by: Patrick Delaunay --- Changes in v2: - use -ENOENT when the

[PATCH v3 1/2] cmd: pinmux: update result of do_status

2021-05-21 Thread Patrick Delaunay
Update the result of do_status and always returns a CMD_RET_ value (-ENOSYS was a possible result of show_pinmux). This patch also adds pincontrol name in error messages (dev->name) and treats correctly the status sub command when pin-controller device is not selected. Signed-off-by: Patr

[PATCH v3 2/2] cmd: pinmux: support pin name in status command

2021-05-21 Thread Patrick Delaunay
Allow pin name parameter for pimux staus command, as gpio command to get status of one pin. The possible usage of the command is: > pinmux dev pinctrl > pinmux status > pinmux status -a > pinmux status Signed-off-by: Patrick Delaunay Reviewed-by: Simon Glass --- Changes

[PATCH v2 2/2] test: add dm_test_read_resource

2021-05-21 Thread Patrick Delaunay
Add a test of dev_read_resource with translation or without translation Signed-off-by: Patrick Delaunay Reviewed-by: Simon Glass --- Changes in v2: - Add reviewed-by - use lower-case hex test/dm/test-fdt.c | 33 + 1 file changed, 33 insertions(+) diff --git a

[PATCH v2 0/2] dm: core: Add address translation in fdt_get_resource - fixes

2021-05-21 Thread Patrick Delaunay
fdt_get_resource http://patchwork.ozlabs.org/project/uboot/list/?series=242010&state=* [2] dm: core: Add address translation in fdt_get_resource http://patchwork.ozlabs.org/project/uboot/list/?series=237557&state=* Changes in v2: - Add reviewed-by - Add reviewed-by - use lower-case hex

[PATCH v2 1/2] net: luton: remove address translation after ofnode_read_resource

2021-05-21 Thread Patrick Delaunay
urce") Reviewed-by: Ramon Fried Reported-by: Horatiu Vultur Signed-off-by: Patrick Delaunay --- Changes in v2: - Add reviewed-by drivers/net/mscc_eswitch/luton_switch.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/net/mscc_eswitch/luton_switch.c b/driv

Re: [PATCH v4 12/14] dfu_mtd: Ignore non-implemented lock device failure

2021-05-28 Thread Patrick DELAUNAY
On 5/19/21 8:07 AM, Sughosh Ganu wrote: On Wed, 19 May 2021 at 11:16, Masami Hiramatsu wrote: Ignore the non-implemented lock device failure on writing mtd via DFU. Without this fix, DFU write shows an error on such device even if it succeeded, because dfu->write_medium returns -EOPNOTSUPP.

Re: [PATCH] dfu: dfu_mtd: remove the mtd_block_op error when mtd_lock is not supported

2021-05-28 Thread Patrick DELAUNAY
Hi, On 3/10/21 12:15 PM, Sughosh Ganu wrote: On Wed, 10 Mar 2021 at 14:57, Patrick Delaunay mailto:patrick.delau...@foss.st.com>> wrote: Fix the result of DFU_OP_WRITE operation in mtd_block_op function when mtd_lock is not supported (-EOPNOTSUPP) to avoid DFU stack er

Re: [PATCH] reset: stm32: Fix bank and offset computation

2021-05-28 Thread Patrick DELAUNAY
s equal to 32. Signed-off-by: Patrice Chotard Signed-off-by: Pankaj Dev --- drivers/reset/stm32-reset.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH v3 3/5] arm: stm32mp: Implement support for TZC 400 controller

2021-05-28 Thread Patrick DELAUNAY
tm32mp/tzc400.c:52: check: Prefer kernel type 'u32' over 'uint32_t' arch/arm/mach-stm32mp/tzc400.c:81: check: Prefer kernel type 'u32' over 'uint32_t' arch/arm/mach-stm32mp/tzc400.c:82: check: Prefer kernel type 'u32' over 'uint32_t

Re: [PATCH v3 4/5] stm32mp1: spl: Configure TrustZone controller for OP-TEE

2021-05-28 Thread Patrick DELAUNAY
Hi, On 4/15/21 6:48 PM, Alexandru Gagniuc wrote: OP-TEE is very particular about how the TZC should be configured. When booting an OP-TEE payload, an incorrect TZC configuration will result in a panic. Most information can be derived from the SPL devicetree. The only information we don't have i

Re: [PATCH v3 5/5] ARM: dts: stm32mp: Add OP-TEE reserved memory to SPL dtb

2021-05-28 Thread Patrick DELAUNAY
Hi Alexandru, On 4/15/21 6:48 PM, Alexandru Gagniuc wrote: Add the "/reserved-memory/optee" node to the SPL devicetree. The purpose is to allow configuring TZC regions when booting OP-TEE. Signed-off-by: Alexandru Gagniuc Reviewed-by: Simon Glass --- arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi

Re: [PATCH] reset: stm32: Fix bank and offset computation

2021-05-28 Thread Patrick DELAUNAY
On 4/28/21 1:42 PM, Patrice Chotard wrote: BITS_PER_LONG is used to represent register's size which is 32. But when compiled on arch64, BITS_PER_LONG is then equal to 64. Fix bank and offset computation to make it work on arch32 and arch64 and ensure that register's size is always equal to 32.

Re: [PATCH V2] ARM: stm32: Update dhelectronics/dh_stm32mp1/MAINTAINERS file

2021-05-28 Thread Patrick DELAUNAY
Hi, On 5/5/21 6:23 PM, Christoph Niedermaier wrote: Adding new DH electronics mailing list. Signed-off-by: Christoph Niedermaier --- V2: Correct message tag --- board/dhelectronics/dh_stm32mp1/MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/board/dhelectronics/dh_stm32mp1/MA

Re: [PATCH] ARM: stm32: Add additional ID register check for KSZ8851 presence

2021-05-28 Thread Patrick DELAUNAY
sufficient to detect cases where the DT still contains the KSZ8851 nodes, but the chip itself is not present. Extend the detection to handle these cases. Signed-off-by: Marek Vasut Cc: Patrice Chotard Cc: Patrick Delaunay --- board/dhelectronics/dh_stm32mp1/board.c | 11 ++- 1 file c

Re: [PATCH] ARM: stm32: Enable UNZIP on DHSOM by default

2021-05-28 Thread Patrick DELAUNAY
On 5/4/21 4:16 PM, Patrick DELAUNAY wrote: Hi, On 5/3/21 1:31 PM, Marek Vasut wrote: The CMD_UNZIP provides the 'gzwrite' command, which is convenient for writing e.g. gz-compressed images to eMMC from U-Boot. Signed-off-by: Marek Vasut Cc: Patrice Chotard Cc: Patric

Re: [PATCH] configs: stm32mp: Enable UNZIP on STMicroelectronics stm32mp15 boards

2021-05-28 Thread Patrick DELAUNAY
Hi, On 5/28/21 2:46 PM, Patrice CHOTARD wrote: Hi Patrick On 5/6/21 9:31 AM, Patrick Delaunay wrote: The CMD_UNZIP provides the 'gzwrite' command, which is convenient for writing e.g. gz-compressed images to eMMC from U-Boot. Signed-off-by: Patrick Delaunay ---

[PULL] Pull request for u-boot master / v2021.07 = u-boot-stm32-20210528

2021-05-28 Thread Patrick DELAUNAY
32: Enable UNZIP on DHSOM by default Patrice Chotard (1):   reset: stm32: Fix bank and offset computation Patrick Delaunay (2):   dfu: dfu_mtd: remove the mtd_block_op error when mtd_lock is not supported   configs: stm32mp: Enable UNZIP on STMicroelectronics stm32mp15 boards  ar

Re: [PATCH u-boot v4 00/36] U-Boot LTO (Sandbox + Some ARM boards)

2021-06-01 Thread Patrick DELAUNAY
Hi Marek, On 5/20/21 1:23 PM, Marek Behún wrote: Hello, this is version 4 of patches adding support for LTO to U-Boot. This series is being tested by Github/Azure CI at https://github.com/u-boot/u-boot/pull/57 There is a problem with sandbox_clang test scenario, which I was unable to resol

Re: [PATCH v4 5/5] ARM: dts: stm32mp: Add OP-TEE reserved memory to SPL dtb

2021-06-01 Thread Patrick DELAUNAY
0,9 +30,12 @@ }; reserved-memory { + u-boot,dm-spl; + optee@de00 { reg = <0xde00 0x0200>; no-map; + u-boot,dm-spl; }; }; Reviewed-by: Patrick Delaunay Thanks Patrick

Re: [PATCH] net: dwc_eth_qos: Fix needless phy auto-negotiation restarts

2021-06-01 Thread Patrick DELAUNAY
configuration filename trial. To avoid this issue don't disable clk_ck clock after it was enabled. Signed-off-by: Daniil Stas Cc: Ramon Fried Cc: Joe Hershberger Cc: Patrick Delaunay Cc: Patrice Chotard --- drivers/net/dwc_eth_qos.c | 6 +++--- 1 file changed, 3 insertions(+), 3 dele

Re: [PATCH] spi: stm32_qspi: Fix short data write operation

2021-06-01 Thread Patrick DELAUNAY
. Signed-off-by: Daniil Stas Cc: Patrick Delaunay Cc: Patrice Chotard --- drivers/spi/stm32_qspi.c | 29 +++-- 1 file changed, 15 insertions(+), 14 deletions(-) Reviewed-by: Patrick Delaunay Thanks Patrick

[PATCH] doc: usage: reorder commands in index.rst

2021-06-02 Thread Patrick Delaunay
Reorder alphabetically the command in the index of usage in U-Boot documentation. Signed-off-by: Patrick Delaunay --- doc/usage/index.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/usage/index.rst b/doc/usage/index.rst index c1f9b6a53b..41b247bc62 100644

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