1# Copyright (c) 2024 Arduino SA 2# SPDX-License-Identifier: Apache-2.0 3 4description: | 5 IS31FL3194 3-channel LED driver with programmable pattern sequencing 6 7 This driver supports single-channel and RGB LEDs. For single channel LEDs, 8 the led_set_brightness() API can be used to set the brightness of each LED. 9 For RGB LEDs, the led_set_color() API can be used to set the red, green and 10 blue components; the driver takes care of routing to the outputs described 11 by the color-mapping property. 12 13 The LED_SHELL application can be used for testing. 14 15 The following defines a single RGB LED in the is31fl3194 DT node: 16 17 is31fl3194@53 { 18 compatible = "issi,is31fl3194"; 19 reg = <0x53>; 20 21 led_0 { 22 label = "RGB LED"; 23 color-mapping = 24 <LED_COLOR_ID_RED>, 25 <LED_COLOR_ID_GREEN>, 26 <LED_COLOR_ID_BLUE>; 27 }; 28 }; 29 30 The following example defines three single-channel LEDs in the is31fl3194 DT node: 31 32 is31fl3194@53 { 33 compatible = "issi,is31fl3194"; 34 reg = <0x53>; 35 36 led_0 { 37 label = "RED LED"; 38 color-mapping = <LED_COLOR_ID_RED>; 39 }; 40 41 led_1 { 42 label = "GREEN LED"; 43 color-mapping = <LED_COLOR_ID_GREEN>; 44 }; 45 46 led_2 { 47 label = "BLUE LED"; 48 color-mapping = <LED_COLOR_ID_BLUE>; 49 }; 50 }; 51 52 53compatible: "issi,is31fl3194" 54 55include: ["i2c-device.yaml", "led-controller.yaml"] 56 57child-binding: 58 properties: 59 label: 60 required: true 61 62 color-mapping: 63 required: true 64 65 current-limit: 66 type: int 67 enum: 68 - 10 69 - 20 70 - 30 71 - 40 72 required: true 73 description: | 74 The current limit for the LED in mA. 75