1# Copyright (c) 2020 Seagate Technology LLC 2# SPDX-License-Identifier: Apache-2.0 3 4# Common fields for LED controllers and child LEDs 5 6child-binding: 7 description: LED child node 8 properties: 9 label: 10 type: string 11 description: Human readable string describing the LED 12 index: 13 type: int 14 description: | 15 Index of the LED on a controller. It can be used by drivers or 16 applications to map a logical LED to its real position on the 17 controller. For example, this allows to handle boards where the 18 LEDs in an array/strip are not wired following the LED order of 19 the controller. 20 color-mapping: 21 type: array 22 description: | 23 Channel to color mapping of a multicolor LED. If a LED supports 24 several colors, then the color-mapping property can be used to 25 describe how the hardware channels and the colors are mapped. 26 27 For example the channel to color mapping of RGB LEDs would be 28 29 color-mapping = 30 <LED_COLOR_ID_RED>, 31 <LED_COLOR_ID_GREEN>, 32 <LED_COLOR_ID_BLUE>; 33