ARM: dts: imx6qdl-apf6dev: Use #pwm-cells = <3> for imx27-pwm devices
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 5 Apr 2024 21:41:58 +0000 (23:41 +0200)
committerShawn Guo <shawnguo@kernel.org>
Sun, 28 Apr 2024 07:56:10 +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/imx6dl-apf6dev.dtb: pwm@2088000: #pwm-cells:0:0: 3 was expected
from schema : http://devicetree.org/schemas/pwm/imx-pwm.yaml#
arch/arm/boot/dts/nxp/imx/imx6q-apf6dev.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/imx6qdl-apf6dev.dtsi

index 338d292553ad5461530ba51ac312a370bdaa3297..3a46ade3b6bd93ba9cc54861d88791eef9e2ae76 100644 (file)
@@ -13,7 +13,7 @@
 
        backlight: backlight {
                compatible = "pwm-backlight";
-               pwms = <&pwm3 0 191000>;
+               pwms = <&pwm3 0 191000 0>;
                brightness-levels = <0 4 8 16 32 64 128 255>;
                default-brightness-level = <0>;
                power-supply = <&reg_5v>;
 };
 
 &pwm3 {
-       #pwm-cells = <2>;
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_pwm3>;
        status = "okay";