From: "David Rivshin (Allworx)" <drivshin.allworx@gmail.com>
To: linux-leds@vger.kernel.org, devicetree@vger.kernel.org
Cc: Richard Purdie <rpurdie@rpsys.net>,
Jacek Anaszewski <j.anaszewski@samsung.com>,
Rob Herring <robh+dt@kernel.org>, Pawel Moll <pawel.moll@arm.com>,
Mark Rutland <mark.rutland@arm.com>,
Ian Campbell <ijc+devicetree@hellion.org.uk>,
Kumar Gala <galak@codeaurora.org>,
Stefan Wahren <stefan.wahren@i2se.com>,
linux-kernel@vger.kernel.org
Subject: [PATCH 2/4] DT: leds: Add binding for the ISSI IS31FL32xx family of LED controllers
Date: Wed, 2 Mar 2016 22:01:33 -0500 [thread overview]
Message-ID: <1456974095-1867-3-git-send-email-drivshin.allworx@gmail.com> (raw)
In-Reply-To: <1456974095-1867-1-git-send-email-drivshin.allworx@gmail.com>
From: David Rivshin <drivshin@allworx.com>
This adds a binding description for the is31fl3236/35/18/16 I2C LED
controllers.
Signed-off-by: David Rivshin <drivshin@allworx.com>
---
Rob,
I went with the 1-based 'reg' property here. I inferred that that
would be your preference based on the previous thread [1]. Let me
know if that's not the case.
Changes from RFC:
- Removed max-brightness property.
- Added #address-cells and #size-cells properties to the example.
[1] http://www.spinics.net/lists/linux-leds/msg05589.html
.../devicetree/bindings/leds/leds-is31fl32xx.txt | 49 ++++++++++++++++++++++
1 file changed, 49 insertions(+)
create mode 100644 Documentation/devicetree/bindings/leds/leds-is31fl32xx.txt
diff --git a/Documentation/devicetree/bindings/leds/leds-is31fl32xx.txt b/Documentation/devicetree/bindings/leds/leds-is31fl32xx.txt
new file mode 100644
index 0000000..539df2e
--- /dev/null
+++ b/Documentation/devicetree/bindings/leds/leds-is31fl32xx.txt
@@ -0,0 +1,49 @@
+Binding for ISSI IS31FL32xx LED Drivers
+
+The IS31FL32xx family of LED drivers are I2C devices with multiple
+constant-current channels, each with independent 256-level PWM control.
+Each LED is represented as a sub-node of the device.
+
+Required properties:
+- compatible: one of
+ issi,is31fl3236
+ issi,is31fl3235
+ issi,is31fl3218
+ issi,is31fl3216
+- reg: I2C slave address
+- address-cells : must be 1
+- size-cells : must be 0
+
+LED sub-node properties:
+- reg : LED channel number (1..N)
+- label : (optional)
+ see Documentation/devicetree/bindings/leds/common.txt
+- linux,default-trigger : (optional)
+ see Documentation/devicetree/bindings/leds/common.txt
+
+
+Example:
+
+leds: is31fl3236@3c {
+ compatible = "issi,is31fl3236";
+ reg = <0x3c>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ led@1 {
+ reg = <1>;
+ label = "EB:blue:usr0";
+ };
+ led@2 {
+ reg = <2>;
+ label = "EB:blue:usr1";
+ };
+ ...
+ led@36 {
+ reg = <36>;
+ label = "EB:blue:usr35";
+ };
+};
+
+For more product information please see the link below:
+http://www.issi.com/US/product-analog-fxled-driver.shtml
--
2.5.0
next prev parent reply other threads:[~2016-03-03 3:03 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-03 3:01 [PATCH 0/4] leds: Add driver for the ISSI IS31FL32xx family of LED controllers David Rivshin (Allworx)
2016-03-03 3:01 ` [PATCH 1/4] DT: Add vendor prefix for Integrated Silicon Solutions Inc David Rivshin (Allworx)
2016-03-05 4:28 ` Rob Herring
2016-03-03 3:01 ` David Rivshin (Allworx) [this message]
2016-03-05 4:28 ` [PATCH 2/4] DT: leds: Add binding for the ISSI IS31FL32xx family of LED controllers Rob Herring
2016-03-03 3:01 ` [PATCH 3/4] leds: Add driver " David Rivshin (Allworx)
2016-03-03 3:21 ` kbuild test robot
2016-03-03 14:51 ` Jacek Anaszewski
2016-03-04 0:45 ` David Rivshin (Allworx)
[not found] ` <20160303194531.316d7918.drivshin.allworx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-03-04 7:54 ` Jacek Anaszewski
[not found] ` <56D93F1A.6030305-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2016-03-04 15:05 ` David Rivshin (Allworx)
2016-03-04 16:01 ` Jacek Anaszewski
2016-03-04 19:02 ` David Rivshin (Allworx)
2016-03-04 21:39 ` Jacek Anaszewski
2016-03-05 5:29 ` David Rivshin (Allworx)
2016-03-05 11:37 ` Jacek Anaszewski
2016-03-03 18:13 ` Stefan Wahren
2016-03-04 14:27 ` David Rivshin (Allworx)
2016-03-04 15:38 ` Jacek Anaszewski
2016-03-05 6:12 ` David Rivshin (Allworx)
2016-03-05 11:39 ` Jacek Anaszewski
2016-03-03 3:01 ` [PATCH 4/4] leds: Replace dedicated SN3218 driver with IS31FL32XX driver David Rivshin (Allworx)
2016-03-03 14:51 ` Jacek Anaszewski
2016-03-05 5:34 ` David Rivshin (Allworx)
2016-03-05 11:37 ` Jacek Anaszewski
2016-03-04 21:14 ` Stefan Wahren
2016-03-05 5:00 ` David Rivshin (Allworx)
2016-03-05 4:28 ` Rob Herring
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=1456974095-1867-3-git-send-email-drivshin.allworx@gmail.com \
--to=drivshin.allworx@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=ijc+devicetree@hellion.org.uk \
--cc=j.anaszewski@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=pawel.moll@arm.com \
--cc=robh+dt@kernel.org \
--cc=rpurdie@rpsys.net \
--cc=stefan.wahren@i2se.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).