aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>2014-03-18 19:15:41 -0400
committerNicolas Ferre <nicolas.ferre@atmel.com>2014-04-18 12:07:54 -0400
commit66844c749c3520f99aa2e0f29601db6b571a284e (patch)
treed3785c8c2e60ac548775bffb38e1880e3040b502
parente10a57e341a6799db7e1414f38940ba800d4f297 (diff)
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: Alexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
-rw-r--r--arch/arm/boot/dts/at91sam9m10g45ek.dts5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/boot/dts/at91sam9m10g45ek.dts b/arch/arm/boot/dts/at91sam9m10g45ek.dts
index 7800931a4b16..9f5b0a674995 100644
--- a/arch/arm/boot/dts/at91sam9m10g45ek.dts
+++ b/arch/arm/boot/dts/at91sam9m10g45ek.dts
@@ -8,6 +8,7 @@
8 */ 8 */
9/dts-v1/; 9/dts-v1/;
10#include "at91sam9g45.dtsi" 10#include "at91sam9g45.dtsi"
11#include <dt-bindings/pwm/pwm.h>
11 12
12/ { 13/ {
13 model = "Atmel AT91SAM9M10G45-EK"; 14 model = "Atmel AT91SAM9M10G45-EK";
@@ -231,14 +232,14 @@
231 232
232 d6 { 233 d6 {
233 label = "d6"; 234 label = "d6";
234 pwms = <&pwm0 3 5000 0>; 235 pwms = <&pwm0 3 5000 PWM_POLARITY_INVERTED>;
235 max-brightness = <255>; 236 max-brightness = <255>;
236 linux,default-trigger = "nand-disk"; 237 linux,default-trigger = "nand-disk";
237 }; 238 };
238 239
239 d7 { 240 d7 {
240 label = "d7"; 241 label = "d7";
241 pwms = <&pwm0 1 5000 0>; 242 pwms = <&pwm0 1 5000 PWM_POLARITY_INVERTED>;
242 max-brightness = <255>; 243 max-brightness = <255>;
243 linux,default-trigger = "mmc0"; 244 linux,default-trigger = "mmc0";
244 }; 245 };