summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/leds/leds-lp55xx.txt
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2013-04-23 04:52:59 -0700
committerBryan Wu <cooloney@gmail.com>2013-06-20 16:21:31 -0700
commit7542a04b1515f0f878b267beb233c4ef067243fb (patch)
treef5516bc2113773391893cbbd2b309feb45829f18 /Documentation/devicetree/bindings/leds/leds-lp55xx.txt
parent7d132055814ef17a6c7b69f342244c410a5e000f (diff)
downloadop-kernel-dev-7542a04b1515f0f878b267beb233c4ef067243fb.zip
op-kernel-dev-7542a04b1515f0f878b267beb233c4ef067243fb.tar.gz
leds: lp55xx: add support for Device Tree bindings
This patch allows the lp5521 driver to be successfully probed and initialised when Device Tree support is enabled. Based on a patch by Gabriel Fernandez, rewritten in accordance with review feedback. Cc: Gabriel Fernandez <gabriel.fernandez@stericsson.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Milo Kim <milo.kim@ti.com> Signed-off-by: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'Documentation/devicetree/bindings/leds/leds-lp55xx.txt')
-rw-r--r--Documentation/devicetree/bindings/leds/leds-lp55xx.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/leds/leds-lp55xx.txt b/Documentation/devicetree/bindings/leds/leds-lp55xx.txt
new file mode 100644
index 0000000..348c88e
--- /dev/null
+++ b/Documentation/devicetree/bindings/leds/leds-lp55xx.txt
@@ -0,0 +1,21 @@
+Binding for National Semiconductor LP55xx Led Drivers
+
+Required properties:
+- compatible: "national,lp5521" or "national,lp5523"
+- label: Used for naming LEDs
+- num-channel: Number of LED channels
+- led-cur: Current setting at each led channel (mA x10, 0 if led is not connected)
+- max-cur: Maximun current at each led channel.
+- clock-mode: Input clock mode, (0: automode, 1: internal, 2: external)
+
+example:
+
+lp5521@32 {
+ compatible = "national,lp5521";
+ reg = <0x32>;
+ label = "lp5521_pri";
+ num-channel = /bits/ 8 <3>;
+ led-cur = /bits/ 8 <0x2f 0x2f 0x2f>;
+ max-cur = /bits/ 8 <0x5f 0x5f 0x5f>;
+ clock-mode = /bits/8 <2>;
+};
OpenPOWER on IntegriCloud