dt-bindings: mtd: nand: Standardize the child node name
authorMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 14 Nov 2022 09:03:03 +0000 (10:03 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 17 Nov 2022 20:59:11 +0000 (21:59 +0100)
In almost all the schema mentioning a NAND chip child node, the name of
the subnode contains a single index number.

In practice there are currently no controller supporting more than 8 cs
so even the [a-f] numbers are not needed. But let's be safe and limit
the number of touched files by just allow a single number everywhere, so
in practice up to 16 CS at most. This value can anyway be limited in
each schema.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/linux-mtd/20221114090315.848208-6-miquel.raynal@bootlin.com
Documentation/devicetree/bindings/mtd/allwinner,sun4i-a10-nand.yaml
Documentation/devicetree/bindings/mtd/intel,lgm-ebunand.yaml

index 65521924ee1caa674d7a8c9681d829b1ddae1385..465aa69f0f10c484197028bfb65553af7b06d711 100644 (file)
@@ -47,7 +47,7 @@ properties:
     const: rxtx
 
 patternProperties:
-  "^nand@[a-f0-9]+$":
+  "^nand@[a-f0-9]$":
     type: object
     properties:
       reg:
index 7c83a328845e38f1ffc7666fc81506daee926e2e..d455b75a0b0b34cdee1b3d992488a753f4d7c6ba 100644 (file)
@@ -40,7 +40,7 @@ properties:
       - const: rx
 
 patternProperties:
-  "^nand@[a-f0-9]+$":
+  "^nand@[a-f0-9]$":
     type: object
     properties:
       reg: