1/* 2 * Copyright (c) 2020 Seagate Technology LLC 3 * Copyright (c) 2022 Grinn 4 * 5 * SPDX-License-Identifier: Apache-2.0 6 */ 7 8#include <zephyr/dt-bindings/led/led.h> 9 10&i2c0 { 11 /* TI LP5030 LED controller connected to I2C0. */ 12 lp5030@30 { 13 compatible = "ti,lp5030"; 14 reg = <0x30>; 15 16 led_0 { 17 label = "LED LP5030 0"; 18 index = <0>; 19 color-mapping = 20 <LED_COLOR_ID_RED>, 21 <LED_COLOR_ID_GREEN>, 22 <LED_COLOR_ID_BLUE>; 23 }; 24 led_1 { 25 label = "LED LP5030 1"; 26 index = <1>; 27 color-mapping = 28 <LED_COLOR_ID_RED>, 29 <LED_COLOR_ID_GREEN>, 30 <LED_COLOR_ID_BLUE>; 31 }; 32 led_2 { 33 label = "LED LP5030 2"; 34 index = <2>; 35 color-mapping = 36 <LED_COLOR_ID_RED>, 37 <LED_COLOR_ID_GREEN>, 38 <LED_COLOR_ID_BLUE>; 39 }; 40 led_3 { 41 label = "LED LP5030 3"; 42 index = <3>; 43 color-mapping = 44 <LED_COLOR_ID_RED>, 45 <LED_COLOR_ID_GREEN>, 46 <LED_COLOR_ID_BLUE>; 47 }; 48 led_4 { 49 label = "LED LP5030 4"; 50 index = <4>; 51 color-mapping = 52 <LED_COLOR_ID_RED>, 53 <LED_COLOR_ID_GREEN>, 54 <LED_COLOR_ID_BLUE>; 55 }; 56 led_5 { 57 label = "LED LP5030 5"; 58 index = <5>; 59 color-mapping = 60 <LED_COLOR_ID_RED>, 61 <LED_COLOR_ID_GREEN>, 62 <LED_COLOR_ID_BLUE>; 63 }; 64 led_6 { 65 label = "LED LP5030 6"; 66 index = <6>; 67 color-mapping = 68 <LED_COLOR_ID_RED>, 69 <LED_COLOR_ID_GREEN>, 70 <LED_COLOR_ID_BLUE>; 71 }; 72 led_7 { 73 label = "LED LP5030 7"; 74 index = <7>; 75 color-mapping = 76 <LED_COLOR_ID_RED>, 77 <LED_COLOR_ID_GREEN>, 78 <LED_COLOR_ID_BLUE>; 79 }; 80 led_8 { 81 label = "LED LP5030 8"; 82 index = <8>; 83 color-mapping = 84 <LED_COLOR_ID_RED>, 85 <LED_COLOR_ID_GREEN>, 86 <LED_COLOR_ID_BLUE>; 87 }; 88 led_9 { 89 label = "LED LP5030 9"; 90 index = <9>; 91 color-mapping = 92 <LED_COLOR_ID_RED>, 93 <LED_COLOR_ID_GREEN>, 94 <LED_COLOR_ID_BLUE>; 95 }; 96 }; 97}; 98