Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: leds: document Panasonic AN30259A bindings

Signed-off-by: Simon Shields <simon@lineageos.org>
Acked-by: Pavel Machek <pavel@ucw.cz>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>

authored by

Simon Shields and committed by
Jacek Anaszewski
86bc7b2d 45d4c6de

+43
+43
Documentation/devicetree/bindings/leds/leds-an30259a.txt
··· 1 + * Panasonic AN30259A 3-channel LED driver 2 + 3 + The AN30259A is a LED controller capable of driving three LEDs independently. It supports 4 + constant current output and sloping current output modes. The chip is connected over I2C. 5 + 6 + Required properties: 7 + - compatible: Must be "panasonic,an30259a". 8 + - reg: I2C slave address. 9 + - #address-cells: Must be 1. 10 + - #size-cells: Must be 0. 11 + 12 + Each LED is represented as a sub-node of the panasonic,an30259a node. 13 + 14 + Required sub-node properties: 15 + - reg: Pin that the LED is connected to. Must be 1, 2, or 3. 16 + 17 + Optional sub-node properties: 18 + - label: see Documentation/devicetree/bindings/leds/common.txt 19 + - linux,default-trigger: see Documentation/devicetree/bindings/leds/common.txt 20 + 21 + Example: 22 + led-controller@30 { 23 + compatible = "panasonic,an30259a"; 24 + reg = <0x30>; 25 + #address-cells = <1>; 26 + #size-cells = <0>; 27 + 28 + led@1 { 29 + reg = <1>; 30 + linux,default-trigger = "heartbeat"; 31 + label = "red:indicator"; 32 + }; 33 + 34 + led@2 { 35 + reg = <2>; 36 + label = "green:indicator"; 37 + }; 38 + 39 + led@3 { 40 + reg = <3>; 41 + label = "blue:indicator"; 42 + }; 43 + };