summaryrefslogtreecommitdiffstats
path: root/target/linux/mvebu/patches-3.18/050-leds_tlc59116_document_binding.patch
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2015-01-15 13:59:01 +0000
committerImre Kaloz <kaloz@openwrt.org>2015-01-15 13:59:01 +0000
commit9a8bf84879ec239200b8ea13292a19d6b7a053e2 (patch)
tree32df949967b6cc76177b26cedcf1faf100c89595 /target/linux/mvebu/patches-3.18/050-leds_tlc59116_document_binding.patch
parentf1c5232f4d5c06b341341304de02596ca3d83c62 (diff)
downloadmaster-31e0f0ae-9a8bf84879ec239200b8ea13292a19d6b7a053e2.tar.gz
master-31e0f0ae-9a8bf84879ec239200b8ea13292a19d6b7a053e2.tar.bz2
master-31e0f0ae-9a8bf84879ec239200b8ea13292a19d6b7a053e2.zip
mvebu: add the new tlc59116 driver and migrate the Mamba to it
Signed-off-by: Imre Kaloz <kaloz@openwrt.org> SVN-Revision: 43975
Diffstat (limited to 'target/linux/mvebu/patches-3.18/050-leds_tlc59116_document_binding.patch')
-rw-r--r--target/linux/mvebu/patches-3.18/050-leds_tlc59116_document_binding.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/target/linux/mvebu/patches-3.18/050-leds_tlc59116_document_binding.patch b/target/linux/mvebu/patches-3.18/050-leds_tlc59116_document_binding.patch
new file mode 100644
index 0000000000..e55eca3e04
--- /dev/null
+++ b/target/linux/mvebu/patches-3.18/050-leds_tlc59116_document_binding.patch
@@ -0,0 +1,51 @@
+Document the binding for the TLC59116 LED driver.
+
+Signed-off-by: Andrew Lunn <andrew@lunn.ch>
+---
+ .../devicetree/bindings/leds/leds-tlc59116.txt | 40 ++++++++++++++++++++++
+ 1 file changed, 40 insertions(+)
+ create mode 100644 Documentation/devicetree/bindings/leds/leds-tlc59116.txt
+
+--- /dev/null
++++ b/Documentation/devicetree/bindings/leds/leds-tlc59116.txt
+@@ -0,0 +1,40 @@
++LEDs connected to tcl59116
++
++Required properties
++- compatible: should be "ti,tlc59116"
++- #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
++- 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";
++ };
++};