* [PATCH v2 1/1] dt-binding: memory-controllers: fsl,ifc: add compatible string fsl,ifc-nand
@ 2024-08-14 21:29 Frank Li
2024-08-18 15:39 ` Rob Herring
2024-08-19 19:57 ` Krzysztof Kozlowski
0 siblings, 2 replies; 4+ messages in thread
From: Frank Li @ 2024-08-14 21:29 UTC (permalink / raw)
To: Krzysztof Kozlowski, Rob Herring, Conor Dooley, Michael Walle,
Shawn Guo, open list:MEMORY CONTROLLER DRIVERS,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS
Cc: imx
ifc can connect nor, nand and fpag. Add child node "nand@" under fsl,ifc
and compatible string "fsl,ifc-nand" when ifc connect to nand flash.
Fix below warning:
arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dtb: /soc/memory-controller@1530000/nand@1,0:
failed to match any schema with compatible: ['fsl,ifc-nand']
Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
Change from v1 to v2
- add address-cells and size-cells
---
.../memory-controllers/fsl/fsl,ifc.yaml | 21 +++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml b/Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml
index d1c3421bee107..c12bb7f51db62 100644
--- a/Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml
+++ b/Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml
@@ -58,6 +58,27 @@ properties:
access window as configured.
patternProperties:
+ "^nand@[a-f0-9]+(,[a-f0-9]+)+$":
+ type: object
+ properties:
+ compatible:
+ const: fsl,ifc-nand
+
+ reg:
+ maxItems: 1
+
+ "#address-cells":
+ const: 1
+
+ "#size-cells":
+ const: 1
+
+ required:
+ - compatible
+ - reg
+
+ additionalProperties: false
+
"^.*@[a-f0-9]+(,[a-f0-9]+)+$":
type: object
description: |
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2 1/1] dt-binding: memory-controllers: fsl,ifc: add compatible string fsl,ifc-nand
2024-08-14 21:29 [PATCH v2 1/1] dt-binding: memory-controllers: fsl,ifc: add compatible string fsl,ifc-nand Frank Li
@ 2024-08-18 15:39 ` Rob Herring
2024-08-20 18:11 ` Frank Li
2024-08-19 19:57 ` Krzysztof Kozlowski
1 sibling, 1 reply; 4+ messages in thread
From: Rob Herring @ 2024-08-18 15:39 UTC (permalink / raw)
To: Frank Li
Cc: Krzysztof Kozlowski, Conor Dooley, Michael Walle, Shawn Guo,
open list:MEMORY CONTROLLER DRIVERS,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, imx
On Wed, Aug 14, 2024 at 05:29:57PM -0400, Frank Li wrote:
> ifc can connect nor, nand and fpag. Add child node "nand@" under fsl,ifc
> and compatible string "fsl,ifc-nand" when ifc connect to nand flash.
>
> Fix below warning:
> arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dtb: /soc/memory-controller@1530000/nand@1,0:
> failed to match any schema with compatible: ['fsl,ifc-nand']
>
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
> ---
> Change from v1 to v2
> - add address-cells and size-cells
> ---
> .../memory-controllers/fsl/fsl,ifc.yaml | 21 +++++++++++++++++++
> 1 file changed, 21 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml b/Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml
> index d1c3421bee107..c12bb7f51db62 100644
> --- a/Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml
> +++ b/Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml
> @@ -58,6 +58,27 @@ properties:
> access window as configured.
>
> patternProperties:
> + "^nand@[a-f0-9]+(,[a-f0-9]+)+$":
> + type: object
> + properties:
> + compatible:
> + const: fsl,ifc-nand
> +
> + reg:
> + maxItems: 1
> +
> + "#address-cells":
> + const: 1
> +
> + "#size-cells":
> + const: 1
These only apply to child nodes, but you've disabled any child nodes.
> +
> + required:
> + - compatible
> + - reg
> +
> + additionalProperties: false
You could minimally make this 'type: object' instead of false.
Or does this follow the nand controller and chip bindings? May not being
older binding.
> +
> "^.*@[a-f0-9]+(,[a-f0-9]+)+$":
> type: object
> description: |
> --
> 2.34.1
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2 1/1] dt-binding: memory-controllers: fsl,ifc: add compatible string fsl,ifc-nand
2024-08-14 21:29 [PATCH v2 1/1] dt-binding: memory-controllers: fsl,ifc: add compatible string fsl,ifc-nand Frank Li
2024-08-18 15:39 ` Rob Herring
@ 2024-08-19 19:57 ` Krzysztof Kozlowski
1 sibling, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2024-08-19 19:57 UTC (permalink / raw)
To: Frank Li, Rob Herring, Conor Dooley, Michael Walle, Shawn Guo,
open list:MEMORY CONTROLLER DRIVERS,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS
Cc: imx
On 14/08/2024 23:29, Frank Li wrote:
> ifc can connect nor, nand and fpag. Add child node "nand@" under fsl,ifc
> and compatible string "fsl,ifc-nand" when ifc connect to nand flash.
>
> Fix below warning:
> arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dtb: /soc/memory-controller@1530000/nand@1,0:
> failed to match any schema with compatible: ['fsl,ifc-nand']
>
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
> ---
> Change from v1 to v2
> - add address-cells and size-cells
... and since you are resending, subject prefix is dt-bindings.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2 1/1] dt-binding: memory-controllers: fsl,ifc: add compatible string fsl,ifc-nand
2024-08-18 15:39 ` Rob Herring
@ 2024-08-20 18:11 ` Frank Li
0 siblings, 0 replies; 4+ messages in thread
From: Frank Li @ 2024-08-20 18:11 UTC (permalink / raw)
To: Rob Herring
Cc: Krzysztof Kozlowski, Conor Dooley, Michael Walle, Shawn Guo,
open list:MEMORY CONTROLLER DRIVERS,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, imx
On Sun, Aug 18, 2024 at 09:39:14AM -0600, Rob Herring wrote:
> On Wed, Aug 14, 2024 at 05:29:57PM -0400, Frank Li wrote:
> > ifc can connect nor, nand and fpag. Add child node "nand@" under fsl,ifc
> > and compatible string "fsl,ifc-nand" when ifc connect to nand flash.
> >
> > Fix below warning:
> > arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dtb: /soc/memory-controller@1530000/nand@1,0:
> > failed to match any schema with compatible: ['fsl,ifc-nand']
> >
> > Signed-off-by: Frank Li <Frank.Li@nxp.com>
> > ---
> > Change from v1 to v2
> > - add address-cells and size-cells
> > ---
> > .../memory-controllers/fsl/fsl,ifc.yaml | 21 +++++++++++++++++++
> > 1 file changed, 21 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml b/Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml
> > index d1c3421bee107..c12bb7f51db62 100644
> > --- a/Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml
> > +++ b/Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml
> > @@ -58,6 +58,27 @@ properties:
> > access window as configured.
> >
> > patternProperties:
> > + "^nand@[a-f0-9]+(,[a-f0-9]+)+$":
> > + type: object
> > + properties:
> > + compatible:
> > + const: fsl,ifc-nand
> > +
> > + reg:
> > + maxItems: 1
> > +
> > + "#address-cells":
> > + const: 1
> > +
> > + "#size-cells":
> > + const: 1
>
> These only apply to child nodes, but you've disabled any child nodes.
I will add mtd partition for it.
>
> > +
> > + required:
> > + - compatible
> > + - reg
> > +
> > + additionalProperties: false
>
> You could minimally make this 'type: object' instead of false.
Sorry, I have not understood your means. I already set nand@*** as object.
nand@[a-f0-9]+(,[a-f0-9]+)+$":
type: object
>
> Or does this follow the nand controller and chip bindings? May not being
> older binding.
I check if-nand driver, which have not parse other nand controller's
property yet.
Frank
>
> > +
> > "^.*@[a-f0-9]+(,[a-f0-9]+)+$":
> > type: object
> > description: |
> > --
> > 2.34.1
> >
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-08-20 18:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-14 21:29 [PATCH v2 1/1] dt-binding: memory-controllers: fsl,ifc: add compatible string fsl,ifc-nand Frank Li
2024-08-18 15:39 ` Rob Herring
2024-08-20 18:11 ` Frank Li
2024-08-19 19:57 ` Krzysztof Kozlowski
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).