* [PATCH] dt-bindings: mfd: wlf,arizona: Add spi-max-frequency
@ 2022-04-27 6:51 Krzysztof Kozlowski
2022-04-27 12:21 ` Charles Keepax
0 siblings, 1 reply; 5+ messages in thread
From: Krzysztof Kozlowski @ 2022-04-27 6:51 UTC (permalink / raw)
To: Lee Jones, Rob Herring, Krzysztof Kozlowski, -, devicetree, linux-kernel
Cc: Krzysztof Kozlowski, Rob Herring
The Wolfson Microelectronics Arizona audio can be connected via SPI bus
(e.g. WM5110 on Exynos5433 TM2 board), so allow spi-max-frequency
property.
Reported-by: Rob Herring <robh@kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
Documentation/devicetree/bindings/mfd/wlf,arizona.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/mfd/wlf,arizona.yaml b/Documentation/devicetree/bindings/mfd/wlf,arizona.yaml
index 9e762d474218..0d1835c657a2 100644
--- a/Documentation/devicetree/bindings/mfd/wlf,arizona.yaml
+++ b/Documentation/devicetree/bindings/mfd/wlf,arizona.yaml
@@ -193,6 +193,8 @@ properties:
reset-gpios:
maxItems: 1
+ spi-max-frequency: true
+
wlf,reset:
description:
GPIO specifier for the GPIO controlling RESET
--
2.32.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] dt-bindings: mfd: wlf,arizona: Add spi-max-frequency
2022-04-27 6:51 [PATCH] dt-bindings: mfd: wlf,arizona: Add spi-max-frequency Krzysztof Kozlowski
@ 2022-04-27 12:21 ` Charles Keepax
2022-04-27 12:58 ` Charles Keepax
0 siblings, 1 reply; 5+ messages in thread
From: Charles Keepax @ 2022-04-27 12:21 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Lee Jones, Rob Herring, Krzysztof Kozlowski, -,
devicetree, linux-kernel, Rob Herring
On Wed, Apr 27, 2022 at 08:51:02AM +0200, Krzysztof Kozlowski wrote:
> The Wolfson Microelectronics Arizona audio can be connected via SPI bus
> (e.g. WM5110 on Exynos5433 TM2 board), so allow spi-max-frequency
> property.
>
> Reported-by: Rob Herring <robh@kernel.org>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Thanks,
Charles
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] dt-bindings: mfd: wlf,arizona: Add spi-max-frequency
2022-04-27 12:21 ` Charles Keepax
@ 2022-04-27 12:58 ` Charles Keepax
2022-04-27 13:49 ` Krzysztof Kozlowski
0 siblings, 1 reply; 5+ messages in thread
From: Charles Keepax @ 2022-04-27 12:58 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Lee Jones, Rob Herring, Krzysztof Kozlowski, -,
devicetree, linux-kernel, Rob Herring
On Wed, Apr 27, 2022 at 12:21:43PM +0000, Charles Keepax wrote:
> On Wed, Apr 27, 2022 at 08:51:02AM +0200, Krzysztof Kozlowski wrote:
> > The Wolfson Microelectronics Arizona audio can be connected via SPI bus
> > (e.g. WM5110 on Exynos5433 TM2 board), so allow spi-max-frequency
> > property.
> >
> > Reported-by: Rob Herring <robh@kernel.org>
> > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> > ---
>
> Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
>
Apologies but looking at this again I can't quite see why this is
necessary. The Arizona schema should allow properties that arn't
specified. Do you have an example of what failed to warrant this?
Thanks,
Charles
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] dt-bindings: mfd: wlf,arizona: Add spi-max-frequency
2022-04-27 12:58 ` Charles Keepax
@ 2022-04-27 13:49 ` Krzysztof Kozlowski
2022-04-27 14:48 ` Charles Keepax
0 siblings, 1 reply; 5+ messages in thread
From: Krzysztof Kozlowski @ 2022-04-27 13:49 UTC (permalink / raw)
To: Charles Keepax
Cc: Lee Jones, Rob Herring, Krzysztof Kozlowski, -,
devicetree, linux-kernel, Rob Herring
On 27/04/2022 14:58, Charles Keepax wrote:
> On Wed, Apr 27, 2022 at 12:21:43PM +0000, Charles Keepax wrote:
>> On Wed, Apr 27, 2022 at 08:51:02AM +0200, Krzysztof Kozlowski wrote:
>>> The Wolfson Microelectronics Arizona audio can be connected via SPI bus
>>> (e.g. WM5110 on Exynos5433 TM2 board), so allow spi-max-frequency
>>> property.
>>>
>>> Reported-by: Rob Herring <robh@kernel.org>
>>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>>> ---
>>
>> Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
>>
>
> Apologies but looking at this again I can't quite see why this is
> necessary. The Arizona schema should allow properties that arn't
> specified. Do you have an example of what failed to warrant this?
The Arizona schema has unevaluatedProperties: false, which means unknown
properties will not be accepted. Neither Arizona schema nor other
referenced schemas define spi-max-frequency, so when the schema is run,
the property will be unevaluated, thus cause a warning.
This is visible here at the bottom (with Rob's work-in-progress):
https://lore.kernel.org/linux-devicetree/345716e9-5624-5ba0-09f0-46e9850c546c@linaro.org/T/#m4b5d7cfdf34dbd410003b2faae4d840113050c51
Although I think that I did not fix it properly, because I missed
'controller-data', so instead this should be fixed with referencing
spi-peripheral-props like here:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.17.y&id=f412fe11c1a9d815565f3918c56f3fd02167c734
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] dt-bindings: mfd: wlf,arizona: Add spi-max-frequency
2022-04-27 13:49 ` Krzysztof Kozlowski
@ 2022-04-27 14:48 ` Charles Keepax
0 siblings, 0 replies; 5+ messages in thread
From: Charles Keepax @ 2022-04-27 14:48 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Lee Jones, Rob Herring, Krzysztof Kozlowski, -,
devicetree, linux-kernel, Rob Herring
On Wed, Apr 27, 2022 at 03:49:51PM +0200, Krzysztof Kozlowski wrote:
> On 27/04/2022 14:58, Charles Keepax wrote:
> > On Wed, Apr 27, 2022 at 12:21:43PM +0000, Charles Keepax wrote:
> >> On Wed, Apr 27, 2022 at 08:51:02AM +0200, Krzysztof Kozlowski wrote:
> The Arizona schema has unevaluatedProperties: false, which means unknown
> properties will not be accepted. Neither Arizona schema nor other
> referenced schemas define spi-max-frequency, so when the schema is run,
> the property will be unevaluated, thus cause a warning.
>
> This is visible here at the bottom (with Rob's work-in-progress):
> https://lore.kernel.org/linux-devicetree/345716e9-5624-5ba0-09f0-46e9850c546c@linaro.org/T/#m4b5d7cfdf34dbd410003b2faae4d840113050c51
>
> Although I think that I did not fix it properly, because I missed
> 'controller-data', so instead this should be fixed with referencing
> spi-peripheral-props like here:
> https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.17.y&id=f412fe11c1a9d815565f3918c56f3fd02167c734
>
Ah yes I forgot the unevaluatedProperties didn't work properly,
sorry was running things on my DTs here with SPI and they were
all passing but of course I don't have Rob's fix to make the
unevaluatedProperties actually work.
Probably yeah include the spi properties yaml is a better
solution as that covers all the properties that might get used.
Thanks,
Charles
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-04-27 14:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-27 6:51 [PATCH] dt-bindings: mfd: wlf,arizona: Add spi-max-frequency Krzysztof Kozlowski
2022-04-27 12:21 ` Charles Keepax
2022-04-27 12:58 ` Charles Keepax
2022-04-27 13:49 ` Krzysztof Kozlowski
2022-04-27 14:48 ` Charles Keepax
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).