ARM: dts: imx53-tqma: Use #pwm-cells = <3> for imx27-pwm devices
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 5 Apr 2024 21:41:52 +0000 (23:41 +0200)
committerShawn Guo <shawnguo@kernel.org>
Sun, 28 Apr 2024 07:56:08 +0000 (15:56 +0800)
The binding dictates using 3 pwm-cells. Adhere to that.

This fixes the following dtbs_check warnings:

arch/arm/boot/dts/nxp/imx/imx53-kp-ddc.dtb: pwm@53fb4000: #pwm-cells:0:0: 3 was expected
from schema : http://devicetree.org/schemas/pwm/imx-pwm.yaml#
arch/arm/boot/dts/nxp/imx/imx53-kp-ddc.dtb: pwm@53fb8000: #pwm-cells:0:0: 3 was expected
from schema : http://devicetree.org/schemas/pwm/imx-pwm.yaml#
arch/arm/boot/dts/nxp/imx/imx53-kp-hsc.dtb: pwm@53fb4000: #pwm-cells:0:0: 3 was expected
from schema : http://devicetree.org/schemas/pwm/imx-pwm.yaml#
arch/arm/boot/dts/nxp/imx/imx53-kp-hsc.dtb: pwm@53fb8000: #pwm-cells:0:0: 3 was expected
from schema : http://devicetree.org/schemas/pwm/imx-pwm.yaml#
arch/arm/boot/dts/nxp/imx/imx53-mba53.dtb: pwm@53fb4000: #pwm-cells:0:0: 3 was expected
from schema : http://devicetree.org/schemas/pwm/imx-pwm.yaml#
arch/arm/boot/dts/nxp/imx/imx53-mba53.dtb: pwm@53fb8000: #pwm-cells:0:0: 3 was expected
from schema : http://devicetree.org/schemas/pwm/imx-pwm.yaml#

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/nxp/imx/imx53-kp-ddc.dts
arch/arm/boot/dts/nxp/imx/imx53-kp.dtsi
arch/arm/boot/dts/nxp/imx/imx53-mba53.dts
arch/arm/boot/dts/nxp/imx/imx53-tqma53.dtsi

index 0e7f071fd10e2dba7adcd30f1fec8112456bb7a6..f6f1163666434c78276f6f36caa99e68892b60cc 100644 (file)
@@ -13,7 +13,7 @@
 
        backlight_lcd: backlight {
                compatible = "pwm-backlight";
-               pwms = <&pwm2 0 50000>;
+               pwms = <&pwm2 0 50000 0>;
                power-supply = <&reg_backlight>;
                brightness-levels = <0 24 28 32 36
                                     40 44 48 52 56
index 8b25416a5303aed9b91628f4b111c74020249406..ae5f87b8612d485b77248de913446249bb8b9b50 100644 (file)
@@ -13,7 +13,7 @@
                compatible = "pwm-beeper";
                pinctrl-names = "default";
                pinctrl-0 = <&pinctrl_buzzer>;
-               pwms = <&pwm1 0 500000>;
+               pwms = <&pwm1 0 500000 0>;
        };
 
        gpio-buttons {
index 6a37616cef1c2d6bff3a3fe6710f119013f810cf..2117de872703bfdf730f1eacedc653dcaaf8650c 100644 (file)
@@ -17,7 +17,7 @@
 
        backlight {
                compatible = "pwm-backlight";
-               pwms = <&pwm2 0 50000>;
+               pwms = <&pwm2 0 50000 0>;
                brightness-levels = <0 24 28 32 36 40 44 48 52 56 60 64 68 72 76 80 84 88 92 96 100>;
                default-brightness-level = <10>;
                enable-gpios = <&gpio7 7 0>;
index 294811bfc8d2e0aa869877e2b784c8cdff73c34f..b2d7271d1d24cc4e3aebf206569725411e040913 100644 (file)
        };
 };
 
-&pwm1 {
-       #pwm-cells = <2>;
-};
-
-&pwm2 {
-       #pwm-cells = <2>;
-};
-
 &uart1 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_uart1>;