[PATCH 0/3] Add Cortina Systems CS7542 NAND controller support

From: Fil Dunsky via B4 Relay

Date: Mon Nov 23 2026 - 13:42:20 EST


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@xxxxxxxxx>