diff mbox

[RESEND,v6,1/2] leds: tlc591xx: Document binding for the TI 8/16 Channel i2c LED driver

Message ID 1426630107-25057-2-git-send-email-andrew@lunn.ch
State Superseded, archived
Headers show

Commit Message

Andrew Lunn March 17, 2015, 10:08 p.m. UTC
Document the binding for the TLC591xx LED driver.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Imre Kaloz <kaloz@openwrt.org>
Cc: Matthew.Fatheree@belkin.com
---
 .../devicetree/bindings/leds/leds-tlc591xx.txt     | 40 ++++++++++++++++++++++
 1 file changed, 40 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/leds/leds-tlc591xx.txt

Comments

Jacek Anaszewski April 20, 2015, 1:09 p.m. UTC | #1
On 03/17/2015 11:08 PM, Andrew Lunn wrote:
> Document the binding for the TLC591xx LED driver.
>
> Signed-off-by: Andrew Lunn <andrew@lunn.ch>
> Tested-by: Imre Kaloz <kaloz@openwrt.org>
> Cc: Matthew.Fatheree@belkin.com
> ---
>   .../devicetree/bindings/leds/leds-tlc591xx.txt     | 40 ++++++++++++++++++++++
>   1 file changed, 40 insertions(+)
>   create mode 100644 Documentation/devicetree/bindings/leds/leds-tlc591xx.txt
>
> diff --git a/Documentation/devicetree/bindings/leds/leds-tlc591xx.txt b/Documentation/devicetree/bindings/leds/leds-tlc591xx.txt
> new file mode 100644
> index 000000000000..3bbbf7024411
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/leds/leds-tlc591xx.txt
> @@ -0,0 +1,40 @@
> +LEDs connected to tlc59116 or tlc59108
> +
> +Required properties
> +- compatible: should be "ti,tlc59116" or "ti,tlc59108"
> +- #address-cells: must be 1
> +- #size-cells: must be 0
> +- reg: typically 0x68
> +
> +Each led is represented as a sub-node of the ti,tlc59116.
> +See Documentation/devicetree/bindings/leds/common.txt
> +
> +LED sub-node properties:
> +- reg: number of LED line, 0 to 15 or 0 to 7
> +- label: (optional) name of LED
> +- linux,default-trigger : (optional)
> +
> +Examples:
> +
> +tlc59116@68 {
> +	#address-cells = <1>;
> +	#size-cells = <0>;
> +	compatible = "ti,tlc59116";
> +	reg = <0x68>;
> +
> +	wan@0 {
> +		label = "wrt1900ac:amber:wan";
> +		reg = <0x0>;
> +	};
> +
> +	2g@2 {
> +		label = "wrt1900ac:white:2g";
> +		reg = <0x2>;
> +	};
> +
> +	alive@9 {
> +		label = "wrt1900ac:green:alive";
> +		reg = <0x9>;
> +		linux,default_trigger = "heartbeat";
> +	};
> +};
>

Acked-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Bryan Wu April 20, 2015, 5:46 p.m. UTC | #2
On Mon, Apr 20, 2015 at 6:09 AM, Jacek Anaszewski
<j.anaszewski@samsung.com> wrote:
> On 03/17/2015 11:08 PM, Andrew Lunn wrote:
>>
>> Document the binding for the TLC591xx LED driver.
>>
>> Signed-off-by: Andrew Lunn <andrew@lunn.ch>
>> Tested-by: Imre Kaloz <kaloz@openwrt.org>
>> Cc: Matthew.Fatheree@belkin.com
>> ---
>>   .../devicetree/bindings/leds/leds-tlc591xx.txt     | 40
>> ++++++++++++++++++++++
>>   1 file changed, 40 insertions(+)
>>   create mode 100644
>> Documentation/devicetree/bindings/leds/leds-tlc591xx.txt
>>
>> diff --git a/Documentation/devicetree/bindings/leds/leds-tlc591xx.txt
>> b/Documentation/devicetree/bindings/leds/leds-tlc591xx.txt
>> new file mode 100644
>> index 000000000000..3bbbf7024411
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/leds/leds-tlc591xx.txt
>> @@ -0,0 +1,40 @@
>> +LEDs connected to tlc59116 or tlc59108
>> +
>> +Required properties
>> +- compatible: should be "ti,tlc59116" or "ti,tlc59108"
>> +- #address-cells: must be 1
>> +- #size-cells: must be 0
>> +- reg: typically 0x68
>> +
>> +Each led is represented as a sub-node of the ti,tlc59116.
>> +See Documentation/devicetree/bindings/leds/common.txt
>> +
>> +LED sub-node properties:
>> +- reg: number of LED line, 0 to 15 or 0 to 7
>> +- label: (optional) name of LED
>> +- linux,default-trigger : (optional)
>> +
>> +Examples:
>> +
>> +tlc59116@68 {
>> +       #address-cells = <1>;
>> +       #size-cells = <0>;
>> +       compatible = "ti,tlc59116";
>> +       reg = <0x68>;
>> +
>> +       wan@0 {
>> +               label = "wrt1900ac:amber:wan";
>> +               reg = <0x0>;
>> +       };
>> +
>> +       2g@2 {
>> +               label = "wrt1900ac:white:2g";
>> +               reg = <0x2>;
>> +       };
>> +
>> +       alive@9 {
>> +               label = "wrt1900ac:green:alive";
>> +               reg = <0x9>;
>> +               linux,default_trigger = "heartbeat";
>> +       };
>> +};
>>
>
> Acked-by: Jacek Anaszewski <j.anaszewski@samsung.com>
>

Merged into my tree.
-Bryan
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/Documentation/devicetree/bindings/leds/leds-tlc591xx.txt b/Documentation/devicetree/bindings/leds/leds-tlc591xx.txt
new file mode 100644
index 000000000000..3bbbf7024411
--- /dev/null
+++ b/Documentation/devicetree/bindings/leds/leds-tlc591xx.txt
@@ -0,0 +1,40 @@ 
+LEDs connected to tlc59116 or tlc59108
+
+Required properties
+- compatible: should be "ti,tlc59116" or "ti,tlc59108"
+- #address-cells: must be 1
+- #size-cells: must be 0
+- reg: typically 0x68
+
+Each led is represented as a sub-node of the ti,tlc59116.
+See Documentation/devicetree/bindings/leds/common.txt
+
+LED sub-node properties:
+- reg: number of LED line, 0 to 15 or 0 to 7
+- label: (optional) name of LED
+- linux,default-trigger : (optional)
+
+Examples:
+
+tlc59116@68 {
+	#address-cells = <1>;
+	#size-cells = <0>;
+	compatible = "ti,tlc59116";
+	reg = <0x68>;
+
+	wan@0 {
+		label = "wrt1900ac:amber:wan";
+		reg = <0x0>;
+	};
+
+	2g@2 {
+		label = "wrt1900ac:white:2g";
+		reg = <0x2>;
+	};
+
+	alive@9 {
+		label = "wrt1900ac:green:alive";
+		reg = <0x9>;
+		linux,default_trigger = "heartbeat";
+	};
+};