Re: [PATCH] ARM: i.MX8MM: Consolidate common code to load image and jump to it via TF-A

2022-07-06 Thread Uwe Kleine-König
On Wed, Jul 06, 2022 at 02:01:35PM +0200, Marco Felsch wrote: > Hi Uwe, > > thanks for the patch. > > On 22-07-06, Uwe Kleine-König wrote: > > ... > > > @@ -96,11 +92,6 @@ extern struct dram_timing_info imx8mm_evk_dram_timing; > > > > static void start_atf(void) > > { > > - size_t bl31_si

[PATCH 4/4] ARM: i.MX8MN: pass along correct DT depending on variant

2022-07-06 Thread Marco Felsch
From: Ahmad Fatoum We support two different i.MX8MN variants of the i.MX8MN-EVK: One with LPDDR4 and another with DDR4, each with a different PMIC. The PMICs are at different i2c addresses, which allows us to differentiate between the variants in PBL, but in barebox proper, we use the same DT for

[PATCH 3/4] usb: chipidea: imx: call enable_clk after all resources are requested

2022-07-06 Thread Marco Felsch
Currently we enable the clock immediately after requesting it and leave it on the whole time. Afterwards if the phy request is failing we leave the usb-controller <-> usb-phy connection in a partly initialized state. At least on i.MX8M SoCs this can cause strange system hangs during boot. The (mor

[PATCH 2/4] phy: propagate error in of_phy_get_by_phandle

2022-07-06 Thread Marco Felsch
Don't return -ENODEV if of_phy_provider_lookup() fails instead propagate the error. So errors like -EPROBE_DEFER are propagated correctly. Signed-off-by: Marco Felsch --- drivers/phy/phy-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/phy-core.c b/drivers/p

[PATCH 0/4] MX8MN-EVK DDR4 Support

2022-07-06 Thread Marco Felsch
Hi, this small series adds the correct DDR4 support for the imx8mn-evk since till now we misused the LPDDR4 DT for it. Before applying Ahmads patch the preceding patches must be applied else the deep probe support will cause odd boot issues. Regards, Marco Ahmad Fatoum (1): ARM: i.MX8MN: pa

[PATCH 1/4] phy: fix deep probe support

2022-07-06 Thread Marco Felsch
Commit 9474a29003 ("phy: Add deep probe support") added the deep probe support but this commit was missing the of_phy_get_by_phandle() isn't calling the internal _of_phy_get() helper. Fix this by moving the of_device_ensure_probed() call into the of_phy_provider_lookup() helper which gets called by

[PATCH] console: add new CONSOLE_FULL_BUFFERSIZE option

2022-07-06 Thread Marco Felsch
Make the early printk buffer size adjustable since I noticed truncated log buffers if I enable DEBUG_INITCALLS and DEBUG_PROBES. Signed-off-by: Marco Felsch --- common/Kconfig | 15 +++ common/console.c | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/common/

Re: [PATCH] ARM: i.MX8MM: Consolidate common code to load image and jump to it via TF-A

2022-07-06 Thread Marco Felsch
Hi Uwe, thanks for the patch. On 22-07-06, Uwe Kleine-König wrote: ... > @@ -96,11 +92,6 @@ extern struct dram_timing_info imx8mm_evk_dram_timing; > > static void start_atf(void) > { > - size_t bl31_size; > - const u8 *bl31; > - enum bootsource src; > - int instance; > - >

[PATCH] ARM: i.MX8MM: Consolidate common code to load image and jump to it via TF-A

2022-07-06 Thread Uwe Kleine-König
Signed-off-by: Uwe Kleine-König --- arch/arm/boards/nxp-imx8mm-evk/lowlevel.c | 41 + .../boards/protonic-imx8m/lowlevel-prt8mm.c | 35 +-- arch/arm/mach-imx/atf.c | 44 +++ include/soc/imx8m.h | 8