All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Add Cortina Systems CS7542 NAND controller support
@ 2026-11-23 18:41 ` Fil Dunsky via B4 Relay
  0 siblings, 0 replies; 14+ messages in thread
From: Fil Dunsky @ 2026-11-23 18:41 UTC (permalink / raw)
  To: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-mtd, devicetree, linux-kernel

Add the NAND controller used by the Securifi Almond+ (CS7542, two Cortex-A9
CPUs). This is an independent binding/driver/MAINTAINERS series on
Linux v7.4-rc4; it does not depend on ARCH_CORTINA_ACCESS or the platform
series.

The controller sequences complete command/address/data transactions. Use
exec_op with explicit capability checking and cached ID, ONFI and page reads
for NAND core's split operations. Retain firmware-initialized bus timing.
This version supports large-page, 8-bit NAND with on-host Hamming ECC using
256-byte steps and the existing OOB layout. It uses programmed I/O; DMA and
unverified BCH modes are deliberately outside this initial implementation.

Validation:
- Full independent ARM vmlinux and modules builds, driver both =y and =m,
  COMPILE_TEST=n, without the platform series.
- Binding schema/example and strict source checkpatch pass.
- Actual decoder functions: 292 boundary, address and sequence cases under
  UBSAN. Address packing: 655360 cases cover every Almond+ page and
  two-row-cycle large-page geometries. Actual Hamming correction function: 16389 cases covering every
  single-data-bit position, invalid hardware offsets and error propagation.
- Linux 7.4-rc4 booted in RAM on Almond+. NAND identification, all-device
  bad-block scan, OOB reads and SHA256 of five existing protected regions
  passed without new ECC failures.
- The real UBI stack created a temporary two-LEB volume, wrote and verified
  two 253952-byte patterns, removed the volume and reattached with the
  original bad-block reserve. All 14 protected partition/configuration
  checksums matched after returning to installed OpenWrt 6.18.64; the five
  original UBI volumes and normal reserve remained intact.

No kernel image was installed by these RAM tests. Board integration used
for testing is kept separate from this series.

---
Fil Dunsky (3):
      dt-bindings: mtd: Add Cortina CS7542 NAND controller
      mtd: rawnand: Add Cortina CS7542 controller support
      MAINTAINERS: Add Cortina CS7542 NAND controller entry

 .../bindings/mtd/cortina,cs7542-nand.yaml          |  66 ++
 MAINTAINERS                                        |   7 +
 drivers/mtd/nand/raw/Kconfig                       |  12 +
 drivers/mtd/nand/raw/Makefile                      |   1 +
 drivers/mtd/nand/raw/cs752x_nand.c                 | 826 +++++++++++++++++++++
 5 files changed, 912 insertions(+)
---
base-commit: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f
change-id: 20261123-b4-cs7542-nand-87997e300079

Best regards,
--  
Fil Dunsky <filipp.dunsky@gmail.com>


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2026-11-23 19:06 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23 18:41 [PATCH 0/3] Add Cortina Systems CS7542 NAND controller support Fil Dunsky
2026-11-23 18:41 ` Fil Dunsky via B4 Relay
2026-11-23 18:41 ` Fil Dunsky via B4 Relay
2026-11-23 18:41 ` [PATCH 1/3] dt-bindings: mtd: Add Cortina CS7542 NAND controller Fil Dunsky
2026-11-23 18:41   ` Fil Dunsky via B4 Relay
2026-11-23 18:41   ` Fil Dunsky via B4 Relay
2026-11-23 18:41 ` [PATCH 2/3] mtd: rawnand: Add Cortina CS7542 controller support Fil Dunsky
2026-11-23 18:41   ` Fil Dunsky via B4 Relay
2026-11-23 18:41   ` Fil Dunsky via B4 Relay
2026-11-23 19:05   ` sashiko-bot
2026-11-23 19:05     ` sashiko-bot
2026-11-23 18:41 ` [PATCH 3/3] MAINTAINERS: Add Cortina CS7542 NAND controller entry Fil Dunsky
2026-11-23 18:41   ` Fil Dunsky via B4 Relay
2026-11-23 18:41   ` Fil Dunsky via B4 Relay

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.