Skip to content

Commit e80729d

Browse files
Uwe Kleine-KönigShawn Guo
authored andcommitted
ARM: dts: imx6sx-softing-vining-2000: Use #pwm-cells = <3> for imx27-pwm device
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 <u.kleine-koenig@pengutronix.de> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
1 parent 340bef9 commit e80729d

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

arch/arm/boot/dts/nxp/imx/imx6sx-softing-vining-2000.dts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,19 @@
4646
led-1 {
4747
label = "red";
4848
max-brightness = <255>;
49-
pwms = <&pwm6 0 50000>;
49+
pwms = <&pwm6 0 50000 0>;
5050
};
5151

5252
led-2 {
5353
label = "green";
5454
max-brightness = <255>;
55-
pwms = <&pwm2 0 50000>;
55+
pwms = <&pwm2 0 50000 0>;
5656
};
5757

5858
led-3 {
5959
label = "blue";
6060
max-brightness = <255>;
61-
pwms = <&pwm1 0 50000>;
61+
pwms = <&pwm1 0 50000 0>;
6262
};
6363
};
6464
};
@@ -505,24 +505,18 @@
505505
};
506506

507507
&pwm1 {
508-
#pwm-cells = <2>;
509508
pinctrl-names = "default";
510509
pinctrl-0 = <&pinctrl_pwm1>;
511-
status = "okay";
512510
};
513511

514512
&pwm2 {
515-
#pwm-cells = <2>;
516513
pinctrl-names = "default";
517514
pinctrl-0 = <&pinctrl_pwm2>;
518-
status = "okay";
519515
};
520516

521517
&pwm6 {
522-
#pwm-cells = <2>;
523518
pinctrl-names = "default";
524519
pinctrl-0 = <&pinctrl_pwm6>;
525-
status = "okay";
526520
};
527521

528522
&reg_arm {

0 commit comments

Comments
 (0)