Skip to contentSkip to conversation

spi: dt-bindings: cdns,qspi-nor: Update minItems/maxItems of resets for Cadence OSPI controller

PATCH In review Amit Kumar Mahapatra 2 participants 2 messages May 27, 2025 – Jun 2, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 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.

---
BRANCH: mtd/next

Changes in v3:
- Updates to 'resets' and 'reset-names' removed for non-Versal platforms.
- Updated patch description.
- Added Mark's Acked-by tag.

Changes in v2:
- Removed "resets" & "reset-names" from required properties.
- To address review comments, removed "maxItems" from "reset-names".
---

 Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml | 7 +++++++
 1 file changed, 7 insertions(+)
Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml +7 -0
index d48ecd6cd5ad..81e8342db4bc 100644
@@ -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:
Signature · 1 line
2.34.1
#1 lore raw
Quoted 26 lines · Amit Kumar Mahapatra

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.

---
BRANCH: mtd/next

Changes in v3:
- Updates to 'resets' and 'reset-names' removed for non-Versal platforms.
- Updated patch description.
- Added Mark's Acked-by tag.

Changes in v2:
- Removed "resets" & "reset-names" from required properties.
- To address review comments, removed "maxItems" from "reset-names".
---

 Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml | 7 +++++++
 1 file changed, 7 insertions(+)
Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml +0 -0
index d48ecd6cd5ad..81e8342db4bc 100644

Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml allOf: · line 22

Quoted 6 lines
Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml +3 -0
@@ -17,6 +17,13 @@ allOf:
           contains:
             const: xlnx,versal-ospi-1.0
     then:
+      properties:
+        resets:
+          maxItems: 1

And now this is not synced with top-level properties. They say minItems:2. I never asked to drop update of top-level - read carefully v1 feedback.

Best regards,
Krzysztof