linux/include/dt-bindings/leds/common.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * This header provides macros for the common LEDs device tree bindings.
 *
 * Copyright (C) 2015, Samsung Electronics Co., Ltd.
 * Author: Jacek Anaszewski <[email protected]>
 *
 * Copyright (C) 2019 Jacek Anaszewski <[email protected]>
 * Copyright (C) 2020 Pavel Machek <[email protected]>
 */

#ifndef __DT_BINDINGS_LEDS_H
#define __DT_BINDINGS_LEDS_H

/* External trigger type */
#define LEDS_TRIG_TYPE_EDGE
#define LEDS_TRIG_TYPE_LEVEL

/* Boost modes */
#define LEDS_BOOST_OFF
#define LEDS_BOOST_ADAPTIVE
#define LEDS_BOOST_FIXED

/* Standard LED colors */
#define LED_COLOR_ID_WHITE
#define LED_COLOR_ID_RED
#define LED_COLOR_ID_GREEN
#define LED_COLOR_ID_BLUE
#define LED_COLOR_ID_AMBER
#define LED_COLOR_ID_VIOLET
#define LED_COLOR_ID_YELLOW
#define LED_COLOR_ID_IR
#define LED_COLOR_ID_MULTI
#define LED_COLOR_ID_RGB
#define LED_COLOR_ID_PURPLE
#define LED_COLOR_ID_ORANGE
#define LED_COLOR_ID_PINK
#define LED_COLOR_ID_CYAN
#define LED_COLOR_ID_LIME
#define LED_COLOR_ID_MAX

/* Standard LED functions */
/* Keyboard LEDs, usually it would be input4::capslock etc. */
/*   Obsolete equivalent: "shift-key-light" */
#define LED_FUNCTION_CAPSLOCK
#define LED_FUNCTION_SCROLLLOCK
#define LED_FUNCTION_NUMLOCK
#define LED_FUNCTION_FNLOCK
/*   Obsolete equivalents: "tpacpi::thinklight" (IBM/Lenovo Thinkpads),
     "lp5523:kb{1,2,3,4,5,6}" (Nokia N900) */
#define LED_FUNCTION_KBD_BACKLIGHT

/* System LEDs, usually found on system body.
   platform::mute (etc) is sometimes seen, :mute would be better */
#define LED_FUNCTION_POWER
#define LED_FUNCTION_DISK

/*   Obsolete: "platform:*:charging" (allwinner sun50i) */
#define LED_FUNCTION_CHARGING
/*   Used RGB notification LEDs common on phones.
     Obsolete equivalents: "status-led:{red,green,blue}" (Motorola Droid 4),
     "lp5523:{r,g,b}" (Nokia N900) */
#define LED_FUNCTION_STATUS

#define LED_FUNCTION_MICMUTE
#define LED_FUNCTION_MUTE

/* Used for player LEDs as found on game controllers from e.g. Nintendo, Sony. */
#define LED_FUNCTION_PLAYER1
#define LED_FUNCTION_PLAYER2
#define LED_FUNCTION_PLAYER3
#define LED_FUNCTION_PLAYER4
#define LED_FUNCTION_PLAYER5

/* Miscelleaus functions. Use functions above if you can. */
#define LED_FUNCTION_ACTIVITY
#define LED_FUNCTION_ALARM
#define LED_FUNCTION_BACKLIGHT
#define LED_FUNCTION_BLUETOOTH
#define LED_FUNCTION_BOOT
#define LED_FUNCTION_CPU
#define LED_FUNCTION_DEBUG
#define LED_FUNCTION_DISK_ACTIVITY
#define LED_FUNCTION_DISK_ERR
#define LED_FUNCTION_DISK_READ
#define LED_FUNCTION_DISK_WRITE
#define LED_FUNCTION_FAULT
#define LED_FUNCTION_FLASH
#define LED_FUNCTION_HEARTBEAT
#define LED_FUNCTION_INDICATOR
#define LED_FUNCTION_LAN
#define LED_FUNCTION_MAIL
#define LED_FUNCTION_MOBILE
#define LED_FUNCTION_MTD
#define LED_FUNCTION_PANIC
#define LED_FUNCTION_PROGRAMMING
#define LED_FUNCTION_RX
#define LED_FUNCTION_SD
#define LED_FUNCTION_SPEED_LAN
#define LED_FUNCTION_SPEED_WAN
#define LED_FUNCTION_STANDBY
#define LED_FUNCTION_TORCH
#define LED_FUNCTION_TX
#define LED_FUNCTION_USB
#define LED_FUNCTION_WAN
#define LED_FUNCTION_WAN_ONLINE
#define LED_FUNCTION_WLAN
#define LED_FUNCTION_WLAN_2GHZ
#define LED_FUNCTION_WLAN_5GHZ
#define LED_FUNCTION_WLAN_6GHZ
#define LED_FUNCTION_WPS

#endif /* __DT_BINDINGS_LEDS_H */