[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250522104745.327675-1-amit.kumar-mahapatra@amd.com>
Date: Thu, 22 May 2025 16:17:45 +0530
From: Amit Kumar Mahapatra <amit.kumar-mahapatra@....com>
To: <broonie@...nel.org>, <robh@...nel.org>, <krzk+dt@...nel.org>,
<conor+dt@...nel.org>
CC: <linux-spi@...r.kernel.org>, <devicetree@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <git@....com>, <amitrkcian2002@...il.com>,
Amit Kumar Mahapatra <amit.kumar-mahapatra@....com>
Subject: [PATCH v2] spi: dt-bindings: cdns,qspi-nor: Update minItems/maxItems of resets for Cadence OSPI controller
The Cadence Octal SPI (OSPI) controller on AMD Versal SoCs requires only
one reset entry. To reflect this, the maxItems for "resets" and
"reset-names" has been set to 1 for AMD Versal SoCs, and the minItems for
these properties has also been updated to 1.
Signed-off-by: Amit Kumar Mahapatra <amit.kumar-mahapatra@....com>
---
BRANCH: mtd/next
Changes in v2:
- Removed "resets" & "reset-names" from required properties.
- To address review comments, removed "maxItems" from "reset-names".
---
.../devicetree/bindings/spi/cdns,qspi-nor.yaml | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml b/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml
index d48ecd6cd5ad..648b8452877c 100644
--- a/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml
+++ b/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml
@@ -17,6 +17,13 @@ allOf:
contains:
const: xlnx,versal-ospi-1.0
then:
+ properties:
+ resets:
+ maxItems: 1
+
+ reset-names:
+ items:
+ enum: [ qspi ]
required:
- power-domains
- if:
@@ -132,11 +139,11 @@ properties:
maxItems: 1
resets:
- minItems: 2
+ minItems: 1
maxItems: 3
reset-names:
- minItems: 2
+ minItems: 1
maxItems: 3
items:
enum: [ qspi, qspi-ocp, rstc_ref ]
--
2.34.1
Powered by blists - more mailing lists