diff mbox series

dt-bindings: mtd: ti, gpmc-nand: support partitions node

Message ID 20240830-gpmc-dtb-v1-1-792cac1ef3cc@kernel.org
State New
Headers show
Series dt-bindings: mtd: ti, gpmc-nand: support partitions node | expand

Commit Message

Roger Quadros Aug. 30, 2024, 12:27 p.m. UTC
Allow fixed-partitions to be specified through a partitions
node.

Fixes the below dtbs_check warning:

arch/arm64/boot/dts/ti/k3-am642-evm-nand.dtb: nand@0,0: Unevaluated properties are not allowed ('partitions' was unexpected)

Signed-off-by: Roger Quadros <rogerq@kernel.org>
---
 Documentation/devicetree/bindings/mtd/ti,gpmc-nand.yaml | 5 +++++
 1 file changed, 5 insertions(+)


---
base-commit: 5be63fc19fcaa4c236b307420483578a56986a37
change-id: 20240830-gpmc-dtb-de2ce28acfb6

Best regards,

Comments

Rob Herring (Arm) Aug. 30, 2024, 5:43 p.m. UTC | #1
On Fri, Aug 30, 2024 at 03:27:53PM +0300, Roger Quadros wrote:
> Allow fixed-partitions to be specified through a partitions
> node.
> 
> Fixes the below dtbs_check warning:
> 
> arch/arm64/boot/dts/ti/k3-am642-evm-nand.dtb: nand@0,0: Unevaluated properties are not allowed ('partitions' was unexpected)
> 
> Signed-off-by: Roger Quadros <rogerq@kernel.org>
> ---
>  Documentation/devicetree/bindings/mtd/ti,gpmc-nand.yaml | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/mtd/ti,gpmc-nand.yaml b/Documentation/devicetree/bindings/mtd/ti,gpmc-nand.yaml
> index 115682fa81b7..c2143f943e7f 100644
> --- a/Documentation/devicetree/bindings/mtd/ti,gpmc-nand.yaml
> +++ b/Documentation/devicetree/bindings/mtd/ti,gpmc-nand.yaml
> @@ -61,6 +61,11 @@ properties:
>        GPIO connection to R/B signal from NAND chip
>      maxItems: 1
>  
> +  partitions:
> +    type: object
> +    description:
> +      Node containing description of fixed partitions.
> +
>  patternProperties:
>    "@[0-9a-f]+$":
>      $ref: /schemas/mtd/partitions/partition.yaml

This and the addition should be replaced with a mtd.yaml reference.

Rob
Miquel Raynal Sept. 2, 2024, 2:15 p.m. UTC | #2
Hi,

> > +  partitions:
> > +    type: object
> > +    description:
> > +      Node containing description of fixed partitions.
> > +
> >  patternProperties:
> >    "@[0-9a-f]+$":
> >      $ref: /schemas/mtd/partitions/partition.yaml  
> 
> This and the addition should be replaced with a mtd.yaml reference.

Yes, indeed.

Thanks,
Miquèl
Roger Quadros Sept. 3, 2024, 6:44 a.m. UTC | #3
On 02/09/2024 17:15, Miquel Raynal wrote:
> Hi,
> 
>>> +  partitions:
>>> +    type: object
>>> +    description:
>>> +      Node containing description of fixed partitions.
>>> +
>>>  patternProperties:
>>>    "@[0-9a-f]+$":
>>>      $ref: /schemas/mtd/partitions/partition.yaml  
>>
>> This and the addition should be replaced with a mtd.yaml reference.
> 
> Yes, indeed.

Thanks. Will revise and send v2.
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/mtd/ti,gpmc-nand.yaml b/Documentation/devicetree/bindings/mtd/ti,gpmc-nand.yaml
index 115682fa81b7..c2143f943e7f 100644
--- a/Documentation/devicetree/bindings/mtd/ti,gpmc-nand.yaml
+++ b/Documentation/devicetree/bindings/mtd/ti,gpmc-nand.yaml
@@ -61,6 +61,11 @@  properties:
       GPIO connection to R/B signal from NAND chip
     maxItems: 1
 
+  partitions:
+    type: object
+    description:
+      Node containing description of fixed partitions.
+
 patternProperties:
   "@[0-9a-f]+$":
     $ref: /schemas/mtd/partitions/partition.yaml