ARM: at91/dt: at91sam9m10g45ek PWM leds polarity is inversed
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Tue, 18 Mar 2014 23:15:41 +0000 (00:15 +0100)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Fri, 18 Apr 2014 16:07:54 +0000 (18:07 +0200)
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: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
arch/arm/boot/dts/at91sam9m10g45ek.dts

index 7800931a4b16fcad4a700757ec9f7c67a576f01d..9f5b0a6749955755b75ece053be16d6c563be051 100644 (file)
@@ -8,6 +8,7 @@
  */
 /dts-v1/;
 #include "at91sam9g45.dtsi"
+#include <dt-bindings/pwm/pwm.h>
 
 / {
        model = "Atmel AT91SAM9M10G45-EK";
 
                d6 {
                        label = "d6";
-                       pwms = <&pwm0 3 5000 0>;
+                       pwms = <&pwm0 3 5000 PWM_POLARITY_INVERTED>;
                        max-brightness = <255>;
                        linux,default-trigger = "nand-disk";
                };
 
                d7 {
                        label = "d7";
-                       pwms = <&pwm0 1 5000 0>;
+                       pwms = <&pwm0 1 5000 PWM_POLARITY_INVERTED>;
                        max-brightness = <255>;
                        linux,default-trigger = "mmc0";
                };