]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
spi: dt-bindings: cadence: add soc-specific compatible strings for zynqmp and versal-net
authorConor Dooley <conor.dooley@microchip.com>
Wed, 1 Oct 2025 18:31:12 +0000 (19:31 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 2 Oct 2025 12:31:49 +0000 (13:31 +0100)
When the binding for the Cadence spi controller was written, a dedicated
compatible was added for the zynq device. Later when zynqmp and
versal-net, which also use this spi controller IP, were added they did
not receive soc-specific compatibles. Add them now, with a fallback to
the existing compatible for the r1p6 version of the IP so that there
will be no functional change. Retain the r1p6 in the string, to match
what was done for zynq.

Disallow the cdns,spi-r1p6 compatible in isolation to "encourage" people
to actually add soc-specific compatible strings in the future.

Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Acked-by: Michal Simek <michal.simek@amd.com>
Link: https://patch.msgid.link/20251001-basics-grafting-a1a214ef65ac@spud
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/spi/spi-cadence.yaml

index 8de96abe9da12f1e2ad47cf6217127bb18f2ca73..27414b78d61d80543a6caf664e448ae35578471e 100644 (file)
@@ -14,9 +14,14 @@ allOf:
 
 properties:
   compatible:
-    enum:
-      - cdns,spi-r1p6
-      - xlnx,zynq-spi-r1p6
+    oneOf:
+      - enum:
+          - xlnx,zynq-spi-r1p6
+      - items:
+          - enum:
+              - xlnx,zynqmp-spi-r1p6
+              - xlnx,versal-net-spi-r1p6
+          - const: cdns,spi-r1p6
 
   reg:
     maxItems: 1