Skip to content

Commit 89e6684

Browse files
nxpfranklikrzk
authored andcommitted
dt-bindings: memory-controllers: fsl,ifc: split child node differences
ifc can connect nor, nand and fpag. Split "^.*@..." into "nand@..." and "(flash|fpga|board-control|cpld)@..." to better describe the child's node binding requirements. 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]> Reviewed-by: Rob Herring (Arm) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Krzysztof Kozlowski <[email protected]>
1 parent 9852d85 commit 89e6684

File tree

1 file changed

+27
-5
lines changed
  • Documentation/devicetree/bindings/memory-controllers/fsl

1 file changed

+27
-5
lines changed

Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ifc.yaml

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,39 @@ properties:
5858
access window as configured.
5959
6060
patternProperties:
61-
"^.*@[a-f0-9]+(,[a-f0-9]+)+$":
61+
"^nand@[a-f0-9]+(,[a-f0-9]+)+$":
6262
type: object
63-
description: |
64-
Child device nodes describe the devices connected to IFC such as NOR (e.g.
65-
cfi-flash) and NAND (fsl,ifc-nand). There might be board specific devices
66-
like FPGAs, CPLDs, etc.
63+
properties:
64+
compatible:
65+
const: fsl,ifc-nand
66+
67+
reg:
68+
maxItems: 1
69+
70+
"#address-cells":
71+
const: 1
72+
73+
"#size-cells":
74+
const: 1
75+
76+
patternProperties:
77+
"^partition@[0-9a-f]+":
78+
$ref: /schemas/mtd/partitions/partition.yaml#
79+
deprecated: true
6780

6881
required:
6982
- compatible
7083
- reg
7184

85+
additionalProperties: false
86+
87+
"(flash|fpga|board-control|cpld)@[a-f0-9]+(,[a-f0-9]+)+$":
88+
type: object
89+
oneOf:
90+
- $ref: /schemas/board/fsl,fpga-qixis.yaml#
91+
- $ref: /schemas/mtd/mtd-physmap.yaml#
92+
unevaluatedProperties: false
93+
7294
required:
7395
- compatible
7496
- reg

0 commit comments

Comments
 (0)