From: Sourav Poddar <sourav.poddar@ti.com>
To: rob.herring@calxeda.com, mark.rutland@arm.com,
swarren@wwwdotorg.org, devicetree@vger.kernel.org,
tony@atomide.com, bcousson@baylibre.com
Cc: balbi@ti.com, linux-omap@vger.kernel.org, nsekhar@ti.com,
Sourav Poddar <sourav.poddar@ti.com>
Subject: [PATCH 1/3] arm: dts: am437x-gp-evm: Add pwm backlight support.
Date: Wed, 27 Nov 2013 13:01:17 +0530 [thread overview]
Message-ID: <1385537479-6959-2-git-send-email-sourav.poddar@ti.com> (raw)
In-Reply-To: <1385537479-6959-1-git-send-email-sourav.poddar@ti.com>
Add pwm backlight support for gp evm.
Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
---
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 11d93ba..2e79bda 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>;
+};
--
1.7.1
next prev parent reply other threads:[~2013-11-27 7:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-27 7:31 [PATCH 0/3] Add more device nodes for am43x gp evm Sourav Poddar
2013-11-27 7:31 ` Sourav Poddar [this message]
2013-11-27 7:31 ` [PATCH 2/3] arm: dts: am437x-gp-evm: Enable gpio Sourav Poddar
2013-11-27 7:31 ` [PATCH 3/3] arm: dts: am43x-gp-evm: Add matrix gpio keys Sourav Poddar
2013-12-05 9:48 ` [PATCH 0/3] Add more device nodes for am43x gp evm Sourav Poddar
2013-12-18 17:43 ` Sourav Poddar
2013-12-18 17:49 ` Benoit Cousson
2013-12-18 18:15 ` Sourav Poddar
2013-12-18 18:51 ` Benoit Cousson
2013-12-19 3:21 ` Sourav Poddar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1385537479-6959-2-git-send-email-sourav.poddar@ti.com \
--to=sourav.poddar@ti.com \
--cc=balbi@ti.com \
--cc=bcousson@baylibre.com \
--cc=devicetree@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=nsekhar@ti.com \
--cc=rob.herring@calxeda.com \
--cc=swarren@wwwdotorg.org \
--cc=tony@atomide.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).