Skip to content

Commit 4092fc5

Browse files
ConchuODbroonie
authored andcommitted
spi: dt-bindings: cadence: add soc-specific compatible strings for zynqmp and versal-net
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>
1 parent 2bfb20b commit 4092fc5

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Documentation/devicetree/bindings/spi/spi-cadence.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,14 @@ allOf:
1414

1515
properties:
1616
compatible:
17-
enum:
18-
- cdns,spi-r1p6
19-
- xlnx,zynq-spi-r1p6
17+
oneOf:
18+
- enum:
19+
- xlnx,zynq-spi-r1p6
20+
- items:
21+
- enum:
22+
- xlnx,zynqmp-spi-r1p6
23+
- xlnx,versal-net-spi-r1p6
24+
- const: cdns,spi-r1p6
2025

2126
reg:
2227
maxItems: 1

0 commit comments

Comments
 (0)