diff mbox series

[06/10] ARM: dts: bcm283x: Increase pwm-cells

Message ID 20230604121223.9625-7-stefan.wahren@i2se.com (mailing list archive)
State Handled Elsewhere, archived
Headers show
Series ARM: dts: bcm283x: Improve device-trees and bindings | expand

Commit Message

Stefan Wahren June 4, 2023, 12:12 p.m. UTC
The pwm-bcm2835 supports PWM polarity, so adjust the affected dtsi
files accordingly and fix the dtbs_check warning:

pwm@7e20c000: #pwm-cells:0:0: 3 was expected

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
---
 arch/arm/boot/dts/bcm2711.dtsi | 2 +-
 arch/arm/boot/dts/bcm283x.dtsi | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

Uwe Kleine-König June 7, 2023, 7:56 a.m. UTC | #1
On Sun, Jun 04, 2023 at 02:12:19PM +0200, Stefan Wahren wrote:
> The pwm-bcm2835 supports PWM polarity, so adjust the affected dtsi
> files accordingly and fix the dtbs_check warning:
> 
> pwm@7e20c000: #pwm-cells:0:0: 3 was expected
> 
> Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
> ---
>  arch/arm/boot/dts/bcm2711.dtsi | 2 +-
>  arch/arm/boot/dts/bcm283x.dtsi | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/bcm2711.dtsi b/arch/arm/boot/dts/bcm2711.dtsi
> index 83745672a120..239db6927a02 100644
> --- a/arch/arm/boot/dts/bcm2711.dtsi
> +++ b/arch/arm/boot/dts/bcm2711.dtsi
> @@ -278,7 +278,7 @@ pwm1: pwm@7e20c800 {
>  			clocks = <&clocks BCM2835_CLOCK_PWM>;
>  			assigned-clocks = <&clocks BCM2835_CLOCK_PWM>;
>  			assigned-clock-rates = <10000000>;
> -			#pwm-cells = <2>;
> +			#pwm-cells = <3>;
>  			status = "disabled";
>  		};
>  
> diff --git a/arch/arm/boot/dts/bcm283x.dtsi b/arch/arm/boot/dts/bcm283x.dtsi
> index c9c52a19ef3b..2ca8a2505a4d 100644
> --- a/arch/arm/boot/dts/bcm283x.dtsi
> +++ b/arch/arm/boot/dts/bcm283x.dtsi
> @@ -416,7 +416,7 @@ pwm: pwm@7e20c000 {
>  			clocks = <&clocks BCM2835_CLOCK_PWM>;
>  			assigned-clocks = <&clocks BCM2835_CLOCK_PWM>;
>  			assigned-clock-rates = <10000000>;
> -			#pwm-cells = <2>;
> +			#pwm-cells = <3>;
>  			status = "disabled";
>  		};

Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

Best regards
Uwe
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/bcm2711.dtsi b/arch/arm/boot/dts/bcm2711.dtsi
index 83745672a120..239db6927a02 100644
--- a/arch/arm/boot/dts/bcm2711.dtsi
+++ b/arch/arm/boot/dts/bcm2711.dtsi
@@ -278,7 +278,7 @@  pwm1: pwm@7e20c800 {
 			clocks = <&clocks BCM2835_CLOCK_PWM>;
 			assigned-clocks = <&clocks BCM2835_CLOCK_PWM>;
 			assigned-clock-rates = <10000000>;
-			#pwm-cells = <2>;
+			#pwm-cells = <3>;
 			status = "disabled";
 		};
 
diff --git a/arch/arm/boot/dts/bcm283x.dtsi b/arch/arm/boot/dts/bcm283x.dtsi
index c9c52a19ef3b..2ca8a2505a4d 100644
--- a/arch/arm/boot/dts/bcm283x.dtsi
+++ b/arch/arm/boot/dts/bcm283x.dtsi
@@ -416,7 +416,7 @@  pwm: pwm@7e20c000 {
 			clocks = <&clocks BCM2835_CLOCK_PWM>;
 			assigned-clocks = <&clocks BCM2835_CLOCK_PWM>;
 			assigned-clock-rates = <10000000>;
-			#pwm-cells = <2>;
+			#pwm-cells = <3>;
 			status = "disabled";
 		};