linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alexandre Courbot <acourbot@nvidia.com>
To: Stephen Warren <swarren@nvidia.com>,
	Thierry Reding <thierry.reding@avionic-design.de>,
	Simon Glass <sjg@chromium.org>,
	Grant Likely <grant.likely@secretlab.ca>,
	Rob Herring <rob.herring@calxeda.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Mark Brown <broonie@opensource.wolfsonmicro.com>,
	Arnd Bergmann <arnd@arndb.de>
Cc: <linux-tegra@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	<linux-fbdev@vger.kernel.org>,
	<devicetree-discuss@lists.ozlabs.org>,
	Alexandre Courbot <acourbot@nvidia.com>
Subject: [RFC][PATCH v3 3/3] tegra: add pwm backlight device tree nodes
Date: Fri, 27 Jul 2012 21:05:50 +0900	[thread overview]
Message-ID: <1343390750-3642-4-git-send-email-acourbot@nvidia.com> (raw)
In-Reply-To: <1343390750-3642-1-git-send-email-acourbot@nvidia.com>

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
---
 arch/arm/boot/dts/tegra20-ventana.dts | 53 +++++++++++++++++++++++++++++++++++
 arch/arm/boot/dts/tegra20.dtsi        |  2 +-
 2 files changed, 54 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/tegra20-ventana.dts b/arch/arm/boot/dts/tegra20-ventana.dts
index be90544..6acdb6d 100644
--- a/arch/arm/boot/dts/tegra20-ventana.dts
+++ b/arch/arm/boot/dts/tegra20-ventana.dts
@@ -317,6 +317,59 @@
 		bus-width = <8>;
 	};
 
+	backlight {
+		compatible = "pwm-backlight";
+		brightness-levels = <0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 255>;
+		default-brightness-level = <12>;
+
+		pwms = <&pwm 2 5000000>;
+		pwm-names = "backlight";
+		power-supply = <&backlight_reg>;
+		enable-gpio = <&gpio 28 0>;
+
+		power-on-sequence {
+			regulator@0 {
+				id = "power";
+				enable;
+				post-delay = <10>;
+			};
+			pwm@1 {
+				id = "backlight";
+				enable;
+			};
+			gpio@2 {
+				id = "enable-gpio";
+				enable;
+			};
+		};
+		power-off-sequence {
+			gpio@0 {
+				id = "enable-gpio";
+				disable;
+			};
+			pwm@1 {
+				id = "backlight";
+				disable;
+			};
+			regulator@2 {
+				id = "power";
+				disable;
+				pre-delay = <10>;
+			};
+		};
+	};
+
+	backlight_reg: fixedregulator@176 {
+		compatible = "regulator-fixed";
+		regulator-name = "backlight_regulator";
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <1800000>;
+		gpio = <&gpio 176 0>;
+		startup-delay-us = <0>;
+		enable-active-high;
+		regulator-boot-off;
+	};
+
 	sound {
 		compatible = "nvidia,tegra-audio-wm8903-ventana",
 			     "nvidia,tegra-audio-wm8903";
diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/tegra20.dtsi
index 405d167..67a6cd9 100644
--- a/arch/arm/boot/dts/tegra20.dtsi
+++ b/arch/arm/boot/dts/tegra20.dtsi
@@ -123,7 +123,7 @@
 		status = "disabled";
 	};
 
-	pwm {
+	pwm: pwm {
 		compatible = "nvidia,tegra20-pwm";
 		reg = <0x7000a000 0x100>;
 		#pwm-cells = <2>;
-- 
1.7.11.3


      parent reply	other threads:[~2012-07-27 12:06 UTC|newest]

Thread overview: 63+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-27 12:05 [RFC][PATCH v3 0/3] Power sequences with PWM and DT support Alexandre Courbot
2012-07-27 12:05 ` [RFC][PATCH v3 1/3] runtime interpreted power sequences Alexandre Courbot
2012-07-27 18:19   ` Greg Kroah-Hartman
2012-07-30  1:51     ` Alex Courbot
2012-07-30  2:40       ` Gethering power management/policy hw drivers under drivers/power/? (Re: [RFC][PATCH v3 1/3] runtime interpreted power sequences) Anton Vorontsov
2012-07-30 20:59         ` Rafael J. Wysocki
2012-08-01  0:51           ` Anton Vorontsov
2012-08-06  8:45         ` Pihet-XID, Jean
2012-07-27 18:20   ` [RFC][PATCH v3 1/3] runtime interpreted power sequences Greg Kroah-Hartman
2012-07-30 11:00   ` Simon Glass
2012-07-31  8:37     ` Alex Courbot
2012-07-31  9:13       ` Thierry Reding
2012-07-31 10:11         ` Alex Courbot
2012-07-31 10:46           ` Thierry Reding
2012-07-31 14:23       ` Mark Brown
2012-07-30 11:33   ` Thierry Reding
2012-07-31  9:51     ` Alex Courbot
2012-07-31 10:19       ` Thierry Reding
2012-08-01  2:50         ` Alex Courbot
2012-08-01  7:17           ` Thierry Reding
2012-07-31 14:11       ` Mark Brown
2012-07-30 15:44   ` Rob Herring
2012-07-30 15:47     ` Mark Brown
2012-07-31  9:16       ` Thierry Reding
2012-07-30 22:26     ` Stephen Warren
2012-07-31 10:15       ` Alex Courbot
2012-07-30 22:45   ` Stephen Warren
2012-07-31 10:32     ` Alex Courbot
2012-07-31 10:56       ` Thierry Reding
2012-07-31 12:22         ` Mitch Bradley
2012-07-31 12:38           ` Thierry Reding
2012-07-31 12:55             ` Mitch Bradley
2012-08-01  1:47               ` Alex Courbot
2012-08-01  2:15                 ` Mitch Bradley
2012-08-01  1:42           ` Alex Courbot
2012-07-31 14:13         ` Mark Brown
2012-07-31 14:22           ` Thierry Reding
2012-07-31 14:26             ` Mark Brown
2012-07-31 14:32               ` Thierry Reding
2012-07-31 15:39                 ` Mark Brown
2012-07-31 16:19                   ` Greg Kroah-Hartman
2012-07-31 16:22                     ` Mark Brown
2012-07-31 16:42                       ` Greg Kroah-Hartman
2012-07-31 16:50                         ` Mark Brown
2012-08-01  7:41                   ` Thierry Reding
2012-08-01 13:26                     ` Mark Brown
2012-08-01 13:38                       ` Thierry Reding
2012-08-01 13:55                         ` Mark Brown
2012-08-01 14:01                           ` Thierry Reding
2012-07-31 16:34       ` Stephen Warren
2012-08-02  8:00     ` Alex Courbot
2012-08-02  8:21       ` Thierry Reding
2012-08-02  8:27         ` Alex Courbot
2012-08-02  8:45           ` Thierry Reding
2012-08-02  9:20             ` Alex Courbot
2012-08-02 18:11         ` Mark Brown
2012-08-03  1:15           ` Alex Courbot
2012-08-04 14:12             ` Mark Brown
2012-08-06  2:27               ` Alex Courbot
2012-08-06 16:16                 ` Stephen Warren
2012-08-07  5:10                   ` Alex Courbot
2012-07-27 12:05 ` [RFC][PATCH v3 2/3] pwm_backlight: use " Alexandre Courbot
2012-07-27 12:05 ` Alexandre Courbot [this message]

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=1343390750-3642-4-git-send-email-acourbot@nvidia.com \
    --to=acourbot@nvidia.com \
    --cc=arnd@arndb.de \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=devicetree-discuss@lists.ozlabs.org \
    --cc=grant.likely@secretlab.ca \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-fbdev@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=rob.herring@calxeda.com \
    --cc=sjg@chromium.org \
    --cc=swarren@nvidia.com \
    --cc=thierry.reding@avionic-design.de \
    /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).