ARM: dts: imx7: use 3 PWM cells
authorStefan Agner <stefan@agner.ch>
Tue, 16 May 2017 07:40:13 +0000 (00:40 -0700)
committerShawn Guo <shawnguo@kernel.org>
Sun, 21 May 2017 01:59:07 +0000 (09:59 +0800)
The PWM driver has now capability to specify the PWM polarity
which is e.g. for backlight control. Allow to make use of PWM
polarity by specifying pwm-cells to be 3 in the base dt.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx7-colibri.dtsi
arch/arm/boot/dts/imx7d-nitrogen7.dts
arch/arm/boot/dts/imx7s.dtsi

index 2d87489..d7753f7 100644 (file)
@@ -43,7 +43,7 @@
 / {
        bl: backlight {
                compatible = "pwm-backlight";
-               pwms = <&pwm1 0 5000000>;
+               pwms = <&pwm1 0 5000000 0>;
        };
 
        reg_module_3v3: regulator-module-3v3 {
index a44f992..dd40e49 100644 (file)
@@ -67,7 +67,7 @@
 
        backlight-j20 {
                compatible = "pwm-backlight";
-               pwms = <&pwm1 0 5000000>;
+               pwms = <&pwm1 0 5000000 0>;
                brightness-levels = <0 4 8 16 32 64 128 255>;
                default-brightness-level = <6>;
                status = "okay";
index aa1f4c3..4cf6c45 100644 (file)
                                clocks = <&clks IMX7D_PWM1_ROOT_CLK>,
                                         <&clks IMX7D_PWM1_ROOT_CLK>;
                                clock-names = "ipg", "per";
-                               #pwm-cells = <2>;
+                               #pwm-cells = <3>;
                                status = "disabled";
                        };
 
                                clocks = <&clks IMX7D_PWM2_ROOT_CLK>,
                                         <&clks IMX7D_PWM2_ROOT_CLK>;
                                clock-names = "ipg", "per";
-                               #pwm-cells = <2>;
+                               #pwm-cells = <3>;
                                status = "disabled";
                        };
 
                                clocks = <&clks IMX7D_PWM3_ROOT_CLK>,
                                         <&clks IMX7D_PWM3_ROOT_CLK>;
                                clock-names = "ipg", "per";
-                               #pwm-cells = <2>;
+                               #pwm-cells = <3>;
                                status = "disabled";
                        };
 
                                clocks = <&clks IMX7D_PWM4_ROOT_CLK>,
                                         <&clks IMX7D_PWM4_ROOT_CLK>;
                                clock-names = "ipg", "per";
-                               #pwm-cells = <2>;
+                               #pwm-cells = <3>;
                                status = "disabled";
                        };