Re: [PATCH v4] dt-bindings: mtd: convert IBM NDFC binding to YAML

From: Rob Herring (Arm)

Date: Mon Sep 28 2026 - 17:20:59 EST



On Fri, 25 Sep 2026 18:48:02 -0700, Rosen Penev wrote:
> The NDFC NAND flash controller was only described in a legacy text file,
> so dtbs_check reported "failed to match any schema with compatible:
> ['ibm,ndfc']" for the ndfc nodes of the bluestone, canyonlands, eiger,
> glacier, sequoia and warp device trees.
>
> Convert the binding to the YAML format so those nodes match the generic
> nand-controller-legacy schema. Describe the node's reg, ccr and
> bank-settings properties, along with its "nand" chip node which carries
> the legacy partition layout.
>
> The "nand" chip node carries no unit address, so the "nand@[a-f0-9]"
> pattern of nand-controller-legacy.yaml never matches it and
> raw-nand-chip.yaml is never applied. Describe it with mtd.yaml,
> nand-property.yaml and raw-nand-property.yaml instead, the way the
> controller level does, so that both the deprecated partition@ nodes and
> a modern "partitions" subnode are accepted. The node name does not
> matter, the driver picks the first child of the controller node.
>
> Assisted-by: LLM
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
> ---
> v4: allow modern partitions
> v3: fix wrong regex
> v2: fix reg value
> .../devicetree/bindings/mtd/ibm,ndfc.txt | 39 ------
> .../devicetree/bindings/mtd/ibm,ndfc.yaml | 128 ++++++++++++++++++
> 2 files changed, 128 insertions(+), 39 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/mtd/ibm,ndfc.txt
> create mode 100644 Documentation/devicetree/bindings/mtd/ibm,ndfc.yaml
>

Reviewed-by: Rob Herring (Arm) <robh@xxxxxxxxxx>