* [PATCH] arm64: dts: broadcom: Fix boolean properties with values
@ 2022-03-04 20:25 Rob Herring
2022-03-04 21:35 ` Florian Fainelli
0 siblings, 1 reply; 2+ messages in thread
From: Rob Herring @ 2022-03-04 20:25 UTC (permalink / raw)
To: Ray Jui, Scott Branden, bcm-kernel-feedback-list,
Krzysztof Kozlowski
Cc: linux-arm-kernel, devicetree, linux-kernel
Boolean properties in DT are present or not present and don't take a value.
A property such as 'foo = <0>;' evaluated to true. IOW, the value doesn't
matter.
It may have been intended that 0 values are false, but there is no change
in behavior with this patch.
Signed-off-by: Rob Herring <robh@kernel.org>
---
arch/arm64/boot/dts/broadcom/northstar2/ns2-svk.dts | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/arm64/boot/dts/broadcom/northstar2/ns2-svk.dts b/arch/arm64/boot/dts/broadcom/northstar2/ns2-svk.dts
index ec19fbf928a1..12a4b1c03390 100644
--- a/arch/arm64/boot/dts/broadcom/northstar2/ns2-svk.dts
+++ b/arch/arm64/boot/dts/broadcom/northstar2/ns2-svk.dts
@@ -111,8 +111,8 @@ slic@0 {
compatible = "silabs,si3226x";
reg = <0>;
spi-max-frequency = <5000000>;
- spi-cpha = <1>;
- spi-cpol = <1>;
+ spi-cpha;
+ spi-cpol;
pl022,hierarchy = <0>;
pl022,interface = <0>;
pl022,slave-tx-disable = <0>;
@@ -135,8 +135,8 @@ at25@0 {
at25,byte-len = <0x8000>;
at25,addr-mode = <2>;
at25,page-size = <64>;
- spi-cpha = <1>;
- spi-cpol = <1>;
+ spi-cpha;
+ spi-cpol;
pl022,hierarchy = <0>;
pl022,interface = <0>;
pl022,slave-tx-disable = <0>;
--
2.32.0
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] arm64: dts: broadcom: Fix boolean properties with values
2022-03-04 20:25 [PATCH] arm64: dts: broadcom: Fix boolean properties with values Rob Herring
@ 2022-03-04 21:35 ` Florian Fainelli
0 siblings, 0 replies; 2+ messages in thread
From: Florian Fainelli @ 2022-03-04 21:35 UTC (permalink / raw)
To: Rob Herring, Ray Jui, Scott Branden, bcm-kernel-feedback-list,
Krzysztof Kozlowski
Cc: linux-arm-kernel, devicetree, linux-kernel
On 3/4/2022 12:25 PM, Rob Herring wrote:
> Boolean properties in DT are present or not present and don't take a value.
> A property such as 'foo = <0>;' evaluated to true. IOW, the value doesn't
> matter.
>
> It may have been intended that 0 values are false, but there is no change
> in behavior with this patch.
>
> Signed-off-by: Rob Herring <robh@kernel.org>
Thanks, I already have queued up an identical change just a few days ago:
https://github.com/Broadcom/stblinux/commit/c953c764e505428f59ffe6afb1c73b89b5b1ac35
This will be submitted shortly for 5.18.
--
Florian
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-03-04 21:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-04 20:25 [PATCH] arm64: dts: broadcom: Fix boolean properties with values Rob Herring
2022-03-04 21:35 ` Florian Fainelli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox