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

Rob Herring (Arm) robh at kernel.org
Mon Sep 28 14:20:47 PDT 2026


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 at gmail.com>
> ---
>  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 at kernel.org>




More information about the linux-mtd mailing list