Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1352523

[PATCH v2 2/4] DT: leds: Add binding for the ISSI IS31FL32xx family of LED controllers

From "David Rivshin (Allworx)" <drivshin.allworx@gmail.com>
Newsgroups linux.kernel
Subject [PATCH v2 2/4] DT: leds: Add binding for the ISSI IS31FL32xx family of LED controllers
Date 2016-03-08 02:10 +0100
Message-ID <raejU-2dp-17@gated-at.bofh.it> (permalink)
References <raejT-2dp-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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>
Acked-by: Rob Herring <robh@kernel.org>
---

Changes from v1:
 - swapped node name and label in example
 - added Rob's ack (given above fix) [1]

Changes from RFC:
 - Removed max-brightness property.
 - Added #address-cells and #size-cells properties to the example.

[1] https://lkml.org/lkml/2016/3/4/959

 .../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..e72ed66
--- /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:
+
+is31fl3236: led-controller@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

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/4] leds: Add driver for the ISSI IS31FL32xx family of LED controllers "David Rivshin (Allworx)" <drivshin.allworx@gmail.com> - 2016-03-08 02:10 +0100
  [PATCH v2 2/4] DT: leds: Add binding for the ISSI IS31FL32xx family of LED controllers "David Rivshin (Allworx)" <drivshin.allworx@gmail.com> - 2016-03-08 02:10 +0100
  [PATCH v2 4/4] leds: Add SN3218 and SN3216 support to the IS31FL32XX driver "David Rivshin (Allworx)" <drivshin.allworx@gmail.com> - 2016-03-08 02:10 +0100
  [PATCH v2 3/4] leds: Add driver for the ISSI IS31FL32xx family of LED controllers "David Rivshin (Allworx)" <drivshin.allworx@gmail.com> - 2016-03-08 02:10 +0100
  Re: [PATCH v2 0/4] leds: Add driver for the ISSI IS31FL32xx family of  LED controllers Jacek Anaszewski <j.anaszewski@samsung.com> - 2016-03-08 10:50 +0100
    Re: [PATCH v2 0/4] leds: Add driver for the ISSI IS31FL32xx family  of LED controllers "David Rivshin (Allworx)" <drivshin.allworx@gmail.com> - 2016-03-08 16:30 +0100

csiph-web