[PATCH 1/3] dt-bindings: mtd: Add Cortina CS7542 NAND controller

From: Fil Dunsky via B4 Relay

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


From: Fil Dunsky <filipp.dunsky@xxxxxxxxx>

Describe the flash register bank and the single 8-bit NAND target used
on CS7542. Specify the ROM-compatible Hamming ECC configuration and
allow standard NAND partition descriptions. Firmware supplies the bus
timing.

Signed-off-by: Fil Dunsky <filipp.dunsky@xxxxxxxxx>
---
.../bindings/mtd/cortina,cs7542-nand.yaml | 66 ++++++++++++++++++++++
1 file changed, 66 insertions(+)

diff --git a/Documentation/devicetree/bindings/mtd/cortina,cs7542-nand.yaml b/Documentation/devicetree/bindings/mtd/cortina,cs7542-nand.yaml
new file mode 100644
index 000000000..c9ab9d4d9
--- /dev/null
+++ b/Documentation/devicetree/bindings/mtd/cortina,cs7542-nand.yaml
@@ -0,0 +1,66 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mtd/cortina,cs7542-nand.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Cortina Systems CS7542 NAND controller
+
+maintainers:
+ - Fil Dunsky <filipp.dunsky@xxxxxxxxx>
+
+description:
+ The flash controller supports programmed I/O transfers and a hardware
+ Hamming ECC engine. Firmware initializes the NAND bus timing.
+
+allOf:
+ - $ref: nand-controller.yaml#
+
+properties:
+ compatible:
+ const: cortina,cs7542-nand
+
+ reg:
+ maxItems: 1
+
+patternProperties:
+ "^nand@[0-9a-f]$":
+ type: object
+ $ref: raw-nand-chip.yaml#
+ properties:
+ reg:
+ const: 0
+ nand-bus-width:
+ const: 8
+ nand-ecc-mode:
+ const: hw
+ nand-ecc-algo:
+ const: hamming
+ nand-ecc-step-size:
+ const: 256
+ nand-ecc-strength:
+ const: 1
+ unevaluatedProperties: false
+
+required:
+ - compatible
+ - reg
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ nand-controller@f0050000 {
+ compatible = "cortina,cs7542-nand";
+ reg = <0xf0050000 0x300>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ nand@0 {
+ reg = <0>;
+ nand-ecc-mode = "hw";
+ nand-ecc-algo = "hamming";
+ nand-ecc-step-size = <256>;
+ nand-ecc-strength = <1>;
+ };
+ };

--
2.53.0