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

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: leds: Add LP5860 LED controller

The LP5860 is a LED matrix driver with 18 constant current sinks and 11
scan switches for 198 LED dots:

* Supply range from 2.7 V to 5.5 V
* 0.1mA - 50mA per current sink
* 1MHz I2C and 12MHz SPI control interface
* 8-bit analog dimming
* 8/16-bit PWM dimming
* individual ON and OFF control for each LED dot
* globat 3-bit Maximum Current setting for all LED dots
* individual LED dot open/short detection

Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://patch.msgid.link/20251201-v6-14-topic-ti-lp5860-v6-1-be9a21218157@pengutronix.de
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Steffen Trumtrar and committed by
Lee Jones
393d56d4 101bc85a

+111
+111
Documentation/devicetree/bindings/leds/leds-lp5860.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/leds/leds-lp5860.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: LED driver for LP5860 RGB LED from Texas Instruments. 8 + 9 + maintainers: 10 + - Steffen Trumtrar <kernel@pengutronix.de> 11 + 12 + description: | 13 + The LP5860 is multi-channel, I2C and SPI RGB LED Driver that can group RGB LEDs 14 + into a LED group or control them individually. 15 + 16 + For more product information please see the link below: 17 + https://www.ti.com/lit/ds/symlink/lp5860.pdf 18 + 19 + allOf: 20 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 21 + 22 + properties: 23 + compatible: 24 + enum: 25 + - ti,lp5860 26 + 27 + reg: 28 + maxItems: 1 29 + 30 + '#address-cells': 31 + const: 1 32 + 33 + '#size-cells': 34 + const: 0 35 + 36 + patternProperties: 37 + '^multi-led@[0-9a-f]+$': 38 + type: object 39 + $ref: leds-class-multicolor.yaml# 40 + unevaluatedProperties: false 41 + 42 + properties: 43 + reg: 44 + minimum: 0 45 + maximum: 198 46 + description: 47 + This property denotes the LED module number that is used 48 + for the child node. 49 + 50 + '#address-cells': 51 + const: 1 52 + 53 + '#size-cells': 54 + const: 0 55 + 56 + patternProperties: 57 + "^led@[0-9a-f]+$": 58 + type: object 59 + $ref: common.yaml# 60 + unevaluatedProperties: false 61 + 62 + properties: 63 + reg: 64 + maxItems: 1 65 + 66 + required: 67 + - reg 68 + 69 + required: 70 + - compatible 71 + - reg 72 + 73 + unevaluatedProperties: false 74 + 75 + examples: 76 + - | 77 + #include <dt-bindings/leds/common.h> 78 + 79 + spi { 80 + #address-cells = <1>; 81 + #size-cells = <0>; 82 + 83 + led-controller@0 { 84 + compatible = "ti,lp5860"; 85 + reg = <0x0>; 86 + #address-cells = <1>; 87 + #size-cells = <0>; 88 + 89 + multi-led@0 { 90 + #address-cells = <1>; 91 + #size-cells = <0>; 92 + reg = <0x0>; 93 + color = <LED_COLOR_ID_RGB>; 94 + 95 + led@0 { 96 + reg = <0x0>; 97 + color = <LED_COLOR_ID_RED>; 98 + }; 99 + 100 + led@1 { 101 + reg = <0x1>; 102 + color = <LED_COLOR_ID_GREEN>; 103 + }; 104 + 105 + led@2 { 106 + reg = <0x2>; 107 + color = <LED_COLOR_ID_BLUE>; 108 + }; 109 + }; 110 + }; 111 + };