From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Fil Dunsky via B4 Relay <devnull+filipp.dunsky.gmail.com@kernel.org>
Cc: Richard Weinberger <richard@nod.at>,
Vignesh Raghavendra <vigneshr@ti.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
filipp.dunsky@gmail.com, linux-mtd@lists.infradead.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/3] dt-bindings: mtd: Add Cortina CS7542 NAND controller
Date: Thu, 26 Nov 2026 11:49:41 +0100 [thread overview]
Message-ID: <87pkvryiii.fsf@bootlin.com> (raw)
In-Reply-To: <20261123-b4-cs7542-nand-v2-1-9d9f08608534@gmail.com> (Fil Dunsky via's message of "Mon, 23 Nov 2026 23:27:06 +0300")
On 23/11/2026 at 23:27:06 +03, Fil Dunsky via B4 Relay <devnull+filipp.dunsky.gmail.com@kernel.org> wrote:
> From: Fil Dunsky <filipp.dunsky@gmail.com>
>
> 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@gmail.com>
> ---
> .../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@gmail.com>
> +
> +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
No clock, interrupt, dma, reset... nothing?
> +
> +patternProperties:
> + "^nand@[0-9a-f]$":
> + type: object
> + $ref: raw-nand-chip.yaml#
> + properties:
> + reg:
> + const: 0
Does the controller really supports a single CS?
I am not talking about the driver.
> + nand-bus-width:
> + const: 8
Already defaults to 8, most of the time we just don't define it
further. I don't know what is best here.
> + nand-ecc-mode:
> + const: hw
> + nand-ecc-algo:
> + const: hamming
> + nand-ecc-step-size:
> + const: 256
> + nand-ecc-strength:
> + const: 1
This is not a limitation of your controller and these properties are
only relevant if you want to overwrite what the NAND requested. You may
have software ECC engine support. Also, a step size of 256 today is
quite uncommon, are you sure?
Miquèl
next prev parent reply other threads:[~2026-11-26 10:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 20:27 [PATCH v2 0/3] Add Cortina Systems CS7542 NAND controller support Fil Dunsky via B4 Relay
2026-11-23 20:27 ` [PATCH v2 1/3] dt-bindings: mtd: Add Cortina CS7542 NAND controller Fil Dunsky via B4 Relay
2026-11-26 10:49 ` Miquel Raynal [this message]
2026-11-23 20:27 ` [PATCH v2 2/3] mtd: rawnand: Add Cortina CS7542 controller support Fil Dunsky via B4 Relay
2026-11-26 10:57 ` Miquel Raynal
2026-11-26 11:37 ` Fil Dunsky
2026-11-23 20:27 ` [PATCH v2 3/3] MAINTAINERS: Add Cortina CS7542 NAND controller entry Fil Dunsky via B4 Relay
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pkvryiii.fsf@bootlin.com \
--to=miquel.raynal@bootlin.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=devnull+filipp.dunsky.gmail.com@kernel.org \
--cc=filipp.dunsky@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=richard@nod.at \
--cc=robh@kernel.org \
--cc=vigneshr@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox