Commit 13f1033e authored by William Qiu's avatar William Qiu Committed by Mark Brown

dt-bindings: qspi: cdns,qspi-nor: constrain minItems/maxItems of resets

The QSPI controller needs three reset items to work properly on JH7110 SoC,
so there is need to change the maxItems's value to 3 and add minItems
whose value is equal to 2. Other platforms do not have this constraint.
Signed-off-by: default avatarWilliam Qiu <william.qiu@starfivetech.com>
Link: https://lore.kernel.org/r/20230302105221.197421-2-william.qiu@starfivetech.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent fe15c26e
...@@ -19,6 +19,33 @@ allOf: ...@@ -19,6 +19,33 @@ allOf:
then: then:
required: required:
- power-domains - power-domains
- if:
properties:
compatible:
contains:
const: starfive,jh7110-qspi
then:
properties:
resets:
minItems: 2
maxItems: 3
reset-names:
minItems: 2
maxItems: 3
items:
enum: [ qspi, qspi-ocp, rstc_ref ]
else:
properties:
resets:
maxItems: 2
reset-names:
minItems: 1
maxItems: 2
items:
enum: [ qspi, qspi-ocp ]
properties: properties:
compatible: compatible:
...@@ -30,6 +57,7 @@ properties: ...@@ -30,6 +57,7 @@ properties:
- intel,lgm-qspi - intel,lgm-qspi
- xlnx,versal-ospi-1.0 - xlnx,versal-ospi-1.0
- intel,socfpga-qspi - intel,socfpga-qspi
- starfive,jh7110-qspi
- const: cdns,qspi-nor - const: cdns,qspi-nor
- const: cdns,qspi-nor - const: cdns,qspi-nor
...@@ -79,13 +107,14 @@ properties: ...@@ -79,13 +107,14 @@ properties:
maxItems: 1 maxItems: 1
resets: resets:
maxItems: 2 minItems: 2
maxItems: 3
reset-names: reset-names:
minItems: 1 minItems: 2
maxItems: 2 maxItems: 3
items: items:
enum: [ qspi, qspi-ocp ] enum: [ qspi, qspi-ocp, rstc_ref ]
required: required:
- compatible - compatible
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment