* [PATCH] spi: dt-bindings: cdns,qspi-nor: Update minItems/maxItems of resets for Cadence OSPI controller
@ 2025-03-26 11:37 Amit Kumar Mahapatra
2025-03-26 12:21 ` Krzysztof Kozlowski
0 siblings, 1 reply; 3+ messages in thread
From: Amit Kumar Mahapatra @ 2025-03-26 11:37 UTC (permalink / raw)
To: broonie, robh, krzk+dt, conor+dt
Cc: linux-spi, devicetree, linux-kernel, git, amitrkcian2002,
Amit Kumar Mahapatra
The Cadence Octal SPI (OSPI) controller on AMD Versal SoCs requires only
one reset entry. To reflect this, the maxItems for "resets" and
"reset-names" has been set to 1 for AMD Versal SoCs, and the minItems for
these properties has also been updated to 1. Additionally, these properties
have been added to the required property list for Versal SoCs.
Signed-off-by: Amit Kumar Mahapatra <amit.kumar-mahapatra@amd.com>
---
BRANCH: mtd/next
---
.../devicetree/bindings/spi/cdns,qspi-nor.yaml | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml b/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml
index d48ecd6cd5ad..cc94c59280a1 100644
--- a/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml
+++ b/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml
@@ -17,8 +17,18 @@ allOf:
contains:
const: xlnx,versal-ospi-1.0
then:
+ properties:
+ resets:
+ maxItems: 1
+
+ reset-names:
+ maxItems: 1
+ items:
+ enum: [ qspi ]
required:
- power-domains
+ - resets
+ - reset-names
- if:
properties:
compatible:
@@ -132,11 +142,11 @@ properties:
maxItems: 1
resets:
- minItems: 2
+ minItems: 1
maxItems: 3
reset-names:
- minItems: 2
+ minItems: 1
maxItems: 3
items:
enum: [ qspi, qspi-ocp, rstc_ref ]
--
2.34.1
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] spi: dt-bindings: cdns,qspi-nor: Update minItems/maxItems of resets for Cadence OSPI controller
2025-03-26 11:37 [PATCH] spi: dt-bindings: cdns,qspi-nor: Update minItems/maxItems of resets for Cadence OSPI controller Amit Kumar Mahapatra
@ 2025-03-26 12:21 ` Krzysztof Kozlowski
2025-03-28 13:42 ` Mahapatra, Amit Kumar
0 siblings, 1 reply; 3+ messages in thread
From: Krzysztof Kozlowski @ 2025-03-26 12:21 UTC (permalink / raw)
To: Amit Kumar Mahapatra, broonie, robh, krzk+dt, conor+dt
Cc: linux-spi, devicetree, linux-kernel, git, amitrkcian2002
On 26/03/2025 12:37, Amit Kumar Mahapatra wrote:
> The Cadence Octal SPI (OSPI) controller on AMD Versal SoCs requires only
> one reset entry. To reflect this, the maxItems for "resets" and
> "reset-names" has been set to 1 for AMD Versal SoCs, and the minItems for
> these properties has also been updated to 1. Additionally, these properties
> have been added to the required property list for Versal SoCs.
>
> Signed-off-by: Amit Kumar Mahapatra <amit.kumar-mahapatra@amd.com>
> ---
> BRANCH: mtd/next
> ---
> .../devicetree/bindings/spi/cdns,qspi-nor.yaml | 14 ++++++++++++--
> 1 file changed, 12 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml b/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml
> index d48ecd6cd5ad..cc94c59280a1 100644
> --- a/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml
> +++ b/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml
> @@ -17,8 +17,18 @@ allOf:
> contains:
> const: xlnx,versal-ospi-1.0
> then:
> + properties:
> + resets:
> + maxItems: 1
> +
> + reset-names:
> + maxItems: 1
> + items:
> + enum: [ qspi ]
Just list the items instead of these three lines.
> required:
> - power-domains
> + - resets
> + - reset-names
Why? That's an ABI break.
> - if:
> properties:
> compatible:
> @@ -132,11 +142,11 @@ properties:
> maxItems: 1
>
> resets:
> - minItems: 2
> + minItems: 1
You need to update other variants now.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH] spi: dt-bindings: cdns,qspi-nor: Update minItems/maxItems of resets for Cadence OSPI controller
2025-03-26 12:21 ` Krzysztof Kozlowski
@ 2025-03-28 13:42 ` Mahapatra, Amit Kumar
0 siblings, 0 replies; 3+ messages in thread
From: Mahapatra, Amit Kumar @ 2025-03-28 13:42 UTC (permalink / raw)
To: Krzysztof Kozlowski, broonie, robh, krzk+dt, conor+dt
Cc: linux-spi, devicetree, linux-kernel, git (AMD-Xilinx), amitrkcian2002
[AMD Official Use Only - AMD Internal Distribution Only]
Hello Krzysztof,
> -----Original Message-----
> From: Krzysztof Kozlowski <krzk@kernel.org>
> Sent: Wednesday, March 26, 2025 5:51 PM
> To: Mahapatra, Amit Kumar <amit.kumar-mahapatra@amd.com>;
> broonie@kernel.org; robh@kernel.org; krzk+dt@kernel.org; conor+dt@kernel.org
> Cc: linux-spi@vger.kernel.org; devicetree@vger.kernel.org; linux-
> kernel@vger.kernel.org; git (AMD-Xilinx) <git@amd.com>;
> amitrkcian2002@gmail.com
> Subject: Re: [PATCH] spi: dt-bindings: cdns,qspi-nor: Update minItems/maxItems of
> resets for Cadence OSPI controller
>
> On 26/03/2025 12:37, Amit Kumar Mahapatra wrote:
> > The Cadence Octal SPI (OSPI) controller on AMD Versal SoCs requires
> > only one reset entry. To reflect this, the maxItems for "resets" and
> > "reset-names" has been set to 1 for AMD Versal SoCs, and the minItems
> > for these properties has also been updated to 1. Additionally, these
> > properties have been added to the required property list for Versal SoCs.
> >
> > Signed-off-by: Amit Kumar Mahapatra <amit.kumar-mahapatra@amd.com>
> > ---
> > BRANCH: mtd/next
> > ---
> > .../devicetree/bindings/spi/cdns,qspi-nor.yaml | 14 ++++++++++++--
> > 1 file changed, 12 insertions(+), 2 deletions(-)
> >
> > diff --git a/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml
> > b/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml
> > index d48ecd6cd5ad..cc94c59280a1 100644
> > --- a/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml
> > +++ b/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml
> > @@ -17,8 +17,18 @@ allOf:
> > contains:
> > const: xlnx,versal-ospi-1.0
> > then:
> > + properties:
> > + resets:
> > + maxItems: 1
> > +
> > + reset-names:
> > + maxItems: 1
> > + items:
> > + enum: [ qspi ]
>
> Just list the items instead of these three lines.
Do you mean something like this?
reset-names:
items:
- const: [ qspi ]
>
> > required:
> > - power-domains
> > + - resets
> > + - reset-names
>
> Why? That's an ABI break.
Went through the driver, and believe these properties do not need to be in
the required list. I will revert this change in my next series.
>
>
> > - if:
> > properties:
> > compatible:
> > @@ -132,11 +142,11 @@ properties:
> > maxItems: 1
> >
> > resets:
> > - minItems: 2
> > + minItems: 1
>
> You need to update other variants now.
Are you referring to other SoCs when you mention other variants?
Regards,
Amit
>
> Best regards,
> Krzysztof
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-03-28 13:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-26 11:37 [PATCH] spi: dt-bindings: cdns,qspi-nor: Update minItems/maxItems of resets for Cadence OSPI controller Amit Kumar Mahapatra
2025-03-26 12:21 ` Krzysztof Kozlowski
2025-03-28 13:42 ` Mahapatra, Amit Kumar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®