GPMC omap nand using CS1

Romain Naour romain.naour at smile.fr
Mon Dec 13 02:18:03 PST 2021


Hello,

I'm using an AM3505 cpu with two nand device, nand0 use CS0 and nand1 use CS1.

The nand0 is ok but nand1 is not detected.
I get "nand: No NAND device found"

Regarding the devicetree for nand1, I did something similar to omap3430-sdp.dts
where the nand is on CS1.

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/arm/boot/dts/omap3430-sdp.dts?h=v5.15.6#n102

I'm not sure this dts actually works since in nand_base.c nand_detect() call
nand_reset(chip, 0) with cs = 0.

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/drivers/mtd/nand/raw/nand_base.c?h=v5.15.6#n4945

It seems it was possible to use two nand on gpmc (kernel 3.16):

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/343017/am335x-gpmc-with-two-nand-flash-in-device-tree

Best regards,
Romain



More information about the linux-mtd mailing list