提交 eb9bdef1 编写于 作者: L Laurent Pinchart 提交者: Thierry Reding

ARM: dts: Use the PWM polarity flags

Replace the numerical polarity flags with the PWM_POLARITY_INVERTED
symbolic constant.
Signed-off-by: NLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: NStephen Warren <swarren@nvidia.com>
Signed-off-by: NThierry Reding <thierry.reding@gmail.com>
上级 ebeec0af
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
/dts-v1/; /dts-v1/;
#include "am33xx.dtsi" #include "am33xx.dtsi"
#include <dt-bindings/pwm/pwm.h>
/ { / {
model = "TI AM335x EVM-SK"; model = "TI AM335x EVM-SK";
...@@ -298,7 +299,7 @@ ...@@ -298,7 +299,7 @@
backlight { backlight {
compatible = "pwm-backlight"; compatible = "pwm-backlight";
pwms = <&ecap2 0 50000 1>; pwms = <&ecap2 0 50000 PWM_POLARITY_INVERTED>;
brightness-levels = <0 58 61 66 75 90 125 170 255>; brightness-levels = <0 58 61 66 75 90 125 170 255>;
default-brightness-level = <8>; default-brightness-level = <8>;
}; };
......
...@@ -11,13 +11,14 @@ ...@@ -11,13 +11,14 @@
/dts-v1/; /dts-v1/;
/include/ "wm8850.dtsi" /include/ "wm8850.dtsi"
#include <dt-bindings/pwm/pwm.h>
/ { / {
model = "Wondermedia WM8850-W70v2 Tablet"; model = "Wondermedia WM8850-W70v2 Tablet";
backlight { backlight {
compatible = "pwm-backlight"; compatible = "pwm-backlight";
pwms = <&pwm 0 50000 1>; /* duty inverted */ pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>;
brightness-levels = <0 40 60 80 100 130 190 255>; brightness-levels = <0 40 60 80 100 130 190 255>;
default-brightness-level = <5>; default-brightness-level = <5>;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册