From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
To: Paul Walmsley <paul@pwsan.com>
Cc: Tony Lindgren <tony@atomide.com>,
linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org,
Felipe Balbi <balbi@ti.com>,
Philip Avinash <avinashphilip@ti.com>,
Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Subject: [PATCH 3/4] ARM: dts: AM33XX: Add PWM backlight DT data to am335x-evm
Date: Thu, 6 Jun 2013 15:52:38 +0200 [thread overview]
Message-ID: <1370526759-31163-4-git-send-email-bigeasy@linutronix.de> (raw)
In-Reply-To: <1370526759-31163-1-git-send-email-bigeasy@linutronix.de>
From: Philip Avinash <avinashphilip@ti.com>
PWM output from ecap0 uses as backlight source. Also adds low threshold
value to have a uniform divisions in brightness-levels scales.
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>
---
arch/arm/boot/dts/am335x-evm.dts | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/arch/arm/boot/dts/am335x-evm.dts b/arch/arm/boot/dts/am335x-evm.dts
index 0423298..35b2f77 100644
--- a/arch/arm/boot/dts/am335x-evm.dts
+++ b/arch/arm/boot/dts/am335x-evm.dts
@@ -44,6 +44,12 @@
0x154 0x27 /* spi0_d0.gpio0_3, INPUT | MODE7 */
>;
};
+
+ ecap0_pins: backlight_pins {
+ pinctrl-single,pins = <
+ 0x164 0x0 /* eCAP0_in_PWM0_out.eCAP0_in_PWM0_out MODE0 */
+ >;
+ };
};
ocp {
@@ -102,6 +108,16 @@
reg = <0x48>;
};
};
+
+ epwmss0: epwmss@48300000 {
+ status = "okay";
+
+ ecap0: ecap@48300100 {
+ status = "okay";
+ pinctrl-names = "default";
+ pinctrl-0 = <&ecap0_pins>;
+ };
+ };
};
vbat: fixedregulator@0 {
@@ -158,6 +174,13 @@
gpio-key,wakeup;
};
};
+
+ backlight {
+ compatible = "pwm-backlight";
+ pwms = <&ecap0 0 50000 0>;
+ brightness-levels = <0 51 53 56 62 75 101 152 255>;
+ default-brightness-level = <8>;
+ };
};
/include/ "tps65910.dtsi"
--
1.7.10.4
next prev parent reply other threads:[~2013-06-06 13:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-06 13:52 Missing pieces for AM335x PWM / backlight support Sebastian Andrzej Siewior
2013-06-06 13:52 ` [PATCH 1/4] ARM: AM33XX: clk: Add clock node for EHRPWM TBCLK Sebastian Andrzej Siewior
2013-06-09 7:13 ` Paul Walmsley
2013-06-06 13:52 ` [PATCH 2/4] ARM: dts: AM33XX: Add PWMSS device tree nodes Sebastian Andrzej Siewior
2013-06-12 16:10 ` Sebastian Andrzej Siewior
2013-06-12 16:40 ` Felipe Balbi
2013-06-18 13:36 ` Sebastian Andrzej Siewior
2013-06-19 1:24 ` Benoit Cousson
2013-06-06 13:52 ` Sebastian Andrzej Siewior [this message]
2013-06-06 13:52 ` [PATCH 4/4] ARM: dts: AM33XX: Add PWM backlight DT data to am335x-evmsk Sebastian Andrzej Siewior
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=1370526759-31163-4-git-send-email-bigeasy@linutronix.de \
--to=bigeasy@linutronix.de \
--cc=avinashphilip@ti.com \
--cc=balbi@ti.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=paul@pwsan.com \
--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
all inboxes | Powered by JetHome®