diff options
author | Sourav Poddar <sourav.poddar@ti.com> | 2013-12-19 07:33:34 -0500 |
---|---|---|
committer | Benoit Cousson <bcousson@baylibre.com> | 2014-03-02 12:36:50 -0500 |
commit | 2e3a9385d7b40e2f094f03a79c7b3930002aac17 (patch) | |
tree | ae50a850e221f39f0f341d42eca039eb52157d34 /arch/arm/boot/dts | |
parent | aa8423054a9d6de0bfa62990b308f077de5b567e (diff) |
ARM: dts: am43x-epos-evm: Add pwm backlight support.
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>
Diffstat (limited to 'arch/arm/boot/dts')
-rw-r--r-- | arch/arm/boot/dts/am43x-epos-evm.dts | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/am43x-epos-evm.dts b/arch/arm/boot/dts/am43x-epos-evm.dts index fbf9c4c7a94f..0899c5fa8824 100644 --- a/arch/arm/boot/dts/am43x-epos-evm.dts +++ b/arch/arm/boot/dts/am43x-epos-evm.dts | |||
@@ -13,6 +13,7 @@ | |||
13 | #include "am4372.dtsi" | 13 | #include "am4372.dtsi" |
14 | #include <dt-bindings/pinctrl/am43xx.h> | 14 | #include <dt-bindings/pinctrl/am43xx.h> |
15 | #include <dt-bindings/gpio/gpio.h> | 15 | #include <dt-bindings/gpio/gpio.h> |
16 | #include <dt-bindings/pwm/pwm.h> | ||
16 | 17 | ||
17 | / { | 18 | / { |
18 | model = "TI AM43x EPOS EVM"; | 19 | model = "TI AM43x EPOS EVM"; |
@@ -79,6 +80,12 @@ | |||
79 | 0x18c (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_scl.i2c0_scl */ | 80 | 0x18c (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_scl.i2c0_scl */ |
80 | >; | 81 | >; |
81 | }; | 82 | }; |
83 | |||
84 | ecap0_pins: backlight_pins { | ||
85 | pinctrl-single,pins = < | ||
86 | 0x164 MUX_MODE0 /* eCAP0_in_PWM0_out.eCAP0_in_PWM0_out MODE0 */ | ||
87 | >; | ||
88 | }; | ||
82 | }; | 89 | }; |
83 | 90 | ||
84 | matrix_keypad: matrix_keypad@0 { | 91 | matrix_keypad: matrix_keypad@0 { |
@@ -113,6 +120,13 @@ | |||
113 | 0x0203006c /* DOWN */ | 120 | 0x0203006c /* DOWN */ |
114 | 0x03030069>; /* LEFT */ | 121 | 0x03030069>; /* LEFT */ |
115 | }; | 122 | }; |
123 | |||
124 | backlight { | ||
125 | compatible = "pwm-backlight"; | ||
126 | pwms = <&ecap0 0 50000 PWM_POLARITY_INVERTED>; | ||
127 | brightness-levels = <0 51 53 56 62 75 101 152 255>; | ||
128 | default-brightness-level = <8>; | ||
129 | }; | ||
116 | }; | 130 | }; |
117 | 131 | ||
118 | &mmc1 { | 132 | &mmc1 { |
@@ -184,3 +198,13 @@ | |||
184 | &gpio3 { | 198 | &gpio3 { |
185 | status = "okay"; | 199 | status = "okay"; |
186 | }; | 200 | }; |
201 | |||
202 | &epwmss0 { | ||
203 | status = "okay"; | ||
204 | }; | ||
205 | |||
206 | &ecap0 { | ||
207 | status = "okay"; | ||
208 | pinctrl-names = "default"; | ||
209 | pinctrl-0 = <&ecap0_pins>; | ||
210 | }; | ||