diff options
author | Sourav Poddar <sourav.poddar@ti.com> | 2013-12-19 18:03:39 +0530 |
---|---|---|
committer | Benoit Cousson <bcousson@baylibre.com> | 2014-03-02 18:37:49 +0100 |
commit | c540b476d23a156472aa9289be7c6d5fc78cd56e (patch) | |
tree | 2d5f084ff5a63dc36b17d17798994f1ae94c42eb /arch/arm/boot/dts/am437x-gp-evm.dts | |
parent | 11e2191c2a6f5dd65b0628655936a3007d037540 (diff) |
ARM: dts: am437x-gp-evm: Add pwm backlight support.
Add pwm backlight support for gp evm.
Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
Signed-off-by: Benoit Cousson <bcousson@baylibre.com>
Diffstat (limited to 'arch/arm/boot/dts/am437x-gp-evm.dts')
-rw-r--r-- | arch/arm/boot/dts/am437x-gp-evm.dts | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/am437x-gp-evm.dts b/arch/arm/boot/dts/am437x-gp-evm.dts index 11d93bac96ad..2e79bda5141c 100644 --- a/arch/arm/boot/dts/am437x-gp-evm.dts +++ b/arch/arm/boot/dts/am437x-gp-evm.dts @@ -12,10 +12,18 @@ #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 { @@ -32,6 +40,12 @@ 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 { @@ -45,3 +59,13 @@ pinctrl-names = "default"; pinctrl-0 = <&i2c1_pins>; }; + +&epwmss0 { + status = "okay"; +}; + +&ecap0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&ecap0_pins>; +}; |