Hi Michael Nazzareno Trimarchi Co-Founder & Chief Executive Officer M. +39 347 913 2170 [email protected] __________________________________
Amarula Solutions BV Joop Geesinkweg 125, 1114 AB, Amsterdam, NL T. +31 (0)85 111 9172 [email protected] www.amarulasolutions.com Il mer 5 mar 2025, 05:11 Maniyam, Dinesh <[email protected]> ha scritto: > > > > -----Original Message----- > > From: Maniyam, Dinesh > > Sent: Thursday, 27 February 2025 3:20 pm > > To: Michael Nazzareno Trimarchi <[email protected]> > > Cc: [email protected]; Marek <[email protected]>; Simon > > <[email protected]>; Tom Rini <[email protected]>; Dario > > Binacchi <[email protected]>; Johan Jonker > > <[email protected]>; Michal Simek <[email protected]>; Arseniy > > Krasnov <[email protected]>; Alexander Dahl <[email protected]>; > > William Zhang <[email protected]>; Igor Prusov > > <[email protected]>; Meng, Tingting <[email protected]>; > > Chee, Tien Fong <[email protected]>; Hea, Kok Kiang > > <[email protected]>; Ng, Boon Khai <[email protected]>; > Yuslaimi, > > Alif Zakuan <[email protected]>; Zamri, Muhammad Hazim > Izzat > > <[email protected]>; Lim, Jit Loon > > <[email protected]>; Tang, Sieu Mun <[email protected]> > > Subject: RE: [resend v3 00/19] Add Cadence NAND Driver support > > > > > > > > > -----Original Message----- > > > From: Michael Nazzareno Trimarchi <[email protected]> > > > Sent: Thursday, 27 February 2025 2:34 pm > > > To: Maniyam, Dinesh <[email protected]> > > > Cc: [email protected]; Marek <[email protected]>; Simon > > > <[email protected]>; Tom Rini <[email protected]>; > > > Dario Binacchi <[email protected]>; Johan Jonker > > > <[email protected]>; Michal Simek <[email protected]>; Arseniy > > > Krasnov <[email protected]>; Alexander Dahl > > > <[email protected]>; William Zhang <[email protected]>; Igor > > > Prusov <[email protected]>; Meng, Tingting > > > <[email protected]>; Chee, Tien Fong <[email protected]>; > > > Hea, Kok Kiang <[email protected]>; Ng, Boon Khai > > > <[email protected]>; Yuslaimi, Alif Zakuan > > > <[email protected]>; Zamri, Muhammad Hazim Izzat > > > <[email protected]>; Lim, Jit Loon > > > <[email protected]>; Tang, Sieu Mun <[email protected]> > > > Subject: Re: [resend v3 00/19] Add Cadence NAND Driver support > > > > > > Hi Dinesh > > > > > Hi > > > > On Wed, Feb 26, 2025 at 5:18 PM <[email protected]> wrote: > > > > > > > > From: Dinesh Maniyam <[email protected]> > > > > > > > > This patchset add Cadence NAND driver support for Intel Agilex5 > > > > devices. > > > > > > > > The NAND driver is leveraged from the cadence-nand-controller.c from > > > > Linux version 6.11.2. U-Boot will support read, write and erase NAND > > > > with Cadence driver. The driver further enhanced in U-Boot to > > > > support NAND booting from FSBL and support boot to kernel via UBIFS. > > > > > > > > > > I have just applied on top of master and they are not applied clean. I > > > can fix these conflicts by myself this conflicts, but I would like > > > that when you apply patches you fix warnings like trailing space. > > > > > > > My apologies, but I think I did not use the latest master version. > > I will take note of this. > > > > > Applying: dt: nand: add cadence nand dt-bindings > > > Applying: arm: dts: agilex5: Enabled cdns-nand dts setting > > > Applying: drivers: mtd: nand: Add driver for Cadence Nand > > > Applying: drivers: mtd: nand: cadence: Add support for read status > > > command > > > Applying: drivers: mtd: nand: cadence: Add support for readid command > > > Applying: drivers: mtd: nand: cadence: Add support for NAND_CMD_PARAM > > > Applying: drivers: mtd: nand: cadence: Add support for NAND_CMD_RESET > > > Applying: drivers: mtd: nand: cadence: Support cmd SET_FEATURES & > > > GET_FEATURES > > > Applying: drivers: mtd: nand: cadence: Flush & invalidate dma > > > descriptor > > > Applying: drivers: mtd: nand: cadence: Poll for desc complete status > > > Applying: drivers: mtd: nand: cadence: Use bounce buffer > > > Applying: drivers: nand: Enabled Kconfig and Makefile for cdns-nand > > > Applying: configs: nand2_defconfig: Enable configs for nand boot > > > Applying: drivers: mtd: nand: base: Add support for Hardware ECC for > > > check bad block > > > Applying: drivers: mtd: nand: spl: Add support for nand SPL load image > > > .git/rebase-apply/patch:19: trailing whitespace. > > > * Copyright (C) 2024 Intel Corporation <www.intel.com> > > > warning: 1 line adds whitespace errors. > > > > > > Apart of that > > > > > > pplying: drivers: mtd: nand: Enabled Kconfig and Makefile for > > > SPL_NAND_FRAMEWORK > > > error: patch failed: drivers/mtd/nand/raw/Makefile:3 > > > error: drivers/mtd/nand/raw/Makefile: patch does not apply Patch > > > failed at 0017 > > > drivers: mtd: nand: Enabled Kconfig and Makefile for > > > SPL_NAND_FRAMEWORK > > > hint: Use 'git am --show-current-patch=diff' to see the failed patch > > > When you have resolved this problem, run "git am --continue". > > > If you prefer to skip this patch, run "git am --skip" instead. > > > To restore the original branch and stop patching, run "git am --abort". > > > > > > I will review the rest > > > > > > Michael > > > > > > > Thanks for your time! > > Please let me know if you want me to resubmit the patchset using the > latest > > master. > > > > Dinesh > > Please let me know once you finish reviewing the NAND patchset. > Thanks for your time. > I can not test your patches I push back. You should check your board if still is ok. As I mention I have changed your configuration and reduce the number of patches Let me know if it's still ok Michael > > Dinesh > > > > > > > Patch status: > > > > Have changes: All patches expect Patch 19 > > > > > > > > Detail changelog can find in commit message. > > > > > > > > v1->v2: > > > > -------- > > > > Patch 1 - 18: > > > > > > > > - remove the "this patch is to" commit phrases > > > > > > > > Patch 4; > > > > - minor refactoring of code to match the stable version 6.11.2. > > > > > > > > Patch 14: > > > > - Add maintainer and "#include" mechanism for new variant > > > > > > > > Patch 16: > > > > - leverage the existing nand_spl_load_image > > > > > > > > v2->v3: > > > > -------- > > > > Patch: arm: dts: agilex5: Enabled cdns-nand dts setting > > > > - Move &nand from uboot.dtsi to socdk.dts > > > > > > > > Patch: include: asm: Add support to read/write 64-bit > > > > - Dropped because redefinition of readsq & writesq > > > > > > > > Patch: drivers: mtd: nand: Add driver for Cadence Nand > > > > - Remove redundant clk_free func > > > > > > > > Patch: drivers: mtd: nand: Enabled Kconfig and Makefile for > > > > SPL_NAND_FRAMEWORK > > > > - New > > > > > > > > Patch: drivers: mtd: nand: Kconfig: Add SYS_NAND_PAGE_SIZE > > > > dependency > > > > - New > > > > > > > > Patch: configs: nand2_defconfig: Enable configs for nand boot > > > > - Remove CONFIG_OF_UPSTREAM in order to get correct dts for > > > > compilation > > > > > > > > Patch: drivers: mtd: nand: base: Add support for Hardware ECC for > > > > check bad block > > > > - Remove copyright > > > > > > > > Patch: drivers: mtd: nand: Kconfig: Remove SYS_NAND_BLOCK_SIZE > > > > dependency > > > > - Dropped because SPL NAND have dependency with SYS_NAND_BLOCK_SIZE > > > > > > > > History: > > > > -------- > > > > [v1]: > > > > https://patchwork.ozlabs.org/project/uboot/cover/20240919035512.1385 > > > > 4- > > > > [email protected]/ > > > > [v2]: > > > > https://patchwork.ozlabs.org/project/uboot/cover/20241205092315.2506 > > > > 0- > > > > [email protected]/ > > > > > > > > Dinesh Maniyam (19): > > > > dt: nand: add cadence nand dt-bindings > > > > arm: dts: agilex5: Enabled cdns-nand dts setting > > > > drivers: mtd: nand: Add driver for Cadence Nand > > > > drivers: mtd: nand: cadence: Add support for read status command > > > > drivers: mtd: nand: cadence: Add support for readid command > > > > drivers: mtd: nand: cadence: Add support for NAND_CMD_PARAM > > > > drivers: mtd: nand: cadence: Add support for NAND_CMD_RESET > > > > drivers: mtd: nand: cadence: Support cmd SET_FEATURES & > GET_FEATURES > > > > drivers: mtd: nand: cadence: Flush & invalidate dma descriptor > > > > drivers: mtd: nand: cadence: Poll for desc complete status > > > > drivers: mtd: nand: cadence: Use bounce buffer > > > > drivers: nand: Enabled Kconfig and Makefile for cdns-nand > > > > configs: nand2_defconfig: Enable configs for nand boot > > > > drivers: mtd: nand: base: Add support for Hardware ECC for check > bad > > > > block > > > > drivers: mtd: nand: spl: Add support for nand SPL load image > > > > drivers: mtd: nand: Enabled Kconfig and Makefile for Cadence-SPL > > > > drivers: mtd: nand: Enabled Kconfig and Makefile for > > > > SPL_NAND_FRAMEWORK > > > > drivers: mtd: nand: Kconfig: Add SYS_NAND_PAGE_SIZE dependency > > > > drivers: mtd: nand: Kconfig: Enabled self-init for cdns-nand SPL > > > > > > > > arch/arm/dts/socfpga_agilex5.dtsi | 14 + > > > > .../arm/dts/socfpga_agilex5_socdk-u-boot.dtsi | 9 +- > > > > arch/arm/dts/socfpga_agilex5_socdk.dts | 19 + > > > > board/intel/agilex5-socdk/MAINTAINERS | 2 + > > > > configs/socfpga_agilex5_nand2_defconfig | 32 + > > > > .../mtd/cadence,nand.yaml | 98 + > > > > drivers/mtd/nand/raw/Kconfig | 26 +- > > > > drivers/mtd/nand/raw/Makefile | 12 + > > > > drivers/mtd/nand/raw/cadence_nand.c | 2423 > +++++++++++++++++ > > > > drivers/mtd/nand/raw/cadence_spl.c | 59 + > > > > drivers/mtd/nand/raw/nand_base.c | 69 +- > > > > include/cadence-nand.h | 529 ++++ > > > > include/linux/mtd/rawnand.h | 12 + > > > > 13 files changed, 3278 insertions(+), 26 deletions(-) create mode > > > > 100644 configs/socfpga_agilex5_nand2_defconfig > > > > create mode 100644 doc/device-tree-bindings/mtd/cadence,nand.yaml > > > > create mode 100644 drivers/mtd/nand/raw/cadence_nand.c > > > > create mode 100644 drivers/mtd/nand/raw/cadence_spl.c > > > > create mode 100644 include/cadence-nand.h > > > > > > > > -- > > > > 2.19.0 > > > > > > > > > > > > > -- > > > Michael Nazzareno Trimarchi > > > Co-Founder & Chief Executive Officer > > > M. +39 347 913 2170 > > > [email protected] > > > __________________________________ > > > > > > Amarula Solutions BV > > > Joop Geesinkweg 125, 1114 AB, Amsterdam, NL T. +31 (0)85 111 9172 > > > [email protected] www.amarulasolutions.com >

