Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: contact@paulk.fr (Paul Kocialkowski)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 4/5] ARM: dts: omap4-kc1: LEDs support
Date: Tue, 29 Mar 2016 21:28:26 +0200	[thread overview]
Message-ID: <1459279707-17611-6-git-send-email-contact@paulk.fr> (raw)
In-Reply-To: <1459279707-17611-1-git-send-email-contact@paulk.fr>

This adds support for the Kindle Fire (first generation) power button LEDs, that
are wired to the TWL6030 PWM outputs.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
---
 arch/arm/boot/dts/omap4-kc1.dts | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/arch/arm/boot/dts/omap4-kc1.dts b/arch/arm/boot/dts/omap4-kc1.dts
index 0d08f9f..3681414 100644
--- a/arch/arm/boot/dts/omap4-kc1.dts
+++ b/arch/arm/boot/dts/omap4-kc1.dts
@@ -17,6 +17,22 @@
 		device_type = "memory";
 		reg = <0x80000000 0x20000000>; /* 512 MB */
 	};
+
+	pwmleds {
+		compatible = "pwm-leds";
+
+		green {
+			label = "green";
+			pwms = <&twl_pwm 0 7812500>;
+			max-brightness = <127>;
+		};
+
+		orange {
+			label = "orange";
+			pwms = <&twl_pwm 1 7812500>;
+			max-brightness = <127>;
+		};
+	};
 };
 
 &omap4_pmx_core {
-- 
2.7.4

  parent reply	other threads:[~2016-03-29 19:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-29 19:28 [PATCH 0/5] Amazon Kindle Fire (first generation) codename kc1 support series Paul Kocialkowski
2016-03-29 19:28 ` [PATCH] ARM: dts: omap3-sniper: Discard deprecated twl4030-power property Paul Kocialkowski
2016-03-29 19:28 ` [PATCH 1/5] devicetree: bindings: Add vendor prefix for Amazon.com, Inc Paul Kocialkowski
2016-04-01 17:01   ` Rob Herring
2016-04-12 21:22     ` Tony Lindgren
2016-03-29 19:28 ` [PATCH 2/5] ARM: dts: Amazon Kindle Fire (first generation) codename kc1 basic support Paul Kocialkowski
2016-03-29 19:28 ` [PATCH 3/5] ARM: dts: omap4-kc1: USB OTG support Paul Kocialkowski
2016-03-29 19:28 ` Paul Kocialkowski [this message]
2016-03-29 19:28 ` [PATCH 5/5] ARM: dts: omap4-kc1: Power off support Paul Kocialkowski

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=1459279707-17611-6-git-send-email-contact@paulk.fr \
    --to=contact@paulk.fr \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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