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

This fixes the following dtbs_check warning:

arch/arm/boot/dts/nxp/imx/imx6dl-mamoj.dtb: pwm@2088000: #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/imx6dl-mamoj.dts

index 028951955bdee703ab42a56bf197292241df6b9c..72ee236d2f5e8b5fadf6588a5506c39a99d7b7aa 100644 (file)
@@ -21,7 +21,7 @@
 
        backlight_lcd: backlight-lcd {
                compatible = "pwm-backlight";
-               pwms = <&pwm3 0 25000>; /* 25000ns -> 40kHz */
+               pwms = <&pwm3 0 25000 0>; /* 25000ns -> 40kHz */
                brightness-levels = <0 4 8 16 32 64 128 160 192 224 255>;
                default-brightness-level = <7>;
        };
 };
 
 &pwm3 {
-       #pwm-cells = <2>;
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_pwm3>;
        status = "okay";