1# Copyright (c) 2021 Esco Medical ApS 2# SPDX-License-Identifier: Apache-2.0 3 4description: | 5 Texas Instruments TLC5971 (and compatible) LED controller 6 7 Driver bindings for daisy chains of a TLC5971 devices using a single device 8 tree node. Length of daisy chains in pixels is defined by the chain-length 9 property. 10 11 The color order of the TLC5971 is BGR. Applications can provide custom mappings 12 using the color-mapping property. 13 14 Example device tree node w. 24 pixels (6 TLC5971 devices): 15 16 &spi1 { 17 led_controller: led_controller@0 { 18 status = "okay"; 19 compatible = "ti,tlc59711", "ti,tlc5971"; 20 spi-max-frequency = <DT_FREQ_M(1)>; 21 reg = <0x0>; 22 chain-length = <24>; 23 color-mapping = <LED_COLOR_ID_BLUE>, 24 <LED_COLOR_ID_GREEN>, 25 <LED_COLOR_ID_RED>; 26 }; 27 }; 28 29compatible: "ti,tlc5971" 30 31include: spi-device.yaml 32 33properties: 34 chain-length: 35 type: int 36 required: true 37 description: | 38 The number of RGB LEDs in the daisy-chain. 39 Must be multiple of 4. A single TLC5971 device supports 4 RGB LEDs. 40 41 color-mapping: 42 type: array 43 required: true 44 description: | 45 Channel to color mapping (or pixel order). 46 For example a BGR channel to color mapping would be 47 48 color-mapping = <LED_COLOR_ID_BLUE 49 LED_COLOR_ID_GREEN 50 LED_COLOR_ID_RED>; 51