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

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

index 11d93bac96ad253c678d4fec6dba9fe7d98f7712..2e79bda5141cf8dba083c2373224a5010d255cc8 100644 (file)
 
 #include "am4372.dtsi"
 #include <dt-bindings/pinctrl/am43xx.h>
+#include <dt-bindings/pwm/pwm.h>
 
 / {
        model = "TI AM437x GP EVM";
        compatible = "ti,am437x-gp-evm","ti,am4372","ti,am43";
+
+       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>;
+       };
 };
 
 &am43xx_pinmux {
                        0x158 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE2)  /* spi0_d1.i2c1_sda  */
                >;
        };
+
+       ecap0_pins: backlight_pins {
+               pinctrl-single,pins = <
+                       0x164 MUX_MODE0       /* eCAP0_in_PWM0_out.eCAP0_in_PWM0_out MODE0 */
+               >;
+       };
 };
 
 &i2c0 {
         pinctrl-names = "default";
         pinctrl-0 = <&i2c1_pins>;
 };
+
+&epwmss0 {
+       status = "okay";
+};
+
+&ecap0 {
+       status = "okay";
+       pinctrl-names = "default";
+       pinctrl-0 = <&ecap0_pins>;
+};