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 7title: LED driver for LP5860 RGB LED from Texas Instruments. 8 9maintainers: 10 - Steffen Trumtrar <kernel@pengutronix.de> 11 12description: | 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 19allOf: 20 - $ref: /schemas/spi/spi-peripheral-props.yaml# 21 22properties: 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 36patternProperties: 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 69required: 70 - compatible 71 - reg 72 73unevaluatedProperties: false 74 75examples: 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 }; 112