1# Copyright (c) 2023 NXP Semiconductors 2# Copyright (c) 2023 Congipilot Foundation 3# SPDX-License-Identifier: Apache-2.0 4 5description: | 6 NCP5623 Triple Output I2C Controlled RGB LED driver 7 8 The LED_SHELL application can be used for testing 9 10 The following example defines a single RGB LED in the ncp5623 DT node 11 12 ncp5623c@39 { 13 compatible = "onnn,ncp5623"; 14 reg = <0x39>; 15 16 led_0 { 17 label = "RGB LED"; 18 index = <0>; 19 color-mapping = 20 <LED_COLOR_ID_RED>, 21 <LED_COLOR_ID_GREEN>, 22 <LED_COLOR_ID_BLUE>; 23 }; 24 }; 25 26 The following example defines three single-channel LEDs in the ncp5623 DT node 27 28 ncp5623c@39 { 29 compatible = "onnn,ncp5623"; 30 reg = <0x39>; 31 32 led_0 { 33 label = "RED LED"; 34 index = <0>; 35 color-mapping = 36 <LED_COLOR_ID_RED>; 37 }; 38 39 led_1 { 40 label = "GREEN LED"; 41 index = <1>; 42 color-mapping = 43 <LED_COLOR_ID_GREEN>; 44 }; 45 46 led_2 { 47 label = "BLUE LED"; 48 index = <2>; 49 color-mapping = 50 <LED_COLOR_ID_BLUE>; 51 }; 52 }; 53 54 55compatible: "onnn,ncp5623" 56 57include: ["i2c-device.yaml", "led-controller.yaml"] 58 59child-binding: 60 properties: 61 label: 62 required: true 63 64 index: 65 required: true 66 67 color-mapping: 68 required: true 69