Skip to content

mtd: nand: mxs_nand: add device tree support

Stefan Agner u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9mtd: nand: mxs_nand: move register structs to driver datadrivers/mtd/nand/mxs_nand.c+15 -170 replies
2/9mtd: nand: mxs_nand: use more precise function namedrivers/mtd/nand/mxs_nand.c+2 -20 replies
3/9mtd: nand: mxs_nand: separate board/controller initdrivers/mtd/nand/mxs_nand.c+20 -130 replies
4/9mtd: nand: mxs_nand: add use_minimum_ecc to structdrivers/mtd/nand/mxs_nand.c+20 -140 replies
5/9mtd: nand: mxs_nand: create separate header filedrivers/mtd/nand/mxs_nand.c drivers/mtd/nand/mxs_nand.h+75 -580 replies
6/9mtd: nand: mxs_nand: add device tree supportdrivers/mtd/nand/Kconfig drivers/mtd/nand/Makefile drivers/mtd/nand/mxs_nand.c +1 more+99 -00 replies
7/9mtd: nand: mxs_nand: add support for specific ECC strengthdrivers/mtd/nand/mxs_nand.c+30 -140 replies
8/9arm: dts: imx7: sync with Linuxarch/arm/dts/imx7s.dtsi include/dt-bindings/clock/imx7d-clock.h include/dt-bindings/power/imx7-power.h+341 -1810 replies
9/9arm: dts: imx7: colibri: add raw NAND supportarch/arm/dts/imx7-colibri.dts+28 -01 reply
9/9arm: dts: imx7: colibri: add raw NAND support+0 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [U-Boot] [PATCH v1 0/9] mtd: nand: mxs_nand: add device tree support

From: Stefan Agner <[email protected]>

This patchset adds device tree support to the MXS NAND driver. This also allows to use fixed ECC strenght usingt he device tree properties nand-ecc-strength/nand-ecc-step-size and aligns behavior with the Linux GPMI NAND driver.

This is based on the "mtd: nand: mxs_nand: improve ECC support" patchset:
https://patchwork.ozlabs.org/cover/897263/

Support for nand-ecc-strength/nand-ecc-step-size has recently been added in Linux, see:
https://patchwork.kernel.org/patch/10257829/

This patchset has been tested with various ECC configurations on a Colibri iMX7.

--
Stefan

Stefan Agner (9):
mtd: nand: mxs_nand: move register structs to driver data
mtd: nand: mxs_nand: use more precise function name
mtd: nand: mxs_nand: separate board/controller init
mtd: nand: mxs_nand: add use_minimum_ecc to struct
mtd: nand: mxs_nand: create separate header file
mtd: nand: mxs_nand: add device tree support
mtd: nand: mxs_nand: add support for specific ECC strength
arm: dts: imx7: sync with Linux
arm: dts: imx7: colibri: add raw NAND support

 arch/arm/dts/imx7-colibri.dts           |  28 ++
 arch/arm/dts/imx7s.dtsi                 | 491 +++++++++++++++---------
 drivers/mtd/nand/Kconfig                |   7 +
 drivers/mtd/nand/Makefile               |   1 +
 drivers/mtd/nand/mxs_nand.c             | 195 +++++-----
 drivers/mtd/nand/mxs_nand.h             |  72 ++++
 drivers/mtd/nand/mxs_nand_dt.c          |  86 +++++
 include/dt-bindings/clock/imx7d-clock.h |  15 +-
 include/dt-bindings/power/imx7-power.h  |  16 +
 9 files changed, 621 insertions(+), 290 deletions(-)
 create mode 100644 drivers/mtd/nand/mxs_nand.h
 create mode 100644 drivers/mtd/nand/mxs_nand_dt.c
 create mode 100644 include/dt-bindings/power/imx7-power.h
Signature · 1 line
2.17.0