Skip to content

Commit 759541d

Browse files
Amit Kumar Mahapatrabroonie
authored andcommitted
dt-bindings: spi: zynqmp-qspi: Include two 'reg' properties only for the Zynq UltraScale QSPI
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>
1 parent 494c3dc commit 759541d

1 file changed

Lines changed: 19 additions & 3 deletions

File tree

Documentation/devicetree/bindings/spi/spi-zynqmp-qspi.yaml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,14 @@ title: Xilinx Zynq UltraScale+ MPSoC GQSPI controller
99
maintainers:
1010
- Michal Simek <michal.simek@amd.com>
1111

12-
allOf:
13-
- $ref: spi-controller.yaml#
14-
1512
properties:
1613
compatible:
1714
enum:
1815
- xlnx,versal-qspi-1.0
1916
- xlnx,zynqmp-qspi-1.0
2017

2118
reg:
19+
minItems: 1
2220
maxItems: 2
2321

2422
interrupts:
@@ -47,6 +45,24 @@ required:
4745

4846
unevaluatedProperties: false
4947

48+
allOf:
49+
- $ref: spi-controller.yaml#
50+
51+
- if:
52+
properties:
53+
compatible:
54+
contains:
55+
const: xlnx,zynqmp-qspi-1.0
56+
then:
57+
properties:
58+
reg:
59+
minItems: 2
60+
61+
else:
62+
properties:
63+
reg:
64+
maxItems: 1
65+
5066
examples:
5167
- |
5268
#include <dt-bindings/clock/xlnx-zynqmp-clk.h>

0 commit comments

Comments
 (0)