devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: mtd: ti, gpmc-nand: support partitions node
@ 2024-08-30 12:27 Roger Quadros
  2024-08-30 17:43 ` Rob Herring
  0 siblings, 1 reply; 4+ messages in thread
From: Roger Quadros @ 2024-08-30 12:27 UTC (permalink / raw)
  To: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Tony Lindgren,
	Nishanth Menon
  Cc: srk, linux-mtd, devicetree, linux-kernel, Roger Quadros

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

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

Best regards,
-- 
Roger Quadros <rogerq@kernel.org>


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] dt-bindings: mtd: ti, gpmc-nand: support partitions node
  2024-08-30 12:27 [PATCH] dt-bindings: mtd: ti, gpmc-nand: support partitions node Roger Quadros
@ 2024-08-30 17:43 ` Rob Herring
  2024-09-02 14:15   ` Miquel Raynal
  0 siblings, 1 reply; 4+ messages in thread
From: Rob Herring @ 2024-08-30 17:43 UTC (permalink / raw)
  To: Roger Quadros
  Cc: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
	Krzysztof Kozlowski, Conor Dooley, Tony Lindgren, Nishanth Menon,
	srk, linux-mtd, devicetree, linux-kernel

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] dt-bindings: mtd: ti, gpmc-nand: support partitions node
  2024-08-30 17:43 ` Rob Herring
@ 2024-09-02 14:15   ` Miquel Raynal
  2024-09-03  6:44     ` Roger Quadros
  0 siblings, 1 reply; 4+ messages in thread
From: Miquel Raynal @ 2024-09-02 14:15 UTC (permalink / raw)
  To: Rob Herring
  Cc: Roger Quadros, Richard Weinberger, Vignesh Raghavendra,
	Krzysztof Kozlowski, Conor Dooley, Tony Lindgren, Nishanth Menon,
	srk, linux-mtd, devicetree, linux-kernel

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] dt-bindings: mtd: ti, gpmc-nand: support partitions node
  2024-09-02 14:15   ` Miquel Raynal
@ 2024-09-03  6:44     ` Roger Quadros
  0 siblings, 0 replies; 4+ messages in thread
From: Roger Quadros @ 2024-09-03  6:44 UTC (permalink / raw)
  To: Miquel Raynal, Rob Herring
  Cc: Richard Weinberger, Vignesh Raghavendra, Krzysztof Kozlowski,
	Conor Dooley, Tony Lindgren, Nishanth Menon, srk, linux-mtd,
	devicetree, linux-kernel



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.

-- 
cheers,
-roger

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-09-03  6:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-30 12:27 [PATCH] dt-bindings: mtd: ti, gpmc-nand: support partitions node Roger Quadros
2024-08-30 17:43 ` Rob Herring
2024-09-02 14:15   ` Miquel Raynal
2024-09-03  6:44     ` Roger Quadros

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).