Skip to content

rawnand: omap_gpmc: driver model support

Roger Quadros u-boot 2 versions – Applied

Status from this message: applied to nand-next

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 8 repliesApplied
  2. v114 patches 39 repliesSuperseded

Changes in v2 from the cover letter

- Fixed build warning and failures for am335x_guardian, chiliboard, and cm_t32
- use __maybe_unused struct nand_chip to fix build warning
- make elm_probe() a NOP if ELM_BASE is defined. This should not interfere with existing platforms that don't use Driver Model for ELM driver.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/8mtd: rawnand: omap_gpmc: Fix BCH6/16 HW based correctiondrivers/mtd/nand/raw/omap_gpmc.c+223 -1021 reply
2/8mtd: rawnand: nand_base: Allow base driver to be used in SPL without nand_bbtdrivers/mtd/nand/raw/nand_base.c+17 -10 replies
3/8dt-bindings: mtd: Add ti, gpmc-nand DT binding documentationdoc/device-tree-bindings/mtd/ti,gpmc-nand.yaml+129 -00 replies
4/8mtd: rawnand: omap_gpmc: support u-boot driver modeldrivers/mtd/nand/raw/Kconfig drivers/mtd/nand/raw/omap_gpmc.c+64 -10 replies
5/8mtd: rawnand: omap_gpmc: Add SPL NAND supportdrivers/mtd/nand/raw/Kconfig drivers/mtd/nand/raw/Makefile drivers/mtd/nand/raw/omap_gpmc.c+46 -10 replies
6/8mtd: rawnand: omap_gpmc: Enable SYS_NAND_PAGE_COUNT for OMAP_GPMCdrivers/mtd/nand/raw/Kconfig+2 -10 replies
7/8dt-bindings: mtd: Add ti, elm DT binding documentationdoc/device-tree-bindings/mtd/ti,elm.yaml+72 -00 replies
8/8mtd: rawnand: omap_elm: u-boot driver model supportdrivers/mtd/nand/raw/omap_elm.c drivers/mtd/nand/raw/omap_elm.h drivers/mtd/nand/raw/omap_gpmc.c+51 -26 replies

Reviews trailers per patch

1 of 8 patches has a Reviewed-by or Acked-by.

PatchMichael Trimarchi
1/8R-b A-b
2/8
3/8
4/8
5/8
6/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [u-boot][PATCH v2 0/8] rawnand: omap_gpmc: driver model support

Hi Michael & Dario,

This series adds driver model support for rawnand: omap_gpmc and omap_elm drivers.

This will enable the driver to be used on K2/K3 platforms as well.

This series along with remaining patches required to get NAND working on AM6x EVM is available here
https://github.com/rogerq/u-boot/commits/for-v2023.01/am64-nand-base-2.0

cheers,
-roger

Changelog:
v2:
- Fixed build warning and failures for am335x_guardian, chiliboard, and cm_t32
- use __maybe_unused struct nand_chip to fix build warning
- make elm_probe() a NOP if ELM_BASE is defined. This should not interfere with existing platforms that don't use Driver Model for ELM driver.

Roger Quadros (8):
mtd: rawnand: omap_gpmc: Fix BCH6/16 HW based correction
mtd: rawnand: nand_base: Allow base driver to be used in SPL without
nand_bbt
dt-bindings: mtd: Add ti,gpmc-nand DT binding documentation
mtd: rawnand: omap_gpmc: support u-boot driver model
mtd: rawnand: omap_gpmc: Add SPL NAND support
mtd: rawnand: omap_gpmc: Enable SYS_NAND_PAGE_COUNT for OMAP_GPMC
dt-bindings: mtd: Add ti,elm DT binding documentation
mtd: rawnand: omap_elm: u-boot driver model support

 doc/device-tree-bindings/mtd/ti,elm.yaml      |  72 +++
 .../mtd/ti,gpmc-nand.yaml                     | 129 +++++
 drivers/mtd/nand/raw/Kconfig                  |   9 +-
 drivers/mtd/nand/raw/Makefile                 |   2 +-
 drivers/mtd/nand/raw/nand_base.c              |  18 +-
 drivers/mtd/nand/raw/omap_elm.c               |  35 +-
 .../mtd => drivers/mtd/nand/raw}/omap_elm.h   |   6 +
 drivers/mtd/nand/raw/omap_gpmc.c              | 441 +++++++++++++-----
 8 files changed, 604 insertions(+), 108 deletions(-)
 create mode 100644 doc/device-tree-bindings/mtd/ti,elm.yaml
 create mode 100644 doc/device-tree-bindings/mtd/ti,gpmc-nand.yaml
 rename {include/linux/mtd => drivers/mtd/nand/raw}/omap_elm.h (97%)
Signature · 1 line
2.34.1