]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
dt-bindings: spi: zynqmp-qspi: Include two 'reg' properties only for the Zynq UltraSc...
authorAmit Kumar Mahapatra <amit.kumar-mahapatra@amd.com>
Wed, 25 Sep 2024 11:42:03 +0000 (17:12 +0530)
committerMark Brown <broonie@kernel.org>
Sun, 29 Sep 2024 23:12:24 +0000 (01:12 +0200)
Linear mode is only supported by the Zynq UltraScale QSPI controller,
so update the bindings to include two 'reg' properties only for the
Zynq UltraScale QSPI controller.

Signed-off-by: Amit Kumar Mahapatra <amit.kumar-mahapatra@amd.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://patch.msgid.link/20240925114203.2234735-1-amit.kumar-mahapatra@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/spi/spi-zynqmp-qspi.yaml

index e5199b109dad9f06f273449432943dc10b1f4d13..04d4d3b4916dbbe510f331a5a2b70813530a2a7c 100644 (file)
@@ -9,9 +9,6 @@ title: Xilinx Zynq UltraScale+ MPSoC GQSPI controller
 maintainers:
   - Michal Simek <michal.simek@amd.com>
 
-allOf:
-  - $ref: spi-controller.yaml#
-
 properties:
   compatible:
     enum:
@@ -19,6 +16,7 @@ properties:
       - xlnx,zynqmp-qspi-1.0
 
   reg:
+    minItems: 1
     maxItems: 2
 
   interrupts:
@@ -47,6 +45,24 @@ required:
 
 unevaluatedProperties: false
 
+allOf:
+  - $ref: spi-controller.yaml#
+
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: xlnx,zynqmp-qspi-1.0
+    then:
+      properties:
+        reg:
+          minItems: 2
+
+    else:
+      properties:
+        reg:
+          maxItems: 1
+
 examples:
   - |
     #include <dt-bindings/clock/xlnx-zynqmp-clk.h>