]> Git Repo - linux.git/commitdiff
ARM: dts: imx6sx-softing-vining-2000: Use #pwm-cells = <3> for imx27-pwm device
authorUwe Kleine-König <[email protected]>
Fri, 5 Apr 2024 21:42:28 +0000 (23:42 +0200)
committerShawn Guo <[email protected]>
Sun, 28 Apr 2024 07:56:15 +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/imx6sx-softing-vining-2000.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/imx6sx-softing-vining-2000.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/imx6sx-softing-vining-2000.dtb: pwm@22a8000: #pwm-cells:0:0: 3 was expected
from schema : http://devicetree.org/schemas/pwm/imx-pwm.yaml#

There is no need for an explicit status = "okay" in the pwm nodes as
the soc dtsi doesn't disable these devices. Drop these properties, too.

Signed-off-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
arch/arm/boot/dts/nxp/imx/imx6sx-softing-vining-2000.dts

index bfcd8f7d86dde104035a9f4659c214782c847260..f999eb2443739ccda99c09ea5c3bb2ae08fa37bc 100644 (file)
                led-1 {
                        label = "red";
                        max-brightness = <255>;
-                       pwms = <&pwm6 0 50000>;
+                       pwms = <&pwm6 0 50000 0>;
                };
 
                led-2 {
                        label = "green";
                        max-brightness = <255>;
-                       pwms = <&pwm2 0 50000>;
+                       pwms = <&pwm2 0 50000 0>;
                };
 
                led-3 {
                        label = "blue";
                        max-brightness = <255>;
-                       pwms = <&pwm1 0 50000>;
+                       pwms = <&pwm1 0 50000 0>;
                };
        };
 };
 };
 
 &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";
 };
 
 &pwm6 {
-       #pwm-cells = <2>;
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_pwm6>;
-       status = "okay";
 };
 
 &reg_arm {
This page took 0.058275 seconds and 4 git commands to generate.