ARM: dts: imx6q-bosch-acc: Use #pwm-cells = <3> for imx27-pwm device
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 5 Apr 2024 21:41:57 +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 warnings:

arch/arm/boot/dts/nxp/imx/imx6q-bosch-acc.dtb: pwm@2080000: #pwm-cells:0:0: 3 was expected
from schema : http://devicetree.org/schemas/pwm/imx-pwm.yaml#
arch/arm/boot/dts/nxp/imx/imx6q-bosch-acc.dtb: pwm@2084000: #pwm-cells:0:0: 3 was expected
from schema : http://devicetree.org/schemas/pwm/imx-pwm.yaml#
arch/arm/boot/dts/nxp/imx/imx6q-bosch-acc.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-bosch-acc.dtb: pwm@208c000: #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/imx6q-bosch-acc.dts

index 02648806c2750861df3d0c61e40d28d3b5508de9..d3f14b4d3b51e19a5bdf52f9d99da4b314da7811 100644 (file)
@@ -36,7 +36,7 @@
 
        backlight_lvds: backlight-lvds {
                compatible = "pwm-backlight";
-               pwms = <&pwm1 0 200000>;
+               pwms = <&pwm1 0 200000 0>;
                brightness-levels = <0 61 499 1706 4079 8022 13938 22237 33328 47623 65535>;
                num-interpolated-steps = <10>;
                default-brightness-level = <60>;
                        color = <LED_COLOR_ID_RED>;
                        max-brightness = <248>;
                        default-state = "off";
-                       pwms = <&pwm2 0 500000>;
+                       pwms = <&pwm2 0 500000 0>;
                };
 
                led_white: led-1 {
                        color = <LED_COLOR_ID_WHITE>;
                        max-brightness = <248>;
                        default-state = "off";
-                       pwms = <&pwm3 0 500000>;
+                       pwms = <&pwm3 0 500000 0>;
                        linux,default-trigger = "heartbeat";
                };
        };
 };
 
 &pwm1 {
-       #pwm-cells = <2>;
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_pwm1>;
        status = "okay";
 };
 
 &pwm2 {
-       #pwm-cells = <2>;
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_pwm2>;
        status = "okay";
 };
 
 &pwm3 {
-       #pwm-cells = <2>;
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_pwm3>;
        status = "okay";
 };
 
 &pwm4 {
-       #pwm-cells = <2>;
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_pwm4>;
        status = "okay";