Pull request for u-boot-nand-03082025

2025-08-04 Thread Michael Nazzareno Trimarchi
d/nand/raw/octeontx_bch.h delete mode 100644 drivers/mtd/nand/raw/octeontx_bch_regs.h delete mode 100644 drivers/mtd/nand/raw/octeontx_nand.c -- Michael Nazzareno Trimarchi Co-Founder & Chief Executive Officer M. +39 347 913 2170 mich...@amarulasolutions.com _

Re: [PATCH v2] cmd: mtd: Enable speed benchmarking

2025-08-04 Thread Michael Nazzareno Trimarchi
> Read speed: 3752kiB/s > > Signed-off-by: Miquel Raynal > --- > Changes in v2: > * Use an unsigned long as advised by Michael for accounting time. > --- > cmd/mtd.c | 15 ++- > 1 file changed, 14 insertions(+), 1 deletion(-) > > diff --git a/cmd/mt

Re: [PATCH v2] mtd: nand: raw: Remove unused octeontx_nand driver

2025-08-03 Thread Michael Nazzareno Trimarchi
00644 drivers/mtd/nand/raw/octeontx_bch.c > delete mode 100644 drivers/mtd/nand/raw/octeontx_bch.h > delete mode 100644 drivers/mtd/nand/raw/octeontx_bch_regs.h > delete mode 100644 drivers/mtd/nand/raw/octeontx_nand.c > > Reviewed-by: Michael Trimarchi diff --git a/drivers/mtd

Re: [PATCH] mtd: nand: raw: Remove unused lpc32xx_nand_slc driver

2025-08-03 Thread Michael Nazzareno Trimarchi
> drivers/mtd/nand/raw/Makefile | 1 - > drivers/mtd/nand/raw/lpc32xx_nand_slc.c| 587 - > 4 files changed, 2 insertions(+), 614 deletions(-) > delete mode 100644 drivers/mtd/nand/raw/lpc32xx_nand_slc.c > > Reviewed-By: Michael Trimarchi

Re: [PATCH 1/3] mtd: nand: pxa3xx: Free memory on error

2025-08-03 Thread Michael Nazzareno Trimarchi
r_err("pxa3xx driver supports single CS only\n"); > + kfree(pdata); > return -EINVAL; > } > Reviewed-by: MIchael Trimarchi > > > -- > 2.39.5 > > -- Michael Nazzareno Trimarchi Co-Founder & Chief Executive Officer M.

Re: [PATCH 3/3] mtd: rawnand: mxs_nand: Ensure err is set for error path

2025-08-03 Thread Michael Nazzareno Trimarchi
L); > + if (err) > goto err_free_buffers; > > - if (mxs_nand_setup_ecc(mtd)) > + err = mxs_nand_setup_ecc(mtd); > + if (err) > goto err_free_buffers; > > nand->ecc.read_page = mxs_nand_ecc_read_page; > > Reviewed-

Re: [PATCH 2/3] mtd: rawnand: denali: Remove always true test

2025-08-03 Thread Michael Nazzareno Trimarchi
time_left) { > - dev_err(denali->dev, "timeout while waiting for irq > 0x%x\n", > - irq_mask); > - return 0; > - } > - > - return denali->irq_status; > + dev_err(denali->dev, "timeout while

Re: [PATCH 1/3] mtd: rawnand: cortina_nand: Fix -ENOMEM detection

2025-08-03 Thread Michael Nazzareno Trimarchi
CA_DMA_DESC_NUM)); > + if (!info->rx_desc) { > printf("Fail to alloc DMA descript!\n"); > kfree(info->tx_desc); > return -ENOMEM; > > Reviewed-by: Michael Trimarchi >

Re: [PATCH 3/3] mtd: nand: sunxi: Free allocated memory on errors

2025-08-03 Thread Michael Nazzareno Trimarchi
gt; > ret = sunxi_nand_ecc_init(mtd, &nand->ecc); > if (ret) { > dev_err(dev, "ECC init failed: %d\n", ret); > + kfree(chip); > return ret; > } > > ret = nand_scan_tail(mtd); > if

Re: [PATCH] mtd: nand: raw: Remove unused mxic_nand driver

2025-07-11 Thread Michael Nazzareno Trimarchi
gt; -{ > - struct mxic_nand_ctrl *nfc = dev_get_priv(dev); > - struct nand_chip *nand_chip = &nfc->nand_chip; > - struct mtd_info *mtd; > - ofnode child; > - int err; > - > - nfc->regs = dev_read_addr_ptr(dev); > - > - n

Re: [PATCH] mach-k3: am62*: am62*_init: Prohibit boot from UDA w/ eMMC boot

2025-07-11 Thread Michael Nazzareno Trimarchi
have limited size that does not allow to have all the TI ecosystem on boot partition and then you must use the the rest of emmc. Booting from this scenario is totally fine Michael > > > Thanks for the fix, > Anshul >

[PATCH 1/2] configs/imx6ulz_smm_m2b_defconfig: Enable clock framework

2025-07-08 Thread Michael Trimarchi
Enable the clock framework on the m2b platform as was done in m2 variant. This helps to increase the NAND controller performance. Signed-off-by: Michael Trimarchi --- configs/imx6ulz_smm_m2b_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/imx6ulz_smm_m2b_defconfig b

[PATCH 2/2] configs: imx6ulz_smm_m2b: Add board watchdog reset configuration

2025-07-08 Thread Michael Trimarchi
Add the configuration that allow to reset the board from reset cmd Signed-off-by: Michael Trimarchi --- configs/imx6ulz_smm_m2b_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/imx6ulz_smm_m2b_defconfig b/configs/imx6ulz_smm_m2b_defconfig index 3d7530431fd..36f5922ea10

Re: [PATCH v6 0/3] Static initcalls

2025-07-05 Thread Michael Nazzareno Trimarchi
Hi On Fri, Jul 4, 2025 at 3:33 PM Fabio Estevam wrote: > > Hi Michael, > > On Fri, Jul 4, 2025 at 5:37 AM Michael Nazzareno Trimarchi > wrote: > > > We have problems that our board crashes with display enabled when this > > series is applied but we can boot > &g

Re: [PATCH v6 0/3] Static initcalls

2025-07-04 Thread Michael Nazzareno Trimarchi
223 > >> ++- > >> common/board_r.c | 247 > >> +++------- > >> include/initcall.h| 49 +++--- > >> lib/Makefile | 1 - > &g

Re: [PATCH] cmd: mtd: Enable speed benchmarking

2025-07-03 Thread Michael Nazzareno Trimarchi
int do_mtd_io(struct cmd_tbl *cmdtp, int flag, > int argc, > io_op.oobbuf += io_op.oobretlen; > } > > + if (benchmark && bench_start) { > + bench_end = timer_get_us(); > + printf("%s speed: %lukiB/s\n", > +

Re: [PATCH v2 3/4] mtd: nand: Add support for EDO mode 1-5 to IMX6ULL platform

2025-06-27 Thread Michael Nazzareno Trimarchi
Hi Fabio Are you going to pick up my last series? Michael On Mon, May 26, 2025 at 10:01 PM Michael Nazzareno Trimarchi wrote: > > Hi Fabio > > On Mon, May 26, 2025 at 9:58 PM Fabio Estevam wrote: > > > > Hi Michael, > > > > On Mon, May 26, 2025 at

Re: [PATCH v1 1/2] mtd: nand: Allow full NAND framework in SPL

2025-06-20 Thread Michael Nazzareno Trimarchi
then we add more. But given all of the other options we > have in common/spl/Kconfig right now for NAND, I'm unclear about what is > missing today. I have already rejected this patch for this specific option, because you can always select and this board or family are the only consumer

Re: [PATCH v2] env: mmc: fix offsets relative to the end of the partition

2025-06-10 Thread Michael Walle
gned s64 variable. Also I've just noticed, that env/sf.c uses ulong to store ENV_OFFSET. -michael

Re: [PATCH v2] env: mmc: fix offsets relative to the end of the partition

2025-06-06 Thread Michael Walle
just found your reply by accident. -michael

[PATCH v2] env: mmc: fix offsets relative to the end of the partition

2025-06-05 Thread Michael Walle
n. Introduce a new boolean kconfig option to switch on the "relative to the end" behavior. Signed-off-by: Michael Walle --- v2: - made the Kconfig help text clearer on MMC hardware partitions. I've used the term "MMC hardware partition" as it was already used in s

Re: [PATCH v2 04/13] clk: add CONFIG_CLK_AUTO_ID

2025-06-03 Thread Michael Nazzareno Trimarchi
Hi On Wed, Jun 4, 2025 at 8:48 AM Michael Nazzareno Trimarchi wrote: > > Hi Patrice > > On Wed, Jun 4, 2025 at 8:46 AM Patrice CHOTARD > wrote: > > > > > > > > On 6/4/25 08:14, Michael Nazzareno Trimarchi wrote: > > > Hi > > > > >

Re: [PATCH v2 04/13] clk: add CONFIG_CLK_AUTO_ID

2025-06-03 Thread Michael Nazzareno Trimarchi
Hi Patrice On Wed, Jun 4, 2025 at 8:46 AM Patrice CHOTARD wrote: > > > > On 6/4/25 08:14, Michael Nazzareno Trimarchi wrote: > > Hi > > > > On Wed, Jun 4, 2025 at 8:02 AM Patrice CHOTARD > > wrote: > >> > >> > >> > >&g

Re: [PATCH v2 04/13] clk: add CONFIG_CLK_AUTO_ID

2025-06-03 Thread Michael Nazzareno Trimarchi
nline bool clk_dev_binded(struct clk *clk) > > { > > return false; > > } > > + > > +static inline ulong clk_get_id(const struct clk *clk) > > +{ > > + return 0; > > +} > > #endif /* CONFIG_IS_ENABLED(CLK) */ > > > > /** >

[PATCH v3] bsh: imx6ulz_smm_m2: Add imx6ulz BSH SMM M2B board

2025-05-31 Thread Michael Trimarchi
s for selective inclusion of the desired memory components. Signed-off-by: Michael Trimarchi --- Changes in v3: - Fix typo in MAINTAINERS - Pipeline https://dev.azure.com/u-boot/u-boot/_build/results?buildId=11274&view=results Changes in v2: - Ajust commit message and kconfig - Add MAINTAINERS e

Re: [PATCH v3 1/4] clk: imx: add i.MX6UL clk driver

2025-05-30 Thread Michael Nazzareno Trimarchi
Hi Il ven 30 mag 2025, 20:14 Christoph Niedermaier < cniederma...@dh-electronics.com> ha scritto: > Hello, > > From: Michael Nazzareno Trimarchi > Sent: Friday, May 30, 2025 5:12 PM > Subject: Re: [PATCH v3 1/4] clk: imx: add i.MX6UL clk driver > > [...] > &

[PATCH v4 1/4] clk: imx: add i.MX6UL clk driver

2025-05-30 Thread Michael Trimarchi
Add i.MX6UL clk driver for i.MX6UL CLK driver model usage Reviewed-by: Peng Fan Reviewed-by: Christoph Niedermaier Tested-by: Christoph Niedermaier Signed-off-by: Michael Trimarchi --- Changes in v4: - Fix Kconfig typo - Fix IPG clock duplication - Add space for consistency in block - and

[PATCH v4 3/4] mtd: nand: Add support for EDO mode 1-5 to IMX6ULL platform

2025-05-30 Thread Michael Trimarchi
The clock driver allows to boost the NAND performance controller. Make changes to let it use the new clock driver => time nand read ${loadaddr} kernel NAND read: device 0 offset 0x50, size 0x80 8388608 bytes read: OK time: 0.488 seconds Signed-off-by: Michael Trimarchi --- Chan

[PATCH v4 4/4] configs/imx6ulz_smm_m2_defconfig: Enable clock framework

2025-05-30 Thread Michael Trimarchi
Enable the clock framework on the m2 platform. This helps to increase the NAND controller performance. Signed-off-by: Michael Trimarchi --- Changes in v4: - None Changes in v3: - None Changes in v2: - Ajust commit message - drop CONFIG_DM_MTD selected already by MXS_NAND_DT configs

[PATCH v4 2/4] mtd: mxs_nand_dt: Move from clk_get/clk_enable to clk_bulk api

2025-05-30 Thread Michael Trimarchi
Make simple the clock registration and enable and allow later to add support for other platforms Signed-off-by: Michael Trimarchi --- Changes in v4: - None Changes in v3: - None Changes in v2: - no changes drivers/mtd/nand/raw/mxs_nand_dt.c | 48 -- 1 file

Re: [PATCH v3 1/4] clk: imx: add i.MX6UL clk driver

2025-05-30 Thread Michael Nazzareno Trimarchi
Hi On Fri, May 30, 2025 at 4:46 PM Christoph Niedermaier wrote: > > Hello, > First of all, thank you very much. Resend is not a problem. I'm doing other things in parallel, so I was not pay attention properly > From: Michael Trimarchi > Sent: Thursday, May 29, 2025 7:10 AM

[PATCH v3 3/4] mtd: nand: Add support for EDO mode 1-5 to IMX6ULL platform

2025-05-29 Thread Michael Trimarchi
The clock driver allows to boost the NAND performance controller. Make changes to let it use the new clock driver => time nand read ${loadaddr} kernel NAND read: device 0 offset 0x50, size 0x80 8388608 bytes read: OK time: 0.488 seconds Signed-off-by: Michael Trimarchi --- Chan

[PATCH v3 4/4] configs/imx6ulz_smm_m2_defconfig: Enable clock framework

2025-05-28 Thread Michael Trimarchi
Enable the clock framework on the m2 platform. This helps to increase the NAND controller performance. Signed-off-by: Michael Trimarchi --- Changes in v3: - None Changes in v2: - Ajust commit message - drop CONFIG_DM_MTD selected already by MXS_NAND_DT configs/imx6ulz_smm_m2_defconfig | 2

[PATCH v3 2/4] mtd: mxs_nand_dt: Move from clk_get/clk_enable to clk_bulk api

2025-05-28 Thread Michael Trimarchi
Make simple the clock registration and enable and allow later to add support for other platforms Signed-off-by: Michael Trimarchi --- Changes in v3: - None Changes in v2: - no changes drivers/mtd/nand/raw/mxs_nand_dt.c | 48 -- 1 file changed, 5 insertions(+), 43

[PATCH v3 1/4] clk: imx: add i.MX6UL clk driver

2025-05-28 Thread Michael Trimarchi
Add i.MX6UL clk driver for i.MX6UL CLK driver model usage Reviewed-by: Peng Fan Signed-off-by: Michael Trimarchi --- Changes in v3: - Add all uarts definition - Move OSC on top suggested - Drop an invalid clock definition - Move some pll before they are referenced Changes in v2: - None

Re: [PATCH v2 1/4] clk: imx: add i.MX6UL clk driver

2025-05-28 Thread Michael Nazzareno Trimarchi
Hi On Wed, May 28, 2025 at 8:12 PM Christoph Niedermaier wrote: > > From: U-Boot On Behalf Of Michael Trimarchi > Sent: Monday, May 26, 2025 9:48 PM > > Hello, > > > Subject: [PATCH v2 1/4] clk: imx: add i.MX6UL clk driver > > > > Add i.MX6UL clk drive

[PATCH v2] bsh: imx6ulz_smm_m2: Add imx6ulz BSH SMM M2B board

2025-05-27 Thread Michael Trimarchi
s for selective inclusion of the desired memory components. Signed-off-by: Michael Trimarchi --- Changes in v2: - Ajust commit message and kconfig - Add MAINTAINERS entry just for configuration file board/bsh/imx6ulz_smm_m2/Kconfig | 21 +++ board/bsh/imx6ulz_smm_m2/MAINTAINERS

Synced invitation: U-Boot community meeting @ Every 2 weeks from 5pm to 6pm on Tuesday (CEST) (u-boot@lists.denx.de)

2025-05-27 Thread Michael Nazzareno Trimarchi
:mailto:korg.su...@gmail.com ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE ;CN=Michael Nazzareno Trimarchi;X-NUM-GUESTS=0:mailto:michael@amarulasoluti ons.com ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=s...@chromium.org;X-NUM-GUESTS=0

Synced invitation: U-Boot community meeting @ Every 2 weeks from 4pm to 5pm on Tuesday (CET) (u-boot@lists.denx.de)

2025-05-27 Thread Michael Nazzareno Trimarchi
:mailto:korg.su...@gmail.com ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=Michael Nazzareno Trimarchi;X-NUM-GUESTS=0:mailto:michael@amarulaso lutions.com ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=s...@chromium.org;X-NUM

[PATCH] bsh: imx6ulz_smm_m2: Add imx6ulz BSH SMM M2B board

2025-05-26 Thread Michael Trimarchi
s for selective inclusion of the desired memory components Signed-off-by: Michael Trimarchi --- board/bsh/imx6ulz_smm_m2/Kconfig | 21 +++ board/bsh/imx6ulz_smm_m2/Makefile | 4 +- board/bsh/imx6ulz_smm_m2/ddr3l_timing_128m.c | 1 + .../imx6ulz_smm_m2/ddr3l_timing_128m_

Re: [PATCH v2 3/4] mtd: nand: Add support for EDO mode 1-5 to IMX6ULL platform

2025-05-26 Thread Michael Nazzareno Trimarchi
Hi Fabio On Mon, May 26, 2025 at 9:58 PM Fabio Estevam wrote: > > Hi Michael, > > On Mon, May 26, 2025 at 4:48 PM Michael Trimarchi > wrote: > > > > The clock driver allows to boost the NAND performance > > controller. Make changes to let it use the new clock

[PATCH v2 4/4] configs/imx6ulz_smm_m2_defconfig: Enable clock framework

2025-05-26 Thread Michael Trimarchi
Enable the clock framework on the m2 platform. This helps to increase the NAND controller performance. Signed-off-by: Michael Trimarchi --- Changes in v2: - Ajust commit message - drop CONFIG_DM_MTD selected already by MXS_NAND_DT configs/imx6ulz_smm_m2_defconfig | 2 ++ 1 file changed, 2

[PATCH v2 3/4] mtd: nand: Add support for EDO mode 1-5 to IMX6ULL platform

2025-05-26 Thread Michael Trimarchi
The clock driver allows to boost the NAND performance controller. Make changes to let it use the new clock driver => time nand read ${loadaddr} kernel NAND read: device 0 offset 0x50, size 0x80 8388608 bytes read: OK time: 0.488 seconds Signed-off-by: Michael Trimarchi --- Chan

[PATCH v2 1/4] clk: imx: add i.MX6UL clk driver

2025-05-26 Thread Michael Trimarchi
Add i.MX6UL clk driver for i.MX6UL CLK driver model usage Reviewed-by: Peng Fan Signed-off-by: Michael Trimarchi --- Changes in v2: - Add review tag drivers/clk/imx/Kconfig | 8 ++ drivers/clk/imx/Makefile | 1 + drivers/clk/imx/clk-imx6ul.c | 270

[PATCH v2 2/4] mtd: mxs_nand_dt: Move from clk_get/clk_enable to clk_bulk api

2025-05-26 Thread Michael Trimarchi
Make simple the clock registration and enable and allow later to add support for other platforms Signed-off-by: Michael Trimarchi --- Changes in v2: - no changes drivers/mtd/nand/raw/mxs_nand_dt.c | 48 -- 1 file changed, 5 insertions(+), 43 deletions(-) diff

Re: [PATCH 3/4] mtd: nand: Add support for EDO mode 1-5 to IMX6ULL platform

2025-05-26 Thread Michael Nazzareno Trimarchi
HI Fabio On Mon, May 26, 2025 at 4:27 PM Fabio Estevam wrote: > > On Sun, May 25, 2025 at 9:33 AM Michael Trimarchi > wrote: > > > > The clock driver allow to burst the performance of the nand > > allows to boostNAND > Ok > > controller. Make change

Re: [PATCH 2/4] mtd: mxs_nand_dt: Move from clk_get/clk_enable to clk_bulk api

2025-05-26 Thread Michael Nazzareno Trimarchi
Hi Peng On Mon, May 26, 2025 at 9:42 AM Michael Nazzareno Trimarchi wrote: > > Hi Peng > > On Mon, May 26, 2025 at 9:38 AM Michael Nazzareno Trimarchi > wrote: > > > > Hi Peng > > > > On Mon, May 26, 2025 at 9:34 AM Peng Fan wrote: > > > > &g

Re: [PATCH 2/4] mtd: mxs_nand_dt: Move from clk_get/clk_enable to clk_bulk api

2025-05-26 Thread Michael Nazzareno Trimarchi
Hi Peng On Mon, May 26, 2025 at 9:34 AM Peng Fan wrote: > > On Sun, May 25, 2025 at 02:23:10PM +0200, Michael Trimarchi wrote: > >Make simple the clock registration and enable and allow later > >to add support for other platforms > > > >Signed-off-by: Michael Tri

Re: [PATCH 2/4] mtd: mxs_nand_dt: Move from clk_get/clk_enable to clk_bulk api

2025-05-26 Thread Michael Nazzareno Trimarchi
Hi Peng On Mon, May 26, 2025 at 9:38 AM Michael Nazzareno Trimarchi wrote: > > Hi Peng > > On Mon, May 26, 2025 at 9:34 AM Peng Fan wrote: > > > > On Sun, May 25, 2025 at 02:23:10PM +0200, Michael Trimarchi wrote: > > >Make simple the clock registration and e

[PATCH 1/4] clk: imx: add i.MX6UL clk driver

2025-05-25 Thread Michael Trimarchi
Add i.MX6UL clk driver for i.MX6UL CLK driver model usage Signed-off-by: Michael Trimarchi --- drivers/clk/imx/Kconfig | 8 ++ drivers/clk/imx/Makefile | 1 + drivers/clk/imx/clk-imx6ul.c | 270 +++ 3 files changed, 279 insertions(+) create mode

[PATCH 4/4] configs/imx6ulz_smm_m2_defconfig: Enable clock framework

2025-05-25 Thread Michael Trimarchi
Allow to use clock framework for the m2 platform. This allow to have better performance to nand controller Signed-off-by: Michael Trimarchi --- configs/imx6ulz_smm_m2_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/imx6ulz_smm_m2_defconfig b/configs

[PATCH 3/4] mtd: nand: Add support for EDO mode 1-5 to IMX6ULL platform

2025-05-25 Thread Michael Trimarchi
The clock driver allow to burst the performance of the nand controller. Make changes to let it use the new clock driver Signed-off-by: Michael Trimarchi --- drivers/mtd/nand/raw/mxs_nand.c| 12 drivers/mtd/nand/raw/mxs_nand_dt.c | 2 +- 2 files changed, 13 insertions(+), 1

[PATCH 2/4] mtd: mxs_nand_dt: Move from clk_get/clk_enable to clk_bulk api

2025-05-25 Thread Michael Trimarchi
Make simple the clock registration and enable and allow later to add support for other platforms Signed-off-by: Michael Trimarchi --- drivers/mtd/nand/raw/mxs_nand_dt.c | 48 -- 1 file changed, 5 insertions(+), 43 deletions(-) diff --git a/drivers/mtd/nand/raw

Re: [PATCH v2 1/4] board: bsh: imx6ulz_smm_m2: Match SPL DDR settings to DCD table

2025-05-20 Thread Michael Nazzareno Trimarchi
Hi Dario On Tue, May 20, 2025 at 5:07 PM Dario Binacchi wrote: > > From: Michael Trimarchi > > When using SPL on i.mx6 we frequently notice some DDR initialization > mismatches between the SPL code and the non-SPL code. > > As the non-SPL code have been tested for long

Re: [RFC PATCH 3/3] serial: mxc: restore booting for imx8mn_bsh_smm_s2

2025-05-17 Thread Michael Nazzareno Trimarchi
Hi On Sat, May 17, 2025 at 10:50 PM Fabio Estevam wrote: > > On Sat, May 17, 2025 at 5:46 PM Michael Nazzareno Trimarchi > wrote: > > > > I was on master except this commit > > > > > > commit 128d997a8772cc174f38d529d8b25f90b3aa8ad8 > > > Author:

Re: [RFC PATCH 3/3] serial: mxc: restore booting for imx8mn_bsh_smm_s2

2025-05-17 Thread Michael Nazzareno Trimarchi
Hi Fabio On Sat, May 17, 2025 at 10:44 PM Michael Nazzareno Trimarchi wrote: > > Hi > > On Sat, May 17, 2025 at 10:28 PM Fabio Estevam wrote: > > > > On Sat, May 17, 2025 at 5:15 PM Michael Nazzareno Trimarchi > > wrote: > > > > > Can you pl

Re: [RFC PATCH 3/3] serial: mxc: restore booting for imx8mn_bsh_smm_s2

2025-05-17 Thread Michael Nazzareno Trimarchi
Hi On Sat, May 17, 2025 at 10:28 PM Fabio Estevam wrote: > > On Sat, May 17, 2025 at 5:15 PM Michael Nazzareno Trimarchi > wrote: > > > Can you please point me to an example of a tested board? > > I have just tested the top-of-tree U-Boot on an imx8mn evk board: > >

Re: [RFC PATCH 3/3] serial: mxc: restore booting for imx8mn_bsh_smm_s2

2025-05-17 Thread Michael Nazzareno Trimarchi
Hi Fabio On Sat, May 17, 2025 at 9:56 PM Fabio Estevam wrote: > > Hi Michael, > > On Thu, May 15, 2025 at 5:12 PM Michael Nazzareno Trimarchi > wrote: > > > The serial is not up at that time so we need to buffer the error and print > > later. Right now >

[PATCH 3/3] arm: dts: imx6ulz-bsh-smm-m2: Fix reset using wdt-reboot driver

2025-05-16 Thread Michael Trimarchi
default reset_cpu()") Signed-off-by: Michael Trimarchi --- arch/arm/dts/imx6ulz-bsh-smm-m2-u-boot.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/dts/imx6ulz-bsh-smm-m2-u-boot.dtsi b/arch/arm/dts/imx6ulz-bsh-smm-m2-u-boot.dtsi index c67622821e7..faf596255f1 100644

[PATCH 2/3] configs: imx6ulz_smm_m2: Add board watchdog reset configuration

2025-05-16 Thread Michael Trimarchi
Add the configuration that allow to reset the board from reset cmd Signed-off-by: Michael Trimarchi --- configs/imx6ulz_smm_m2_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/imx6ulz_smm_m2_defconfig b/configs/imx6ulz_smm_m2_defconfig index 15a3ec5c627..436bfb78cc2

[PATCH 1/3] arm: dts: imx6ulz-bsh-smm-m2-u-boot: Drop soc node

2025-05-16 Thread Michael Trimarchi
The node is specified on the parent architecture u-boot.dtsi file Signed-off-by: Michael Trimarchi --- arch/arm/dts/imx6ulz-bsh-smm-m2-u-boot.dtsi | 4 1 file changed, 4 deletions(-) diff --git a/arch/arm/dts/imx6ulz-bsh-smm-m2-u-boot.dtsi b/arch/arm/dts/imx6ulz-bsh-smm-m2-u-boot.dtsi

Re: [RFC PATCH 3/3] serial: mxc: restore booting for imx8mn_bsh_smm_s2

2025-05-15 Thread Michael Nazzareno Trimarchi
to understand but even we need working boards > Does the failure come from clk_get_bulk() or clk_enable_bulk()? > The serial is not up at that time so we need to buffer the error and print later. Right now we are working on other fixes Michael > > Please investigate. > -- Mi

u-boot on x86

2025-05-08 Thread Michael
boot the kernel anymore (exception). At a later point i want to lock down the device with enabling the "secure boot" bios function. I have not worked with secure boot yet. I think i can only get it working with the fit images (fit signature verification)? Is this thre right implementation approch? I am grateful for any advice! Best regards, Michael

Re: [PATCH] net: fsl_enetc: fix imdio register calculation

2025-04-28 Thread Michael Walle
fset to calculation of imdio.priv to > fix this. > > Fixes: cc4e8af2c552 ("net: fsl_enetc: Split register accessors") > Signed-off-by: Thomas Schaefer > Signed-off-by: Heiko Thiery With the nitpick above: Reviewed-by: Michael Walle > --- > > But the question th

Re: [PATCH] doc: board: ti: Add optee rng support

2025-04-11 Thread Michael Walle
> > just curious: Did you have to change .configs for either? We are using the (arm64) defconfig in linux, so no. Regarding u-boot, I don't know because we are using our own config and I had to enable CONFIG_OPTEE there (as well as CONFIG_OPTEE_SERVICE_DISCOVERY, but that one is default y). -michael signature.asc Description: PGP signature

Re: [PATCH] doc: board: ti: Add optee rng support

2025-04-11 Thread Michael Walle
> https://gist.github.com/uditkumarti/5f90210b23e67cd4eb6d06a024031ee8#file-gistfile1-txt-L1970 I can confirm the TRNG will work on u-boot as well as linux. Thanks! -michael signature.asc Description: PGP signature

Re: [PATCH] tiny-printf: Handle formatting of %p with an extra Kconfig

2025-04-10 Thread Michael Walle
On Wed Apr 9, 2025 at 5:22 PM CEST, Tom Rini wrote: > On Wed, Apr 09, 2025 at 02:33:08PM +0200, Michael Walle wrote: > > Hi, > > > > > >> The formatting with %pa / %pap behaves like %x, which results in an > > > >> incorrect value being output. To imp

Re: [PATCH] tiny-printf: Handle formatting of %p with an extra Kconfig

2025-04-09 Thread Michael Walle
when needed. For SPL_NET and NET_LWIP it is selected by default. > >> Then it also supports the formatting with %pm, %pM and %pI4. > >> > >> Signed-off-by: Christoph Niedermaier > >> --- > >> Cc: Tom Rini > >> Cc: Simon Glass > >> Cc: M

Re: [PATCH v2] mtd: mtdpart: Support MTDPART_SIZ_FULL in fixed-partitions

2025-04-08 Thread Michael Nazzareno Trimarchi
} > + if (size == MTDPART_SIZ_FULL) > + size = master->size - offset; > > part.name = ofnode_read_string(child, "label"); > if (!part.name) > -- > 2.43.0 > > > Reviewed-by: Michael Tri

Re: [RESEND PATCH] clk: fix crash on clk_set_rate clean rate cache

2025-04-07 Thread Michael Nazzareno Trimarchi
Hi Il lun 7 apr 2025, 22:03 Fabio Estevam ha scritto: > On Mon, Apr 7, 2025 at 4:58 PM Michael Nazzareno Trimarchi > wrote: > > > Can you review it and pick if needed? > > This is not assigned to me in patchwork as it is not i.MX related. > > Someone else needs to h

Re: [PATCH] mtdpart: Support MTDPART_SIZ_FULL in fixed-partitions

2025-04-07 Thread Michael Nazzareno Trimarchi
n omap3 platform but please point me to some recent board if you know Michael M. > > On 25-03-2025 16:52, Mike Looijmans wrote: > > Flash partitions may specify MTDPART_SIZ_FULL (=0) as the size of the > > partition to indicate "the remainder of the flash". Make t

Re: [RESEND PATCH] clk: fix crash on clk_set_rate clean rate cache

2025-04-07 Thread Michael Nazzareno Trimarchi
> > > list_for_each_entry(child_dev, &clk->dev->child_head, > sibling_node) { > > + if (device_get_uclass_id(child_dev) != UCLASS_CLK) > > + continue; > > + > > clkp = dev_get_clk_ptr(child_dev); > > clk_clea

Re: [PATCH] tiny-printf: Add support for upper case hex values

2025-04-06 Thread Michael Walle
SUPPORT and > > > select it by NET or NET_LWIP. If someone needs it, > > > the pointer output can be enabled, otherwise '?' for > > > unsupported is output. > > > > Yeah I had a similar idea, but I'm not sure if yet another config > > symbol is worth it. That's up to the maintainer to decide :) > > > > In any case, we have a different behavior to what is printed > > right now, as we drop the fallthrough to %x. Tom? Simon? > > A Kconfig symbol that NET||NET_LWIP select seems fine, and fall through > to printing "?". Great! Christoph, will you prepare a patch or should I? -michael signature.asc Description: PGP signature

Re: U-Boot interferes with initrd binary — Revert "efi: Correct smbios-table installation" ?

2025-04-05 Thread Michael Brown
On 31/03/2025 18:31, Christian Kohlschütter wrote: Whoa! Good eyes, Michael! What is my Fritzbox doing to my initrd, and why does reverting the commit fix it? FWIW, I also have a capture with an ethernet frame from another device on my network (ARP, ethertype 0x0806), so this is probably the

Re: [PATCH 1/1] efi_loader: stop network in EXIT_BOOT_SERVICES

2025-04-05 Thread Michael Brown
o me. Thank you for fixing this! Reviewed-by: Michael Brown Thanks, Michael

Re: [PATCH] tiny-printf: Add support for upper case hex values

2025-04-04 Thread Michael Walle
it by NET or NET_LWIP. If someone needs it, > the pointer output can be enabled, otherwise '?' for > unsupported is output. Yeah I had a similar idea, but I'm not sure if yet another config symbol is worth it. That's up to the maintainer to decide :) In any case, we have a different behavior to what is printed right now, as we drop the fallthrough to %x. Tom? Simon? -michael signature.asc Description: PGP signature

Re: U-Boot interferes with initrd binary — Revert "efi: Correct smbios-table installation" ?

2025-04-04 Thread Michael Brown
he firmware (including any DMA-capable devices configured by the firmware) is not permitted to continue to write to this memory after this point. Thanks, Michael

Re: U-Boot interferes with initrd binary — Revert "efi: Correct smbios-table installation" ?

2025-04-03 Thread Michael Brown
ard guarantee that a closed device is quiescent for DMA, but it happens to be true for most drivers that I've written over the years. Thanks, Michael

Re: [PATCH] tiny-printf: Add support for upper case hex values

2025-04-02 Thread Michael Walle
past, I vaguely recall > "complaining" about it on IRC. Yes, I've stumbled on "%pa" with tiny printf (i.e. in drivers/pinctrl/pinctrl-single.c) which is printing the very wrong value, actually :) So printing anything unknown as '?' would really help here. -michael signature.asc Description: PGP signature

Re: [PATCH] tiny-printf: Add support for upper case hex values

2025-04-02 Thread Michael Walle
#endif case 'x': if (islong) { num = va_arg(va, unsigned long); @@ -310,6 +307,8 @@ static int _vprintf(struct printf_info *info, const char *fmt, va_list va) case '%': out(info, '%'); default: + out(info, '?'); break; } -michael signature.asc Description: PGP signature

Re: U-Boot interferes with initrd binary — Revert "efi: Correct smbios-table installation" ?

2025-04-01 Thread Michael Brown
On 31/03/2025 18:31, Christian Kohlschütter wrote: Whoa! Good eyes, Michael! What is my Fritzbox doing to my initrd, and why does reverting the commit fix it? FWIW, I also have a capture with an ethernet frame from another device on my network (ARP, ethertype 0x0806), so this is probably the

Re: U-Boot interferes with initrd binary — Revert "efi: Correct smbios-table installation" ?

2025-03-31 Thread Michael Brown
relate to the packet you're seeing being written into random memory locations, sorry. I'll leave it to one of the U-Boot developers to respond. Thanks, Michael

Re: [PATCH 1/3] fastboot: lift restrictions on !NET_LWIP for USB

2025-03-28 Thread Michael Walle
. Add some ifdeffery to guard against > > that. > > > > This will make fastboot over USB work with the new LWIP stack. > > > > Signed-off-by: Michael Walle > > checkpatch.pl reports some issues with this: > > $ ./scripts/checkpatch.pl --strict --u-boot --git

Re: [PATCH 15/18] mtd: rawnand: nand_base: annotate switch/case fallthrough

2025-03-28 Thread Michael Nazzareno Trimarchi
ate || !ecc->correct || !ecc->hwctl) && > (!ecc->read_page || > @@ -5027,6 +5030,7 @@ int nand_scan_tail(struct mtd_info *mtd) > ecc->size, mtd->writesize); > ecc->mode = NAND_ECC_SOFT; > > + fa

Re: [resend v2 00/19] Add Cadence NAND Driver support

2025-03-16 Thread Michael Nazzareno Trimarchi
Hi Applied and sent the pull request Would be nice to have sometime board sample to work with Michael On Wed, Mar 5, 2025 at 5:05 PM Maniyam, Dinesh wrote: > > > > > *From:* Michael Nazzareno Trimarchi > *Sent:* Wednesday, 5 March 2025 5:27 pm > *To:* Maniyam, D

Re: [PATCH v1] mtd: rawnand: meson: always use OOB bytes during write

2025-03-16 Thread Michael Nazzareno Trimarchi
- > - if (oob_required) > - meson_nfc_set_user_byte(chip, chip->oob_poi); > + meson_nfc_set_user_byte(chip, chip->oob_poi); > > return meson_nfc_write_page_sub(chip, page, false); > } > Applied and sent already the pull request Michael

Pull request for u-boot-nand-next External

2025-03-16 Thread Michael Nazzareno Trimarchi
The following changes since commit 15d6518c942f0da13f9a7ceeadbd925c3317ec8d: ARM: dts: imx: Drop bogus regulator extras on DH i.MX6 DHCOM DRC02 (2025-03-13 15:22:48 -0600) are available in the Git repository at: git://source.denx.de:u-boot/custodians/u-boot-nand-flash.git nand-next for you

Re: [RESEND PATCH] clk: fix crash on clk_set_rate clean rate cache

2025-03-15 Thread Michael Nazzareno Trimarchi
oid clk_clean_rate_cache(struct clk *clk) > clk->rate = 0; > > list_for_each_entry(child_dev, &clk->dev->child_head, > sibling_node) { > + if (device_get_uclass_id(child_dev) != UCLASS_CLK) > + continue; > + >

[PATCH 3/3] env: mmc: fix offsets relative to the end of the partition

2025-03-13 Thread Michael Walle
n. Introduce a new boolean kconfig option to switch on the "relative to the end" behavior. Signed-off-by: Michael Walle --- env/Kconfig | 42 +- env/mmc.c | 8 2 files changed, 33 insertions(+), 17 deletions(-) diff --git a/env/Kc

Re: [PATCH 3/3] env: mmc: fix offsets relative to the end of the partition

2025-03-13 Thread Michael Walle
from a '#define' to a kconfig > > option. > > > > Introduce a new boolean kconfig option to switch on the "relative to the > > end" behavior. > > > > Signed-off-by: Michael Walle > > --- > > env/Kconfig | 42 ++

Re: [PATCH 3/3] env: mmc: fix offsets relative to the end of the partition

2025-03-12 Thread Michael Walle
Sorry this should have been individual patches. Please read the subject as "[PATCH 1/1]" or just "[PATCH]". -michael

Re: [PATCH 2/3] net: lwip: remove superfluous newline at tftp help text

2025-03-12 Thread Michael Walle
Sorry this should have been individual patches. Please read the subject as "[PATCH 1/1]" or just "[PATCH]". -michael

Re: [PATCH 1/3] fastboot: lift restrictions on !NET_LWIP for USB

2025-03-12 Thread Michael Walle
Sorry this should have been individual patches. Please read the subject as "[PATCH 1/1]" or just "[PATCH]". -michael

[PATCH 2/3] net: lwip: remove superfluous newline at tftp help text

2025-03-12 Thread Michael Walle
The help text has a newline at the end which will lead to an empty line after the tftpboot when printing the help overview. Remove it. Fixes: 4d4d7838127e ("net: lwip: add TFTP support and tftpboot command") Signed-off-by: Michael Walle --- cmd/net-lwip.c | 2 +- 1 file changed, 1

[PATCH 1/3] fastboot: lift restrictions on !NET_LWIP for USB

2025-03-12 Thread Michael Walle
make fastboot over USB work with the new LWIP stack. Signed-off-by: Michael Walle --- Alternatively, we could add the defines and stub functions to the lwip header. --- cmd/fastboot.c | 4 drivers/fastboot/Kconfig | 1 - drivers/fastboot/fb_common.c | 4 3 files chang

Re: [resend v3 00/19] Add Cadence NAND Driver support

2025-03-05 Thread Michael Nazzareno Trimarchi
Hi Michael Nazzareno Trimarchi Co-Founder & Chief Executive Officer M. +39 347 913 2170 mich...@amarulasolutions.com __ Amarula Solutions BV Joop Geesinkweg 125, 1114 AB, Amsterdam, NL T. +31 (0)85 111 9172 i...@amarulasolutions.com www.amarulasolutions.com

Re: [resend v2 00/19] Add Cadence NAND Driver support

2025-03-05 Thread Michael Nazzareno Trimarchi
-nand-flash/-/commits/nand-next?ref_type=heads Michael On Wed, Feb 26, 2025 at 5:36 PM Maniyam, Dinesh wrote: > > > > -Original Message- > > From: Maniyam, Dinesh > > Sent: Wednesday, 26 February 2025 11:37 am > > To: 'Michael Nazzareno Trimarchi&#x

Re: [PATCH 01/10] clk: imx6q: Properly handle imx6qp ESPI clk_sels

2025-03-03 Thread Michael Nazzareno Trimarchi
Hi On Mon, Mar 3, 2025 at 1:54 PM Adam Ford wrote: > On Mon, Mar 3, 2025 at 6:34 AM Michael Nazzareno Trimarchi > wrote: > > > > Hi Adam > > > > On Sun, Mar 2, 2025 at 5:53 PM Adam Ford wrote: > >> > >> The ECSPI clock has the ability to se

Re: [PATCH 01/10] clk: imx6q: Properly handle imx6qp ESPI clk_sels

2025-03-03 Thread Michael Nazzareno Trimarchi
cspi_root", "pll3_60m", base + 0x38, 19, > 6)); > - > + if (clk_on_imx6qp()) { > + clk_dm(IMX6QDL_CLK_ECSPI_ROOT, > + imx_clk_divider("ecspi_root", "ecspi_sel", base + > 0x38, 19, 6)); > + } else { > +

Re: [resend v3 17/19] drivers: mtd: nand: Enabled Kconfig and Makefile for SPL_NAND_FRAMEWORK

2025-02-27 Thread Michael Nazzareno Trimarchi
Hi On Fri, Feb 28, 2025 at 5:02 AM Maniyam, Dinesh wrote: > > > > > -Original Message- > > From: Michael Nazzareno Trimarchi > > Sent: Friday, 28 February 2025 5:30 am > > To: Maniyam, Dinesh > > Cc: u-boot@lists.denx.de; Marek ; Simon > > ;

  1   2   3   4   5   6   7   8   9   10   >