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. Note: chain-length must be a multiple of 4. A single TLC5971 device
10  supports 4 RGB LEDs.
11
12  The color order of the TLC5971 is BGR. Applications can provide custom mappings
13  using the color-mapping property.
14
15  Example device tree node w. 24 pixels (6 TLC5971 devices):
16
17    &spi1 {
18      led_controller: led_controller@0 {
19        status = "okay";
20        compatible = "ti,tlc59711", "ti,tlc5971";
21        spi-max-frequency = <DT_FREQ_M(1)>;
22        reg = <0x0>;
23        chain-length = <24>;
24        color-mapping = <LED_COLOR_ID_BLUE>,
25                        <LED_COLOR_ID_GREEN>,
26                        <LED_COLOR_ID_RED>;
27      };
28    };
29
30compatible: "ti,tlc5971"
31
32include: [spi-device.yaml, led-strip.yaml]
33