Commit 9be48d2d authored by Stefan Agner's avatar Stefan Agner Committed by Shawn Guo

ARM: dts: imx7: use 3 PWM cells

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: default avatarStefan Agner <stefan@agner.ch>
Reviewed-by: default avatarFabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent 34adfaa3
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
/ { / {
bl: backlight { bl: backlight {
compatible = "pwm-backlight"; compatible = "pwm-backlight";
pwms = <&pwm1 0 5000000>; pwms = <&pwm1 0 5000000 0>;
}; };
reg_module_3v3: regulator-module-3v3 { reg_module_3v3: regulator-module-3v3 {
......
...@@ -67,7 +67,7 @@ backlight-j9 { ...@@ -67,7 +67,7 @@ backlight-j9 {
backlight-j20 { backlight-j20 {
compatible = "pwm-backlight"; compatible = "pwm-backlight";
pwms = <&pwm1 0 5000000>; pwms = <&pwm1 0 5000000 0>;
brightness-levels = <0 4 8 16 32 64 128 255>; brightness-levels = <0 4 8 16 32 64 128 255>;
default-brightness-level = <6>; default-brightness-level = <6>;
status = "okay"; status = "okay";
......
...@@ -635,7 +635,7 @@ pwm1: pwm@30660000 { ...@@ -635,7 +635,7 @@ pwm1: pwm@30660000 {
clocks = <&clks IMX7D_PWM1_ROOT_CLK>, clocks = <&clks IMX7D_PWM1_ROOT_CLK>,
<&clks IMX7D_PWM1_ROOT_CLK>; <&clks IMX7D_PWM1_ROOT_CLK>;
clock-names = "ipg", "per"; clock-names = "ipg", "per";
#pwm-cells = <2>; #pwm-cells = <3>;
status = "disabled"; status = "disabled";
}; };
...@@ -646,7 +646,7 @@ pwm2: pwm@30670000 { ...@@ -646,7 +646,7 @@ pwm2: pwm@30670000 {
clocks = <&clks IMX7D_PWM2_ROOT_CLK>, clocks = <&clks IMX7D_PWM2_ROOT_CLK>,
<&clks IMX7D_PWM2_ROOT_CLK>; <&clks IMX7D_PWM2_ROOT_CLK>;
clock-names = "ipg", "per"; clock-names = "ipg", "per";
#pwm-cells = <2>; #pwm-cells = <3>;
status = "disabled"; status = "disabled";
}; };
...@@ -657,7 +657,7 @@ pwm3: pwm@30680000 { ...@@ -657,7 +657,7 @@ pwm3: pwm@30680000 {
clocks = <&clks IMX7D_PWM3_ROOT_CLK>, clocks = <&clks IMX7D_PWM3_ROOT_CLK>,
<&clks IMX7D_PWM3_ROOT_CLK>; <&clks IMX7D_PWM3_ROOT_CLK>;
clock-names = "ipg", "per"; clock-names = "ipg", "per";
#pwm-cells = <2>; #pwm-cells = <3>;
status = "disabled"; status = "disabled";
}; };
...@@ -668,7 +668,7 @@ pwm4: pwm@30690000 { ...@@ -668,7 +668,7 @@ pwm4: pwm@30690000 {
clocks = <&clks IMX7D_PWM4_ROOT_CLK>, clocks = <&clks IMX7D_PWM4_ROOT_CLK>,
<&clks IMX7D_PWM4_ROOT_CLK>; <&clks IMX7D_PWM4_ROOT_CLK>;
clock-names = "ipg", "per"; clock-names = "ipg", "per";
#pwm-cells = <2>; #pwm-cells = <3>;
status = "disabled"; status = "disabled";
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment