dt-bindings: memory-controllers: fsl,ifc: add compatible string fsl,ifc-nand
Frank Li
maintainerPATCH v3 1/1 dt-bindings: 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 v2 to v3
- add partition child node for nand
- Only partition property is used at ppc
Change from v1 to v2
- add address-cells and size-cells
--- .../memory-controllers/fsl/fsl,ifc.yaml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+)
Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml +26 -0
@@ -58,6 +58,32 @@ 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 + + patternProperties: + "^partition@[0-9a-f]+": + $ref: /schemas/mtd/partitions/partition.yaml# + deprecated: true + + required: + - compatible + - reg + + additionalProperties: false + "^.*@[a-f0-9]+(,[a-f0-9]+)+$": type: object description: |
Signature · 1 line
2.34.1
Krzysztof Kozlowski
maintainerQuoted 43 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']Signed-off-by Frank Li <[email protected]>---
Change from v2 to v3
- add partition child node for nand
- Only partition property is used at ppc
Change from v1 to v2
- add address-cells and size-cells--- .../memory-controllers/fsl/fsl,ifc.yaml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+)Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml +17
-0@@ -58,6 +58,32 @@ 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 + + patternProperties: + "^partition@[0-9a-f]+":
Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml properties: · line 87
Quoted 10 lines
Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml +9
-0+ $ref: /schemas/mtd/partitions/partition.yaml# + deprecated: true + + required: + - compatible + - reg + + additionalProperties: false + "^.*@[a-f0-9]+(,[a-f0-9]+)+$":
This pattern is for NAND already. I don't understand why you are duplicating it. If this part does not work, fix it.
Best regards,
Krzysztof
Frank Li
maintainerQuoted 49 lines · Krzysztof Kozlowski
Quoted 48 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']Signed-off-by Frank Li <[email protected]>---
Change from v2 to v3
- add partition child node for nand
- Only partition property is used at ppc
Change from v1 to v2
- add address-cells and size-cells--- .../memory-controllers/fsl/fsl,ifc.yaml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+)Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml +22
-0@@ -58,6 +58,32 @@ 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 + + patternProperties: + "^partition@[0-9a-f]+": + $ref: /schemas/mtd/partitions/partition.yaml# + deprecated: true + + required: + - compatible
Quoted 8 lines
Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml properties: · line 87
Quoted 5 lines
Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml +4
-0+ - reg + + additionalProperties: false + "^.*@[a-f0-9]+(,[a-f0-9]+)+$":This pattern is for NAND already. I don't understand why you are duplicating it. If this part does not work, fix it.
It is old binding. It did not require compatible string. It should split into nand\flash\fpga ...
The difference part require difference compatible string. NAND is only 1st step to improve it.
Frank
Quoted 4 lines
Best regards,
Krzysztof
Krzysztof Kozlowski
maintainerQuoted 59 lines · Frank Li
Quoted 49 lines · Krzysztof Kozlowski
Quoted 48 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']Signed-off-by Frank Li <[email protected]>---
Change from v2 to v3
- add partition child node for nand
- Only partition property is used at ppc
Change from v1 to v2
- add address-cells and size-cells--- .../memory-controllers/fsl/fsl,ifc.yaml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+)Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml +22
-0@@ -58,6 +58,32 @@ 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 + + patternProperties: + "^partition@[0-9a-f]+": + $ref: /schemas/mtd/partitions/partition.yaml# + deprecated: true + + required: + - compatibleQuoted 8 lines
Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml properties: · line 87
Quoted 5 lines
Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml +4
-0+ - reg + + additionalProperties: false + "^.*@[a-f0-9]+(,[a-f0-9]+)+$":This pattern is for NAND already. I don't understand why you are duplicating it. If this part does not work, fix it.
Quoted 5 lines
It is old binding. It did not require compatible string. It should split into nand\flash\fpga ...
The difference part require difference compatible string. NAND is only 1st step to improve it.
I understand. I would prefer to make it complete, which you are quite close to it. Just change the remaining pattern for example:
(flash|fpga)......:
type: object
oneOf:
- $ref: /schemas/board/fsl,fpga-qixis.yaml#
- $ref: /schemas/mtd/mtd-physmap.yaml#
unevaluatedProperties: false
or something similar.
Best regards,
Krzysztof