Skip to content

Commit b01a731

Browse files
nxpfranklibp3tk0v
authored andcommitted
dt-bindings: memory: fsl: Add compatible string nxp,imx9-memory-controller
iMX9 memory controller is similar with other layerscape chips. But some register layout has a little bit difference, so add new compatible string 'nxp,imx9-memory-controller' for it. imx9 need two 'reg', one for DDR controller and the other is ECC inject engine register space. Keep the same restriction for other compatible string. Signed-off-by: Frank Li <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 9ec22ac commit b01a731

File tree

1 file changed

+30
-1
lines changed
  • Documentation/devicetree/bindings/memory-controllers/fsl

1 file changed

+30
-1
lines changed

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

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ properties:
4040
- fsl,p1021-memory-controller
4141
- fsl,p2020-memory-controller
4242
- fsl,qoriq-memory-controller
43+
- nxp,imx9-memory-controller
4344

4445
interrupts:
4546
maxItems: 1
@@ -51,13 +52,41 @@ properties:
5152
type: boolean
5253

5354
reg:
54-
maxItems: 1
55+
items:
56+
- description: Controller register space
57+
- description: Inject register space
58+
minItems: 1
59+
60+
reg-names:
61+
items:
62+
- const: ctrl
63+
- const: inject
64+
minItems: 1
5565

5666
required:
5767
- compatible
5868
- interrupts
5969
- reg
6070

71+
allOf:
72+
- if:
73+
properties:
74+
compatible:
75+
contains:
76+
enum:
77+
- nxp,imx9-memory-controller
78+
then:
79+
properties:
80+
reg:
81+
minItems: 2
82+
reg-names:
83+
minItems: 2
84+
else:
85+
properties:
86+
reg:
87+
maxItems: 1
88+
reg-names: false
89+
6190
additionalProperties: false
6291

6392
examples:

0 commit comments

Comments
 (0)