Skip to contentSkip to conversation

dt-binding: memory-controllers: fsl,ifc: add compatible string fsl,ifc-nand

PATCH Superseded Frank Li 3 participants 4 messages Aug 14, 2024 – Aug 20, 2024

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Frank Li

author maintainer
#0 lore raw

PATCH v2 1/1 dt-binding: memory-controllers: fsl,ifc: add compatible string fsl,ifc-nand

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']

---
Change from v1 to v2
- add address-cells and size-cells

---
 .../memory-controllers/fsl/fsl,ifc.yaml       | 21 +++++++++++++++++++
 1 file changed, 21 insertions(+)
Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml +21 -0
index d1c3421bee107..c12bb7f51db62 100644
@@ -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: |
Signature · 1 line
2.34.1
maintainer
#1 lore raw
Quoted 27 lines · Frank Li

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']

---
Change from v1 to v2
- add address-cells and size-cells

---
 .../memory-controllers/fsl/fsl,ifc.yaml       | 21 +++++++++++++++++++
 1 file changed, 21 insertions(+)
Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml +4 -0
index d1c3421bee107..c12bb7f51db62 100644
@@ -58,6 +58,27 @@ properties:
       access window as configured.
 
 patternProperties:
+  "^nand@[a-f0-9]+(,[a-f0-9]+)+$":
+    type: object
+    properties:
+      compatible:

Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml properties: · line 74

Quoted 10 lines
Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml +10 -0
+        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.

Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml properties: · line 80

Quoted 6 lines
Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml +6 -0
+
+    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.

Quoted 7 lines
Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml +1 -0
+
   "^.*@[a-f0-9]+(,[a-f0-9]+)+$":
     type: object
     description: |
Signature · 1 line
2.34.1
author maintainer
#2 lore raw
Quoted 32 lines · Rob Herring
Quoted 31 lines · Frank Li

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']

---
Change from v1 to v2
- add address-cells and size-cells

---
 .../memory-controllers/fsl/fsl,ifc.yaml       | 21 +++++++++++++++++++
 1 file changed, 21 insertions(+)
Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml +8 -0
index d1c3421bee107..c12bb7f51db62 100644
@@ -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
Quoted 8 lines

Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml properties: · line 74

Quoted 6 lines
Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml +6 -0
+
+      "#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.

Quoted 9 lines

Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml properties: · line 80

Quoted 7 lines
Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml +6 -0
+
+    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

Quoted 3 lines

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

Quoted 8 lines
Quoted 8 lines
Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml +1 -1
+
   "^.*@[a-f0-9]+(,[a-f0-9]+)+$":
     type: object
     description: |
--

2.34.1

#3 lore raw
In reply to Frank Li
Quoted 11 lines · Frank Li

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']

---
Change from v1 to v2
- add address-cells and size-cells

... and since you are resending, subject prefix is dt-bindings.

Best regards,
Krzysztof