diff options
author | Ilya Ledvich <ilya@compulab.co.il> | 2015-11-24 16:02:13 +0200 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2015-11-30 14:03:47 -0800 |
commit | 07f1c49c1561127c7f394481bb58bf83e15b71a9 (patch) | |
tree | e95031f964648e877ad53686d350f7160ac018ae /arch/arm/boot/dts/am335x-cm-t335.dts | |
parent | 3a8038eef06189898b04e4a9209720f54853d0f6 (diff) | |
download | lwn-07f1c49c1561127c7f394481bb58bf83e15b71a9.tar.gz lwn-07f1c49c1561127c7f394481bb58bf83e15b71a9.zip |
ARM: dts: cm-t335: add support for PWM backlight
Add pinmux configuration for ECAP0 pin.
Add node for PWM backlight device.
Use PWM output from ecap0 as backlight source.
Signed-off-by: Ilya Ledvich <ilya@compulab.co.il>
Signed-off-by: Uri Mashiach <uri.mashiach@compulab.co.il>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/boot/dts/am335x-cm-t335.dts')
-rw-r--r-- | arch/arm/boot/dts/am335x-cm-t335.dts | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/am335x-cm-t335.dts b/arch/arm/boot/dts/am335x-cm-t335.dts index 3aec38a482db..31ff1aa07b43 100644 --- a/arch/arm/boot/dts/am335x-cm-t335.dts +++ b/arch/arm/boot/dts/am335x-cm-t335.dts @@ -39,6 +39,13 @@ regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; }; + + backlight { + compatible = "pwm-backlight"; + pwms = <&ecap0 0 50000 0>; + brightness-levels = <0 51 53 56 62 75 101 152 255>; + default-brightness-level = <8>; + }; }; &am33xx_pinmux { @@ -114,6 +121,13 @@ >; }; + ecap0_pins: pinmux_ecap0_pins { + pinctrl-single,pins = < + /* eCAP0_in_PWM0_out.eCAP0_in_PWM0_out MODE0 */ + AM33XX_IOPAD(0x964, 0x0) + >; + }; + cpsw_default: cpsw_default { pinctrl-single,pins = < /* Slave 1 */ @@ -223,6 +237,16 @@ }; }; +&epwmss0 { + status = "okay"; + + ecap0: ecap@48300100 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&ecap0_pins>; + }; +}; + &gpmc { status = "okay"; pinctrl-names = "default"; |