1 From 464fa29e8f3fb2c209647efbb365470b35daec38 Mon Sep 17 00:00:00 2001
2 From: William Qiu <william.qiu@starfivetech.com>
3 Date: Thu, 2 Mar 2023 18:52:20 +0800
4 Subject: [PATCH 092/122] dt-bindings: qspi: cdns,qspi-nor: constrain
5 minItems/maxItems of resets
7 The QSPI controller needs three reset items to work properly on JH7110 SoC,
8 so there is need to change the maxItems's value to 3 and add minItems
9 whose value is equal to 2. Other platforms do not have this constraint.
11 Signed-off-by: William Qiu <william.qiu@starfivetech.com>
13 .../bindings/spi/cdns,qspi-nor.yaml | 37 +++++++++++++++++--
14 1 file changed, 33 insertions(+), 4 deletions(-)
16 --- a/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml
17 +++ b/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml
18 @@ -19,6 +19,33 @@ allOf:
26 + const: starfive,jh7110-qspi
37 + enum: [ qspi, qspi-ocp, rstc_ref ]
48 + enum: [ qspi, qspi-ocp ]
52 @@ -30,6 +57,7 @@ properties:
54 - xlnx,versal-ospi-1.0
56 + - starfive,jh7110-qspi
57 - const: cdns,qspi-nor
58 - const: cdns,qspi-nor
60 @@ -79,13 +107,14 @@ properties:
74 - enum: [ qspi, qspi-ocp ]
75 + enum: [ qspi, qspi-ocp, rstc_ref ]