提交 66844c74 编写于 作者: A Alexandre Belloni 提交者: Nicolas Ferre

ARM: at91/dt: at91sam9m10g45ek PWM leds polarity is inversed

The real polarity of the LEDs is inversed. The led is between 3.3v and the PWM.
It was working before because the driver was getting the duty cycle calculation
wrong.
Signed-off-by: NAlexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: NNicolas Ferre <nicolas.ferre@atmel.com>
上级 e10a57e3
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
*/ */
/dts-v1/; /dts-v1/;
#include "at91sam9g45.dtsi" #include "at91sam9g45.dtsi"
#include <dt-bindings/pwm/pwm.h>
/ { / {
model = "Atmel AT91SAM9M10G45-EK"; model = "Atmel AT91SAM9M10G45-EK";
...@@ -231,14 +232,14 @@ ...@@ -231,14 +232,14 @@
d6 { d6 {
label = "d6"; label = "d6";
pwms = <&pwm0 3 5000 0>; pwms = <&pwm0 3 5000 PWM_POLARITY_INVERTED>;
max-brightness = <255>; max-brightness = <255>;
linux,default-trigger = "nand-disk"; linux,default-trigger = "nand-disk";
}; };
d7 { d7 {
label = "d7"; label = "d7";
pwms = <&pwm0 1 5000 0>; pwms = <&pwm0 1 5000 PWM_POLARITY_INVERTED>;
max-brightness = <255>; max-brightness = <255>;
linux,default-trigger = "mmc0"; linux,default-trigger = "mmc0";
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册