* [PATCH] dt-bindings: spi: zynqmp-qspi: Include two 'reg' properties only for the Zynq UltraScale QSPI
@ 2024-09-23 4:45 Amit Kumar Mahapatra
2024-09-24 22:02 ` Rob Herring
0 siblings, 1 reply; 2+ messages in thread
From: Amit Kumar Mahapatra @ 2024-09-23 4:45 UTC (permalink / raw)
To: broonie, robh, krzk+dt, conor+dt
Cc: michal.simek, linux-spi, devicetree, linux-arm-kernel,
linux-kernel, git, amitrkcian2002, Amit Kumar Mahapatra
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>
---
BRANCH: for-next
---
.../bindings/spi/spi-zynqmp-qspi.yaml | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/spi/spi-zynqmp-qspi.yaml b/Documentation/devicetree/bindings/spi/spi-zynqmp-qspi.yaml
index e5199b109dad..2f1fca137cd3 100644
--- a/Documentation/devicetree/bindings/spi/spi-zynqmp-qspi.yaml
+++ b/Documentation/devicetree/bindings/spi/spi-zynqmp-qspi.yaml
@@ -12,15 +12,27 @@ maintainers:
allOf:
- $ref: spi-controller.yaml#
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: xlnx,zynqmp-qspi-1.0
+ then:
+ properties:
+ reg:
+ maxItems: 2
+
+ else:
+ properties:
+ reg:
+ maxItems: 1
+
properties:
compatible:
enum:
- xlnx,versal-qspi-1.0
- xlnx,zynqmp-qspi-1.0
- reg:
- maxItems: 2
-
interrupts:
maxItems: 1
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] dt-bindings: spi: zynqmp-qspi: Include two 'reg' properties only for the Zynq UltraScale QSPI
2024-09-23 4:45 [PATCH] dt-bindings: spi: zynqmp-qspi: Include two 'reg' properties only for the Zynq UltraScale QSPI Amit Kumar Mahapatra
@ 2024-09-24 22:02 ` Rob Herring
0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring @ 2024-09-24 22:02 UTC (permalink / raw)
To: Amit Kumar Mahapatra
Cc: broonie, krzk+dt, conor+dt, michal.simek, linux-spi, devicetree,
linux-arm-kernel, linux-kernel, git, amitrkcian2002
On Mon, Sep 23, 2024 at 10:15:43AM +0530, Amit Kumar Mahapatra wrote:
> 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>
> ---
> BRANCH: for-next
> ---
> .../bindings/spi/spi-zynqmp-qspi.yaml | 18 +++++++++++++++---
> 1 file changed, 15 insertions(+), 3 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/spi/spi-zynqmp-qspi.yaml b/Documentation/devicetree/bindings/spi/spi-zynqmp-qspi.yaml
> index e5199b109dad..2f1fca137cd3 100644
> --- a/Documentation/devicetree/bindings/spi/spi-zynqmp-qspi.yaml
> +++ b/Documentation/devicetree/bindings/spi/spi-zynqmp-qspi.yaml
> @@ -12,15 +12,27 @@ maintainers:
> allOf:
> - $ref: spi-controller.yaml#
>
> + - if:
> + properties:
> + compatible:
> + contains:
> + const: xlnx,zynqmp-qspi-1.0
> + then:
> + properties:
> + reg:
> + maxItems: 2
Change this to 'minItems: 2'.
> +
> + else:
> + properties:
> + reg:
> + maxItems: 1
> +
> properties:
> compatible:
> enum:
> - xlnx,versal-qspi-1.0
> - xlnx,zynqmp-qspi-1.0
>
> - reg:
> - maxItems: 2
Keep this and add 'minItems: 1'
> -
> interrupts:
> maxItems: 1
>
> --
> 2.34.1
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-09-24 22:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-23 4:45 [PATCH] dt-bindings: spi: zynqmp-qspi: Include two 'reg' properties only for the Zynq UltraScale QSPI Amit Kumar Mahapatra
2024-09-24 22:02 ` Rob Herring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).