diff options
author | Philip Avinash <avinashphilip@ti.com> | 2013-06-06 09:52:39 -0400 |
---|---|---|
committer | Benoit Cousson <benoit.cousson@linaro.org> | 2013-06-18 19:53:47 -0400 |
commit | 1632fbdee713de3213b24eda9de062c0ef865634 (patch) | |
tree | 903ec9fbd0c774a199ffedcc5cd8958b7caaa4f9 /arch/arm/boot/dts/am335x-evmsk.dts | |
parent | 6993fd01ebf2985e0c67088b47559bc513f2840b (diff) |
ARM: dts: AM33XX: Add PWM backlight DT data to am335x-evmsk
PWM output from ecap2 uses as backlight source. Also adds low threshold
value to have a uniform divisions in brightness-levels scales with
inverse polarity.
Signed-off-by: Philip Avinash <avinashphilip@ti.com>
Reviewed-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Benoit Cousson <benoit.cousson@linaro.org>
Diffstat (limited to 'arch/arm/boot/dts/am335x-evmsk.dts')
-rw-r--r-- | arch/arm/boot/dts/am335x-evmsk.dts | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/am335x-evmsk.dts b/arch/arm/boot/dts/am335x-evmsk.dts index 338b68188349..2033a37c86ec 100644 --- a/arch/arm/boot/dts/am335x-evmsk.dts +++ b/arch/arm/boot/dts/am335x-evmsk.dts | |||
@@ -71,6 +71,12 @@ | |||
71 | 0x1b4 (PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr1.clkout2 */ | 71 | 0x1b4 (PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr1.clkout2 */ |
72 | >; | 72 | >; |
73 | }; | 73 | }; |
74 | |||
75 | ecap2_pins: backlight_pins { | ||
76 | pinctrl-single,pins = < | ||
77 | 0x19c 0x4 /* mcasp0_ahclkr.ecap2_in_pwm2_out MODE4 */ | ||
78 | >; | ||
79 | }; | ||
74 | }; | 80 | }; |
75 | 81 | ||
76 | ocp { | 82 | ocp { |
@@ -120,6 +126,16 @@ | |||
120 | st,max-limit-z = <750>; | 126 | st,max-limit-z = <750>; |
121 | }; | 127 | }; |
122 | }; | 128 | }; |
129 | |||
130 | epwmss2: epwmss@48304000 { | ||
131 | status = "okay"; | ||
132 | |||
133 | ecap2: ecap@48304100 { | ||
134 | status = "okay"; | ||
135 | pinctrl-names = "default"; | ||
136 | pinctrl-0 = <&ecap2_pins>; | ||
137 | }; | ||
138 | }; | ||
123 | }; | 139 | }; |
124 | 140 | ||
125 | vbat: fixedregulator@0 { | 141 | vbat: fixedregulator@0 { |
@@ -199,6 +215,13 @@ | |||
199 | gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; | 215 | gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; |
200 | }; | 216 | }; |
201 | }; | 217 | }; |
218 | |||
219 | backlight { | ||
220 | compatible = "pwm-backlight"; | ||
221 | pwms = <&ecap2 0 50000 1>; | ||
222 | brightness-levels = <0 58 61 66 75 90 125 170 255>; | ||
223 | default-brightness-level = <8>; | ||
224 | }; | ||
202 | }; | 225 | }; |
203 | 226 | ||
204 | #include "tps65910.dtsi" | 227 | #include "tps65910.dtsi" |