[U-Boot] [BUG report] imx6: CACHE Misaligned operation

2016-12-15 Thread Francesco Dolcini
Dear all, I am trying current U-Boot master on solidrun microsom i.MX6 and I get a CACHE error when accessing SD device: U-Boot SPL 2017.01-rc1-00066-ge5209e3-dirty (Dec 14 2016 - 10:55:06) Trying to boot from MMC1** First descriptor is NOT a primary desc on 0:1 ** U-Boot

[PATCH v1 2/2] apalis-imx6: use dynamic DDR calibration

2021-08-31 Thread Francesco Dolcini
Enable dynamic DDR calibration to have a reliable behavior on edge temperatures conditions. Signed-off-by: Max Krummenacher Signed-off-by: Francesco Dolcini --- board/toradex/apalis_imx6/apalis_imx6.c | 19 +++ configs/apalis_imx6_defconfig | 1 + 2 files changed

[PATCH v1 1/2] colibri-imx6: use dynamic DDR calibration

2021-08-31 Thread Francesco Dolcini
Enable dynamic DDR calibration to have a reliable behavior on edge temperatures conditions. Signed-off-by: Max Krummenacher Signed-off-by: Francesco Dolcini --- board/toradex/colibri_imx6/colibri_imx6.c | 22 ++ configs/colibri_imx6_defconfig| 1 + 2 files

[PATCH v1 0/2] board: toradex: enable dynamic DDR calibration for iMX6 boards

2021-08-31 Thread Francesco Dolcini
Enable dynamic DDR calibration to have a reliable behavior on edge temperatures conditions for Toradex Apalis and Colibri iMX6 boards. Francesco Dolcini (2): colibri-imx6: use dynamic DDR calibration apalis-imx6: use dynamic DDR calibration board/toradex/apalis_imx6/apalis_imx6.c | 19

[PATCH v1 1/2] colibri-imx6ull: improve env badblock management

2021-09-01 Thread Francesco Dolcini
Use the complete 512kb (4 blocks) nand partition reserved for u-boot environment instead of just the first block, this allows the module to have a working environment even if 3 blocks are bad. Signed-off-by: Francesco Dolcini --- include/configs/colibri-imx6ull.h | 5 + 1 file changed, 5

[PATCH v1 2/2] colibri-imx7: improve env badblock management

2021-09-01 Thread Francesco Dolcini
Use the complete 512kb (4 blocks) nand partition reserved for u-boot environment instead of just the first block, this allows the module to have a working environment even if 3 blocks are bad. Signed-off-by: Francesco Dolcini --- include/configs/colibri_imx7.h | 5 + 1 file changed, 5

[PATCH v1 0/2] board: toradex: improve env badblock management for NAND variant boards

2021-09-01 Thread Francesco Dolcini
Use the complete 512kb (4 blocks) nand partition reserved for u-boot environment instead of just the first block, this allows the module to have a working environment even if 3 blocks are bad. Francesco Dolcini (2): colibri-imx6ull: improve env badblock management colibri-imx7: improve env

Re: [PATCH] doc: board: toradex: fix file names

2021-09-09 Thread Francesco Dolcini
On Wed, Sep 08, 2021 at 04:52:24PM +0300, Oleksandr Suvorov wrote: > Fix the documentation file names: s/apalix/apalis/. > > Signed-off-by: Oleksandr Suvorov Acked-by: Francesco Dolcini

Re: [PATCH] xtensa: Put U-Boot version string at correct place by linker script

2021-09-16 Thread Francesco Dolcini
On Thu, Sep 16, 2021 at 01:30:21PM -0400, Tom Rini wrote: > *(.literal .text) \ > + *(.literal .text_version_string)\ Isn't ".litteral" a duplication? Even if I'm pretty sure it will not cause any difference

Re: [PATCH] xtensa: Put U-Boot version string at correct place by linker script

2021-09-16 Thread Francesco Dolcini
On Thu, Sep 16, 2021 at 04:13:31PM -0400, Tom Rini wrote: > On Thu, Sep 16, 2021 at 09:50:35PM +0200, Francesco Dolcini wrote: > > On Thu, Sep 16, 2021 at 03:42:20PM -0400, Tom Rini wrote: > > > On Thu, Sep 16, 2021 at 09:38:19PM +0200, Francesco Dolcini wrote: > > > &

Re: [PATCH] xtensa: Put U-Boot version string at correct place by linker script

2021-09-16 Thread Francesco Dolcini
On Thu, Sep 16, 2021 at 03:42:20PM -0400, Tom Rini wrote: > On Thu, Sep 16, 2021 at 09:38:19PM +0200, Francesco Dolcini wrote: > > On Thu, Sep 16, 2021 at 01:30:21PM -0400, Tom Rini wrote: > > > *(.literal .text) \ > >

Re: [PATCH v3 1/2] GPIO: fxl6408: Add support for FXL6408 GPIO expander

2021-09-10 Thread Francesco Dolcini
Hi Oleksandr, On Fri, Sep 10, 2021 at 08:34:56AM +0200, Michal Simek wrote: > On 9/9/21 10:44 PM, Oleksandr Suvorov wrote: > > Signed-off-by: Oleksandr Suvorov > > 3 emails for you. Would be the best to choose only one. And to use a valid one, oleksandr.suvo...@toradex.com is gone as today, I

[PATCH] ARM: dts: colibri-imx6ull: fix mac address passing

2021-09-23 Thread Francesco Dolcini
-by: Francesco Dolcini --- arch/arm/dts/imx6ull-colibri.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/dts/imx6ull-colibri.dtsi b/arch/arm/dts/imx6ull-colibri.dtsi index b7bf79f28c..104207be97 100644 --- a/arch/arm/dts/imx6ull-colibri.dtsi +++ b/arch/arm/dts/imx6ull

Re: [PATCH] ARM: dts: colibri-imx6ull: fix mac address passing

2021-09-23 Thread Francesco Dolcini
On Thu, Sep 23, 2021 at 07:36:34AM -0400, Tom Rini wrote: > On Thu, Sep 23, 2021 at 09:55:21AM +0200, Francesco Dolcini wrote: > > > colibri-imx6ull ethernet device is fec2, while the optional secondary > > ethernet is fec1, update the ethernet aliases in the .dts file so that

Re: [PATCH v1 0/2] board: toradex: improve env badblock management for NAND variant boards

2021-10-21 Thread Francesco Dolcini
Hello Stefano, On Thu, Oct 21, 2021 at 12:16:33PM +0200, Stefano Babic wrote: > On 01.09.21 09:48, Francesco Dolcini wrote: > > > > Use the complete 512kb (4 blocks) nand partition reserved for u-boot > > environment instead of just the first block, this allows the module

Re: [PATCH v1 0/2] board: toradex: improve env badblock management for NAND variant boards

2021-10-22 Thread Francesco Dolcini
Hello Stefano, On Thu, Oct 21, 2021 at 01:08:16PM +0200, Francesco Dolcini wrote: > On Thu, Oct 21, 2021 at 12:16:33PM +0200, Stefano Babic wrote: > > On 01.09.21 09:48, Francesco Dolcini wrote: > > > > > > Use the complete 512kb (4 blocks) nand partition reserved f

Re: [PATCH v2] board: toradex: add verdin imx8m plus support

2021-10-22 Thread Francesco Dolcini
-module eMMC. U-Boot supports > booting from the on-module eMMC only, SDP support is disabled for now > due to missing i.MX 8M Plus USB support. > ... > Signed-off-by: Marcel Ziswiler Acked-by: Francesco Dolcini Francesco

[BUG] emmc `env erase` erase unrelated data

2021-11-29 Thread Francesco Dolcini
Hello, I noticed an issue with env erase command when environment is stored in a emmc device, in case start/end are not aligned to the emmc erase groups size additional data is erased with just a warning. ``` Erasing Environment on MMC... Caution! Your devices Erase group is 0x400 The erase

Re: [BUG] emmc `env erase` erase unrelated data

2021-11-29 Thread Francesco Dolcini
Hello Tom, On Mon, Nov 29, 2021 at 10:25:30AM -0500, Tom Rini wrote: > On Mon, Nov 29, 2021 at 02:21:23PM +0100, Francesco Dolcini wrote: > > I noticed an issue with env erase command when environment is stored in a > > emmc device, in case start/end are not aligned to the em

Question/issues about i.MX6 DDR configuration

2021-12-02 Thread Francesco Dolcini
Hello Fabio, Tim and all, in the last few weeks I have been debugging some sporadic i.MX6 board boot failures (2020.07 U-Boot, if that matters) and we have some loose indication that they could be RAM related. The effect is that SPL is not able to load U-Boot from the eMMC to DDR and

Re: Question/issues about i.MX6 DDR configuration

2021-12-03 Thread Francesco Dolcini
On Thu, Dec 02, 2021 at 05:56:38PM -0300, Fabio Estevam wrote: > The part that Francesco quoted: > > "A Precharge All command must be issued prior to the > MRW command to ensure robust DDR initialization. This > command is required to be issued to both chip selects if two > chip selects are

Re: Question/issues about i.MX6 DDR configuration

2021-12-03 Thread Francesco Dolcini
Hello Fabio and Michael, On Thu, Dec 02, 2021 at 09:36:44PM +0100, Michael Nazzareno Trimarchi wrote: > On Thu, Dec 2, 2021 at 9:14 PM Fabio Estevam wrote: > > On Thu, Dec 2, 2021 at 1:14 PM Francesco Dolcini > > wrote: > > > I'm a little bit puzzled at the momen

Re: Question/issues about i.MX6 DDR configuration

2021-12-06 Thread Francesco Dolcini
Hello Fabio, On Sat, Dec 04, 2021 at 11:29:23AM -0300, Fabio Estevam wrote: > Back to your original instability issue: I suppose you are talking > about colibri_imx6.c. Both colibri/apalis imx6 are somehow affected. > Does it work well if you convert it to the mx6_dram_cfg() scheme? I have not

Re: Question/issues about i.MX6 DDR configuration

2022-03-17 Thread Francesco Dolcini
Hello Fabio and everybody, just a quick update on this old email thread. On Thu, Dec 02, 2021 at 05:14:28PM +0100, Francesco Dolcini wrote: > In my tests adding 1ms delay after each MMDC register write seems to > have a positive effect and this is going into the direction that

Re: [PATCH] ARM: dts: colibri-imx6ull: fix mac address passing

2022-04-01 Thread Francesco Dolcini
On Fri, Apr 01, 2022 at 10:04:04AM -0400, Tom Rini wrote: > On Fri, Apr 01, 2022 at 02:01:25PM +, Marcel Ziswiler wrote: > > On Fri, 2022-04-01 at 09:43 -0400, Tom Rini wrote: > > > On Fri, Apr 01, 2022 at 12:57:40PM +, Marcel Ziswiler wrote: > > > > > > > May I inquire about the status

Re: [RFC PATCH 2/3] mx6: ddr: Wait before issuing the first MRS cmd

2022-04-04 Thread Francesco Dolcini
Hello Marek, thanks for your review. On Mon, Apr 04, 2022 at 03:39:35PM +0200, Marek Vasut wrote: > On 4/4/22 10:51, Francesco Dolcini wrote: > > Wait 1ms before issuing the first MRS command to write DDR3 Mode > > registers. > > > > There is a requirement to wait min

[RFC PATCH 3/3] board: apalis_imx6: DDR init using mx6_dram_cfg()

2022-04-04 Thread Francesco Dolcini
e relevant memory datasheet. For IT temperature range SKUs CL is decreased from 8 to 7 and tFAW value is increased, for commercial temperature range SKUs some minor changes on ODT parameters. Signed-off-by: Francesco Dolcini --- board/toradex/apalis_imx6/apalis_imx6.c | 439 ++

[RFC PATCH 1/3] mx6: ddr: Restore ralat/walat in write level calibration

2022-04-04 Thread Francesco Dolcini
Calibration). Fixes: d339f16911c7 ("arm: imx6: Add DDR3 calibration code for MX6 Q/D/DL") Signed-off-by: Francesco Dolcini --- arch/arm/mach-imx/mx6/ddr.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/mx6/ddr.c b/arch/arm/mach-imx/mx6/d

[RFC PATCH 0/3] Fix iMX6 DDR configuration issues and update toradex apalis-imx6

2022-04-04 Thread Francesco Dolcini
from different batches before asking for this to be merged. [0] https://lore.kernel.org/all/20211202161428.ga104...@francesco-nb.int.toradex.com/ Francesco Dolcini (3): mx6: ddr: Restore ralat/walat in write level calibration mx6: ddr: Wait before issuing the first MRS cmd board: apalis_imx6:

[RFC PATCH 2/3] mx6: ddr: Wait before issuing the first MRS cmd

2022-04-04 Thread Francesco Dolcini
. Fixes: fe0f7f7842e1 ("mx6: add mmdc configuration for MX6Q/MX6DL") Signed-off-by: Francesco Dolcini --- arch/arm/mach-imx/mx6/ddr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-imx/mx6/ddr.c b/arch/arm/mach-imx/mx6/ddr.c index 08e2f0f130a6..7b3d620094c4 100644

Re: [RFC PATCH 2/3] mx6: ddr: Wait before issuing the first MRS cmd

2022-04-05 Thread Francesco Dolcini
On Mon, Apr 04, 2022 at 09:56:50PM +0200, Marek Vasut wrote: > On 4/4/22 16:53, Francesco Dolcini wrote: > > On Mon, Apr 04, 2022 at 03:39:35PM +0200, Marek Vasut wrote: > > > > --- a/arch/arm/mach-imx/mx6/ddr.c > > > > +++ b/arch/arm/mach-imx/mx6/ddr.c &

[PATCH v1 1/2] mx6: ddr: Restore ralat/walat in write level calibration

2022-04-06 Thread Francesco Dolcini
Calibration). Fixes: d339f16911c7 ("arm: imx6: Add DDR3 calibration code for MX6 Q/D/DL") Signed-off-by: Francesco Dolcini Reviewed-by: Marek Vasut --- Changes in v1: - Add Reviewed-by: Marek Vasut ma...@denx.de --- arch/arm/mach-imx/mx6/ddr.c | 8 +++- 1 file changed, 7 insertions(+),

[PATCH v1 2/2] mx6: ddr: Wait before issuing the first MRS cmd

2022-04-06 Thread Francesco Dolcini
-cycle without a single failure. Fixes: fe0f7f7842e1 ("mx6: add mmdc configuration for MX6Q/MX6DL") Signed-off-by: Francesco Dolcini Reviewed-by: Marek Vasut --- Changes in v1: - Add Reviewed-by: Marek Vasut ma...@denx.de - Commit message and comments improvements, no code changes. ---

[PATCH v1 0/2] imx6 ddr initialization fixes

2022-04-06 Thread Francesco Dolcini
, no code changes. Francesco Dolcini (2): mx6: ddr: Restore ralat/walat in write level calibration mx6: ddr: Wait before issuing the first MRS cmd arch/arm/mach-imx/mx6/ddr.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) -- 2.25.1

RFC: Adding U-Boot version in FDT chosen node

2022-04-11 Thread Francesco Dolcini
Hello all, I have a need to pass the u-boot version string to the operating system and I'm thinking at adding `u-boot,version` property storing `version_string` in it in the FDT `chosen` node. Is this something that would be generally useful? Would be a patch like that acceptable in upstream

Re: [PATCH v1 1/2] verdin-am62: add u-boot update wrappers

2023-08-24 Thread Francesco Dolcini
2x-gp-verdin.bin > > run update_tiboot3 > > > tftpboot ${loadaddr} tispl.bin > > run update_tispl > > > tftpboot ${loadaddr} u-boot.img > > run update_uboot > > Signed-off-by: Emanuele Ghidoli Acked-by: Francesco Dolcini

Re: [PATCH v1 2/2] board: verdin-am62: fix check for minimum memory size

2023-08-24 Thread Francesco Dolcini
re > the module cannot work with less memory. > > Fixes: 7d1a10659f5b ("board: toradex: add verdin am62 support") > Signed-off-by: Emanuele Ghidoli Acked-by: Francesco Dolcini

Re: [PATCH v1 2/2] board: verdin-am62: fix check for minimum memory size

2023-08-24 Thread Francesco Dolcini
Hello Nishanth, On Thu, Aug 24, 2023 at 07:14:12AM -0500, Nishanth Menon wrote: > On 10:08-20230824, Emanuele Ghidoli wrote: > > From: Emanuele Ghidoli > > > > verdin am62 SKUs comes in multiple memory configuration, check that > > the detected memory is at least 512MB since we have some > >

Re: [PATCH v1 1/2] verdin-am62: add u-boot update wrappers

2023-08-24 Thread Francesco Dolcini
Hello Nishanth, On Thu, Aug 24, 2023 at 07:10:57AM -0500, Nishanth Menon wrote: > On 13:19-20230824, Francesco Dolcini wrote: > > On Thu, Aug 24, 2023 at 10:08:49AM +0200, Emanuele Ghidoli wrote: > > > From: Emanuele Ghidoli > > > > > > Add update_tiboot3, up

Re: [PATCH V5 02/17] include: configs: am62x_evm: Drop unused SDRAM address

2023-08-24 Thread Francesco Dolcini
On Thu, Aug 24, 2023 at 06:09:54PM +0200, Francesco Dolcini wrote: > On Thu, Aug 24, 2023 at 01:02:21PM +, Marcel Ziswiler wrote: > > On Thu, 2023-08-24 at 07:05 -0500, Nishanth Menon wrote: > > > On 10:13-20230824, Mattijs Korpershoek wrote: > > > > Hi Nishanth,

Re: [PATCH v1 2/2] board: verdin-am62: fix check for minimum memory size

2023-08-24 Thread Francesco Dolcini
On Thu, Aug 24, 2023 at 09:58:56AM -0500, Nishanth Menon wrote: > On 16:37-20230824, Francesco Dolcini wrote: > > Hello Nishanth, > > > > On Thu, Aug 24, 2023 at 07:14:12AM -0500, Nishanth Menon wrote: > > > On 10:08-20230824, Emanuele Ghidoli wrote:

Re: [PATCH V5 02/17] include: configs: am62x_evm: Drop unused SDRAM address

2023-08-24 Thread Francesco Dolcini
On Thu, Aug 24, 2023 at 01:02:21PM +, Marcel Ziswiler wrote: > On Thu, 2023-08-24 at 07:05 -0500, Nishanth Menon wrote: > > On 10:13-20230824, Mattijs Korpershoek wrote: > > > Hi Nishanth, > > > > > > On mer., août 23, 2023 at 22:10, Nishanth Menon wrote: > > > > > > > Drop unused macro.

Re: [PATCH 5/7] arm: mach-k3: am62x: Move board selection to mach-k3

2023-11-02 Thread Francesco Dolcini
Hello Andrew, On Wed, Nov 01, 2023 at 03:35:28PM -0500, Andrew Davis wrote: > Currently each set of board targets from a vendor is selected inside > the board directory for that vendor. This has the problem of multiple > targets, one from each vendor, being selectable at the same time. > For

Re: [PATCH] arm: mach-k3: Move K3 common schema.yaml out of board directory

2023-11-02 Thread Francesco Dolcini
ths which makes adding > non-TI boards (like Toradex Verdin) not need to override these paths. > > Signed-off-by: Andrew Davis Reviewed-by: Francesco Dolcini Francesco

Re: [PATCH V2 2/2] arm: mach-k3: Move TI dummy keys out of board folder

2023-11-04 Thread Francesco Dolcini
ile at it, drop the reference in verdin-binman file which is > redundant. > > Signed-off-by: Nishanth Menon Reviewed-by: Francesco Dolcini

Re: [PATCH V2 1/2] arm: mach-k3: Move K3 degenerate keys out of board folder

2023-11-04 Thread Francesco Dolcini
nman file which is > redundant. > > Signed-off-by: Nishanth Menon Reviewed-by: Francesco Dolcini Francesco

[PATCH] toradex: verdin-imx8mm/imx8mp: Remove bootcmd_mfg

2023-10-04 Thread Francesco Dolcini
From: Joao Paulo Goncalves The bootcmd_mfg env variable is legacy from IMX downstream u-boot branch and is not needed on mainline. Signed-off-by: Joao Paulo Goncalves Signed-off-by: Francesco Dolcini --- include/configs/verdin-imx8mm.h | 1 - include/configs/verdin-imx8mp.h | 1 - 2 files

Re: RFC: Adding U-Boot version in FDT chosen node

2022-04-20 Thread Francesco Dolcini
+Tom On Mon, Apr 11, 2022 at 08:17:55PM +0200, Francesco Dolcini wrote: > Hello all, > I have a need to pass the u-boot version string to the operating > system and I'm thinking at adding `u-boot,version` property storing > `version_string` in it in the FDT `chosen` node. > >

Re: RFC: Adding U-Boot version in FDT chosen node

2022-04-21 Thread Francesco Dolcini
Hello Mark On Wed, Apr 20, 2022 at 11:51:44PM +0200, Mark Kettenis wrote: > > Date: Wed, 20 Apr 2022 19:01:43 +0200 > > From: Francesco Dolcini > > > > +Tom > > > > On Mon, Apr 11, 2022 at 08:17:55PM +0200, Francesco Dolcini wrote: > > > Hell

Re: [RFC PATCH 1/1] arm: mach-k3: Enable icache on am625 to boot faster

2023-11-10 Thread Francesco Dolcini
On Thu, Nov 09, 2023 at 01:51:19PM -0500, Tom Rini wrote: > On Thu, Nov 09, 2023 at 12:44:56PM -0600, Andrew Davis wrote: > > On 11/9/23 11:37 AM, Nishanth Menon wrote: > > > On 11:09-20231109, Joao Paulo Goncalves wrote: > > > > Enable the am625 instruction cache on SPL and U-boot earlier for the

Re: [PATCH v1] ARM: imx8mp: verdin-imx8mp: Add memory size detection

2022-09-28 Thread Francesco Dolcini
On Wed, Sep 07, 2022 at 11:51:05AM +0200, Francesco Dolcini wrote: > Add RAM auto-sizing, without this change memory size for all SKU is set > to 8GB and the system will crash on SKU with less memory as soon as the > non existent memory addresses are accessed. > > Fixes: 2bc2f

Re: [PATCH v1] mtd: parsers: ofpart: Fix parsing when size-cells is 0

2023-01-05 Thread Francesco Dolcini
Hello Miquel, On Thu, Jan 05, 2023 at 12:33:34PM +0100, Miquel Raynal wrote: > miquel.ray...@bootlin.com wrote on Mon, 2 Jan 2023 10:40:04 +0100: > > france...@dolcini.it wrote on Fri, 16 Dec 2022 17:30:18 +0100: > > > On Fri, Dec 16, 2022 at 04:35:01PM +0100, Miquel Raynal wrote: > > > >

[PATCH v2 03/22] apalis-imx8: turn off lcd backlight before os handover

2023-01-13 Thread Francesco Dolcini
-by: Marcel Ziswiler Signed-off-by: Francesco Dolcini --- v2: no changes --- board/toradex/apalis-imx8/apalis-imx8.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/board/toradex/apalis-imx8/apalis-imx8.c b/board/toradex/apalis-imx8/apalis-imx8.c index

[PATCH v2 02/22] apalis-imx8: implement pcb version and soc variant handling

2023-01-13 Thread Francesco Dolcini
From: Marcel Ziswiler Implement PCB version and SoC variant handling which automatically loads the correct device tree for the Linux kernel. Signed-off-by: Marcel Ziswiler Signed-off-by: Andrejs Cainikovs Signed-off-by: Francesco Dolcini --- v2: added missing 8GB SKU --- board/toradex

[PATCH v2 00/22] apalis-imx8: boot issue fix and support refresh

2023-01-13 Thread Francesco Dolcini
From: Francesco Dolcini This series fixes a boot issue and refreshes Apalis iMX8 support as follows: - fix booting caused by missing DM_EVENT - implement PCB version and SoC variant handling - turn off LCD backlight before OS handover - display build info - provide proper prompt - set bootdelay

[PATCH v2 01/22] apalis-imx8: fix booting caused by missing dm_event

2023-01-13 Thread Francesco Dolcini
From: Marcel Ziswiler Without the DM_EVENT absolutely no output whatsoever and the system does not boot at all. Fixes: c5ef2025579e ("dm: fix DM_EVENT dependencies") Signed-off-by: Marcel Ziswiler Signed-off-by: Francesco Dolcini --- v2: no changes --- configs/apalis-imx8_defconfi

[PATCH v2 05/22] apalis-imx8: provide proper config_sys_prompt

2023-01-13 Thread Francesco Dolcini
From: Igor Opaniuk This provides correct system prompt for U-Boot console. Signed-off-by: Igor Opaniuk Signed-off-by: Marcel Ziswiler Signed-off-by: Francesco Dolcini --- v2: no changes --- configs/apalis-imx8_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/apalis

[PATCH v2 09/22] apalis-imx8: enable environment bootcount limit

2023-01-13 Thread Francesco Dolcini
From: Marcel Ziswiler Enable optional environment bootcount limit functionality. Signed-off-by: Marcel Ziswiler Signed-off-by: Francesco Dolcini --- v2: no changes --- configs/apalis-imx8_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/apalis-imx8_defconfig b/configs

[PATCH v2 06/22] apalis-imx8: set bootdelay

2023-01-13 Thread Francesco Dolcini
From: Marcel Ziswiler Set the boot delay to one second. Signed-off-by: Marcel Ziswiler Signed-off-by: Francesco Dolcini --- v2: no changes --- configs/apalis-imx8_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/apalis-imx8_defconfig b/configs/apalis-imx8_defconfig index

[PATCH v2 10/22] apalis-imx8: update spdx license identifier string

2023-01-13 Thread Francesco Dolcini
From: Marcel Ziswiler Update SPDX license identifier string. While at it also update copyright period. Signed-off-by: Marcel Ziswiler Signed-off-by: Francesco Dolcini --- v2: no changes --- arch/arm/dts/fsl-imx8qm-apalis.dts | 4 ++-- board/toradex/apalis-imx8/Makefile

[PATCH v2 04/22] apalis-imx8: display build info

2023-01-13 Thread Francesco Dolcini
From: Marcel Ziswiler Display build info with information about the version of SCFW, SECO and TF-A (ATF). Signed-off-by: Marcel Ziswiler Signed-off-by: Francesco Dolcini --- v2: no changes --- board/toradex/apalis-imx8/apalis-imx8.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board

[PATCH v2 07/22] apalis/colibri-imx8/8x: add overlay support for i.mx 8/8x-based soms

2023-01-13 Thread Francesco Dolcini
From: Oleksandr Suvorov There is no "apply" command enabled for "fdt". Enable "apply" command to allow overlays to be applied. Signed-off-by: Oleksandr Suvorov Signed-off-by: Marcel Ziswiler Signed-off-by: Francesco Dolcini --- v2: no changes --- confi

[PATCH v2 08/22] apalis/colibri-imx8/8x: remove global variable script

2023-01-13 Thread Francesco Dolcini
;script" to fix working the general distro boot script mechanism. Signed-off-by: Oleksandr Suvorov Signed-off-by: Marcel Ziswiler Signed-off-by: Francesco Dolcini --- v2: no changes --- include/configs/apalis-imx8.h | 1 - include/configs/colibri-imx8x.h | 1 - 2 files changed, 2 dele

[PATCH v2 17/22] board: apalis-imx8: get rid of sc_err_t type

2023-01-13 Thread Francesco Dolcini
From: Philippe Schenker sc_pm_setup_uart() returns int, not sc_err_t. Signed-off-by: Philippe Schenker Signed-off-by: Francesco Dolcini --- v2: new patch --- board/toradex/apalis-imx8/apalis-imx8.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/board/toradex

[PATCH v2 16/22] apalis-imx8: update env memory layout

2023-01-13 Thread Francesco Dolcini
l Ziswiler Signed-off-by: Francesco Dolcini --- v2: no changes --- configs/apalis-imx8_defconfig | 2 +- include/configs/apalis-imx8.h | 10 ++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/configs/apalis-imx8_defconfig b/configs/apalis-imx8_defconfig index 019846e1af22..8a

[PATCH v2 15/22] apalis-imx8: update update_uboot confirmation message

2023-01-13 Thread Francesco Dolcini
From: Marcel Ziswiler Update update_uboot confirmation message. Signed-off-by: Marcel Ziswiler Signed-off-by: Francesco Dolcini --- v2: no changes --- include/configs/apalis-imx8.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/apalis-imx8.h b/include

[PATCH v2 21/22] apalis-imx8: add M4 boot environment helpers

2023-01-13 Thread Francesco Dolcini
From: Andrejs Cainikovs Add M4 boot environment functions for reference. Signed-off-by: Andrejs Cainikovs Signed-off-by: Francesco Dolcini --- v2: new patch --- include/configs/apalis-imx8.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/include/configs/apalis-imx8.h b

[PATCH v2 20/22] apalis-imx8: set bootaux memory base and size

2023-01-13 Thread Francesco Dolcini
From: Andrejs Cainikovs Set i.MX auxiliary core memory base and size. Signed-off-by: Andrejs Cainikovs Signed-off-by: Francesco Dolcini --- v2: new patch --- configs/apalis-imx8_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/apalis-imx8_defconfig b/configs/apalis

[PATCH v2 19/22] board: apalis-imx8: initialize snvs

2023-01-13 Thread Francesco Dolcini
From: Andrejs Cainikovs Initialize Secure Non-Volatile Storage, aka SNVS. Signed-off-by: Andrejs Cainikovs Signed-off-by: Francesco Dolcini --- v2: new patch --- board/toradex/apalis-imx8/apalis-imx8.c | 8 1 file changed, 8 insertions(+) diff --git a/board/toradex/apalis-imx8

[PATCH v2 18/22] board: apalis-imx8: remove board_phy_config duplicate

2023-01-13 Thread Francesco Dolcini
From: Andrejs Cainikovs Remove a duplicate of weak board_phy_config() implementation in drivers/net/phy/phy.c. Signed-off-by: Andrejs Cainikovs Signed-off-by: Francesco Dolcini --- v2: new patch --- board/toradex/apalis-imx8/apalis-imx8.c | 12 1 file changed, 12 deletions

[PATCH v2 22/22] apalis-imx8: add emmc/mmc card pinctrl's for different speeds

2023-01-13 Thread Francesco Dolcini
From: Andrejs Cainikovs Add pinctrl's for high speed eMMC and MMC cards. Signed-off-by: Andrejs Cainikovs Signed-off-by: Philippe Schenker Signed-off-by: Francesco Dolcini --- v2: new patch --- arch/arm/dts/fsl-imx8qm-apalis.dts | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions

Re: [PATCH v1 00/16] apalis-imx8: boot issue fix and support refresh

2023-01-13 Thread Francesco Dolcini
Hello Stefano, Marcel and all On Fri, Jan 13, 2023 at 02:28:12PM +0100, Stefano Babic wrote: > On 10.01.23 11:00, Marcel Ziswiler wrote: > > Any feedback? > > > > @Stefano: Any plans to apply anything? > > I am not in my office until 23.1, I won't be able to do any merge / PR > before I will be

[PATCH v2 14/22] apalis-imx8: drop obsolete environment variables

2023-01-13 Thread Francesco Dolcini
From: Marcel Ziswiler Drop obsolete environment variables fdt_addr, finduuid, boot_file, mmcargs, mmcdev, mmcpart and panel. Signed-off-by: Marcel Ziswiler Signed-off-by: Andrejs Cainikovs Signed-off-by: Francesco Dolcini --- v2: remove additional boot_file variable --- include/configs

[PATCH v2 11/22] apalis-imx8: remove obsolete sdhc related config defines

2023-01-13 Thread Francesco Dolcini
From: Marcel Ziswiler Remove obsolete SDHC related config defines. Nowadays, all SDHC related hardware configuration comes from the device tree. Signed-off-by: Marcel Ziswiler Signed-off-by: Francesco Dolcini --- v2: no changes --- include/configs/apalis-imx8.h | 9 - 1 file changed

[PATCH v2 13/22] apalis-imx8: introduce setup setting setupargs

2023-01-13 Thread Francesco Dolcini
From: Marcel Ziswiler Introduce setup setting setupargs and move earlycon there. Signed-off-by: Marcel Ziswiler Signed-off-by: Francesco Dolcini --- v2: no changes --- include/configs/apalis-imx8.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/configs/apalis

[PATCH v2 12/22] apalis-imx8: remove obsolete net usb start

2023-01-13 Thread Francesco Dolcini
From: Marcel Ziswiler Remove obsolete net USB start. While at it also add a comment about enabling distro-boot. Signed-off-by: Marcel Ziswiler Signed-off-by: Francesco Dolcini --- v2: no changes --- include/configs/apalis-imx8.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

[PATCH v1 1/3] fdt: validate/fix cells count on mtdpart fixup

2023-01-13 Thread Francesco Dolcini
From: Francesco Dolcini Fixup #size-cells value when updating the MTD partitions, this is required to prevent issues in case the MTD parent set #size-cells to zero. This could happen for example in the legacy case in which the partitions are created as direct child of the mtd node

[PATCH v1 3/3] colibri-imx6ull: specify MTD partitions on command line

2023-01-13 Thread Francesco Dolcini
From: Francesco Dolcini Disable fdt_fixup_mtdparts(), instead pass MTD partition on the command line. This is the preferred method to be used when partitions are not statically defined into the DTS according the Linux MTD subsystem maintainer. Cc: Marek Vasut Cc: Miquel Raynal Link: https

[PATCH v2] mtd: parsers: ofpart: add workaround for #size-cells 0

2023-01-13 Thread Francesco Dolcini
From: Francesco Dolcini Add a mechanism to handle the case in which partitions are present as direct child of the nand controller node and #size-cells is set to <0>. This could happen if the nand-controller node in the DTS is supposed to have #size-cells set to 0, but for some historical

[PATCH v1 2/3] colibri-imx7: specify MTD partitions on command line

2023-01-13 Thread Francesco Dolcini
From: Francesco Dolcini Disable fdt_fixup_mtdparts(), instead pass MTD partition on the command line. This is the preferred method to be used when partitions are not statically defined into the DTS according the Linux MTD subsystem maintainer. Cc: Marek Vasut Cc: Miquel Raynal Link: https

[PATCH v1 0/3] fdt: Fix mtparts fixup

2023-01-13 Thread Francesco Dolcini
From: Francesco Dolcini Recently we had a boot regression on colibri-imx7 because of a cleanup change on Linux imx7.dtsi setting nand controller node #size-cells from 1 to 0. Because of that Linux partition parser was no longer able to properly parse the OF partitions leading to a boot failure

Re: [PATCH v1] mtd: parsers: ofpart: Fix parsing when size-cells is 0

2022-12-02 Thread Francesco Dolcini
On Fri, Dec 02, 2022 at 05:17:59PM +0100, Marek Vasut wrote: > On 12/2/22 16:49, Miquel Raynal wrote: > > , not the NAND controller node. I hope this > > is correctly supported in U-Boot though. So if there is a NAND chip > > subnode, I suppose U-Boot would try to create the partitions that are >

Re: [PATCH v1] mtd: parsers: ofpart: Fix parsing when size-cells is 0

2022-12-02 Thread Francesco Dolcini
On Fri, Dec 02, 2022 at 05:42:55PM +0100, Miquel Raynal wrote: > Please also do it with the NAND chip described. If, when the NAND chip > is described U-Boot tries to create partitions in the controller node, > then the situation is even worse than I thought. But I believe It's like that for

Re: [PATCH v1] mtd: parsers: ofpart: Fix parsing when size-cells is 0

2022-12-05 Thread Francesco Dolcini
Hello Miquel On Fri, Dec 02, 2022 at 06:20:02PM +0100, Francesco Dolcini wrote: > On Fri, Dec 02, 2022 at 05:42:55PM +0100, Miquel Raynal wrote: > > Please also do it with the NAND chip described. If, when the NAND chip > > is described U-Boot tries to create partitions in the

Re: [PATCH v1] mtd: parsers: ofpart: Fix parsing when size-cells is 0

2022-12-05 Thread Francesco Dolcini
On Fri, Dec 02, 2022 at 06:08:22PM +0100, Marek Vasut wrote: > But here I would say this is a firmware bug and it might have to be handled > like a firmware bug, i.e. with fixup in the partition parser. I seem to be > changing my opinion here again. I was thinking at this over the weekend, and I

Re: [PATCH v1] mtd: parsers: ofpart: Fix parsing when size-cells is 0

2022-12-15 Thread Francesco Dolcini
On Fri, Dec 16, 2022 at 01:36:03AM +0100, Marek Vasut wrote: > On 12/15/22 09:04, Miquel Raynal wrote: > > > > That would fix all cases and only have an impact on the affected > > > > boards. > > > > > > Sadly, it does only fix the known cases, not the unknown cases > > > like downstream forks

Re: [PATCH v1] mtd: parsers: ofpart: Fix parsing when size-cells is 0

2022-12-15 Thread Francesco Dolcini
Hello Marek and Miquel, On Thu, Dec 15, 2022 at 08:16:04AM +0100, Miquel Raynal wrote: > So my first first idea was to avoid using the broken "fixup mtdparts" > function in U-Boot and I am still convinced this is what we should do > in priority. This is something that was already discussed, but

Re: [PATCH v1] mtd: parsers: ofpart: Fix parsing when size-cells is 0

2022-12-16 Thread Francesco Dolcini
On Fri, Dec 16, 2022 at 12:01:55PM +0100, Miquel Raynal wrote: > ma...@denx.de wrote on Fri, 16 Dec 2022 11:46:18 +0100: > > On 12/16/22 08:45, Francesco Dolcini wrote: > > > On Thu, Dec 15, 2022 at 08:16:04AM +0100, Miquel Raynal wrote: > > >> I am still agai

Re: [PATCH v1] mtd: parsers: ofpart: Fix parsing when size-cells is 0

2022-12-16 Thread Francesco Dolcini
On Fri, Dec 16, 2022 at 04:35:01PM +0100, Miquel Raynal wrote: > ma...@denx.de wrote on Fri, 16 Dec 2022 15:32:28 +0100: > > The second part of the message, as far as I understand it, is > > "ignore problems this will cause to users of boards we do not know > > about, let them run into unbootable

Re: [PATCH v1] mtd: parsers: ofpart: Fix parsing when size-cells is 0

2022-12-02 Thread Francesco Dolcini
+ u-boot list On Fri, Dec 02, 2022 at 11:53:27AM +0100, Miquel Raynal wrote: > france...@dolcini.it wrote on Fri, 2 Dec 2022 11:24:29 +0100: > > On Fri, Dec 02, 2022 at 11:12:43AM +0100, Francesco Dolcini wrote: > > > On Fri, Dec 02, 2022 at 10:14:18AM +0100, Miquel Raynal wrote

Re: [PATCH v4 1/1] u-boot-initial-env: rework make target

2022-11-17 Thread Francesco Dolcini
On Tue, Nov 08, 2022 at 06:09:11PM +0100, Pali Rohár wrote: > On Tuesday 08 November 2022 09:52:22 Max Krummenacher wrote: > > From: Max Krummenacher > > > > With LTO enabled the U-Boot initial environment is no longer stored > > in an easy accessible section in env/common.o. I.e. the section

Re: Boot failure regression on 6.0.10 stable kernel on iMX7

2022-12-01 Thread Francesco Dolcini
+ u-boot list On Thu, Dec 01, 2022 at 12:25:34PM +0100, Marek Vasut wrote: > On 12/1/22 12:03, Francesco Dolcini wrote: > > On Wed, Nov 30, 2022 at 11:59:04PM +0100, Marek Vasut wrote: > > > On 11/30/22 21:51, Francesco Dolcini wrote: > > > > On Wed, Nov 30, 2022 at

Re: [PATCH v1 2/3] colibri-imx7: specify MTD partitions on command line

2023-01-16 Thread Francesco Dolcini
On Sun, Jan 15, 2023 at 03:33:25PM +0100, Marek Vasut wrote: > On 1/13/23 19:45, Francesco Dolcini wrote: > > From: Francesco Dolcini > > > > Disable fdt_fixup_mtdparts(), instead pass MTD partition on the command > > line. This is the preferred method

Re: [PATCH v2 10/22] apalis-imx8: update spdx license identifier string

2023-01-16 Thread Francesco Dolcini
On Sat, Jan 14, 2023 at 12:27:11PM -0500, Tom Rini wrote: > On Fri, Jan 13, 2023 at 06:17:39PM +0100, Francesco Dolcini wrote: > > > From: Marcel Ziswiler > > > > Update SPDX license identifier string. > > > > While at it also update copyright period. >

Re: [PATCH v2 01/22] apalis-imx8: fix booting caused by missing dm_event

2023-01-16 Thread Francesco Dolcini
2023 at 08:27:25AM -0500, Tom Rini wrote: > > > > > On Sat, Jan 14, 2023 at 08:25:19AM -0300, Fabio Estevam wrote: > > > > > > Hi Francesco, > > > > > > > > > > > > On Fri, Jan 13, 2023 at 2:18 PM Francesco Dolcini > >

Re: [PATCH v1 1/3] fdt: validate/fix cells count on mtdpart fixup

2023-01-16 Thread Francesco Dolcini
On Mon, Jan 16, 2023 at 06:54:44PM +0100, Marek Vasut wrote: > On 1/16/23 15:20, Francesco Dolcini wrote: > > On Sun, Jan 15, 2023 at 03:35:25PM +0100, Marek Vasut wrote: > > > On 1/13/23 19:45, Francesco Dolcini wrote: > > > > From: Francesco Dolcini > > >

Re: [PATCH v1 1/3] fdt: validate/fix cells count on mtdpart fixup

2023-01-16 Thread Francesco Dolcini
On Sun, Jan 15, 2023 at 03:35:25PM +0100, Marek Vasut wrote: > On 1/13/23 19:45, Francesco Dolcini wrote: > > From: Francesco Dolcini > > > > Fixup #size-cells value when updating the MTD partitions, this is > > required to prevent issues in case the MTD parent

[PATCH v3 03/20] apalis-imx8: display build info

2023-01-16 Thread Francesco Dolcini
From: Marcel Ziswiler Display build info with information about the version of SCFW, SECO and TF-A (ATF). Signed-off-by: Marcel Ziswiler Signed-off-by: Francesco Dolcini Reviewed-by: Fabio Estevam --- v3: added Reviewed-by: Fabio v2: no changes --- board/toradex/apalis-imx8/apalis-imx8.c

[PATCH v3 02/20] apalis-imx8: turn off lcd backlight before os handover

2023-01-16 Thread Francesco Dolcini
-by: Marcel Ziswiler Signed-off-by: Francesco Dolcini Reviewed-by: Fabio Estevam --- v3: added Reviewed-by: Fabio v2: no changes --- board/toradex/apalis-imx8/apalis-imx8.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/board/toradex/apalis-imx8/apalis-imx8.c

[PATCH v3 05/20] apalis-imx8: set bootdelay

2023-01-16 Thread Francesco Dolcini
From: Marcel Ziswiler Set the boot delay to one second. Signed-off-by: Marcel Ziswiler Signed-off-by: Francesco Dolcini Reviewed-by: Fabio Estevam --- v3: added Reviewed-by: Fabio v2: no changes --- configs/apalis-imx8_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs

  1   2   3   >