]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: dts: am43x-epos-evm: Add pwm backlight support.
authorSourav Poddar <sourav.poddar@ti.com>
Thu, 19 Dec 2013 12:33:34 +0000 (18:03 +0530)
committerBenoit Cousson <bcousson@baylibre.com>
Sun, 2 Mar 2014 17:36:50 +0000 (18:36 +0100)
Add pwm backlight support for am43x epos evm.

Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
Signed-off-by: Benoit Cousson <bcousson@baylibre.com>
arch/arm/boot/dts/am43x-epos-evm.dts

index fbf9c4c7a94fe7f998346140d32540b6ebf3507f..0899c5fa88247aee3ec6f61b5aab641de0bd73f8 100644 (file)
@@ -13,6 +13,7 @@
 #include "am4372.dtsi"
 #include <dt-bindings/pinctrl/am43xx.h>
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/pwm/pwm.h>
 
 / {
        model = "TI AM43x EPOS EVM";
                                0x18c (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0)    /* i2c0_scl.i2c0_scl */
                        >;
                };
+
+               ecap0_pins: backlight_pins {
+                       pinctrl-single,pins = <
+                               0x164 MUX_MODE0         /* eCAP0_in_PWM0_out.eCAP0_in_PWM0_out MODE0 */
+                       >;
+               };
        };
 
        matrix_keypad: matrix_keypad@0 {
                                0x0203006c      /* DOWN */
                                0x03030069>;    /* LEFT */
                };
+
+       backlight {
+               compatible = "pwm-backlight";
+               pwms = <&ecap0 0 50000 PWM_POLARITY_INVERTED>;
+               brightness-levels = <0 51 53 56 62 75 101 152 255>;
+               default-brightness-level = <8>;
+       };
 };
 
 &mmc1 {
 &gpio3 {
        status = "okay";
 };
+
+&epwmss0 {
+       status = "okay";
+};
+
+&ecap0 {
+               status = "okay";
+               pinctrl-names = "default";
+               pinctrl-0 = <&ecap0_pins>;
+};