blob: 0194bc6fa58a77dc7c139fd096fe4d90d57e365f [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * This header provides macros for the common LEDs device tree bindings.
4 *
5 * Copyright (C) 2015, Samsung Electronics Co., Ltd.
6 * Author: Jacek Anaszewski <j.anaszewski@samsung.com>
7 *
8 * Copyright (C) 2019 Jacek Anaszewski <jacek.anaszewski@gmail.com>
9 */
10
11#ifndef __DT_BINDINGS_LEDS_H
12#define __DT_BINDINGS_LEDS_H
13
14/* External trigger type */
15#define LEDS_TRIG_TYPE_EDGE 0
16#define LEDS_TRIG_TYPE_LEVEL 1
17
18/* Boost modes */
19#define LEDS_BOOST_OFF 0
20#define LEDS_BOOST_ADAPTIVE 1
21#define LEDS_BOOST_FIXED 2
22
23/* Standard LED colors */
24#define LED_COLOR_ID_WHITE 0
25#define LED_COLOR_ID_RED 1
26#define LED_COLOR_ID_GREEN 2
27#define LED_COLOR_ID_BLUE 3
28#define LED_COLOR_ID_AMBER 4
29#define LED_COLOR_ID_VIOLET 5
30#define LED_COLOR_ID_YELLOW 6
31#define LED_COLOR_ID_IR 7
32#define LED_COLOR_ID_MULTI 8 /* For multicolor LEDs */
33#define LED_COLOR_ID_RGB 9 /* For multicolor LEDs that can do arbitrary color,
34 so this would include RGBW and similar */
35#define LED_COLOR_ID_MAX 10
36
37/* Standard LED functions */
38#define LED_FUNCTION_ACTIVITY "activity"
39#define LED_FUNCTION_ALARM "alarm"
40#define LED_FUNCTION_BACKLIGHT "backlight"
41#define LED_FUNCTION_BLUETOOTH "bluetooth"
42#define LED_FUNCTION_BOOT "boot"
43#define LED_FUNCTION_CPU "cpu"
44#define LED_FUNCTION_CAPSLOCK "capslock"
45#define LED_FUNCTION_CHARGING "charging"
46#define LED_FUNCTION_DEBUG "debug"
47#define LED_FUNCTION_DISK "disk"
48#define LED_FUNCTION_DISK_ACTIVITY "disk-activity"
49#define LED_FUNCTION_DISK_ERR "disk-err"
50#define LED_FUNCTION_DISK_READ "disk-read"
51#define LED_FUNCTION_DISK_WRITE "disk-write"
52#define LED_FUNCTION_FAULT "fault"
53#define LED_FUNCTION_FLASH "flash"
54#define LED_FUNCTION_HEARTBEAT "heartbeat"
55#define LED_FUNCTION_INDICATOR "indicator"
56#define LED_FUNCTION_KBD_BACKLIGHT "kbd_backlight"
57#define LED_FUNCTION_LAN "lan"
58#define LED_FUNCTION_MAIL "mail"
59#define LED_FUNCTION_MTD "mtd"
60#define LED_FUNCTION_MICMUTE "micmute"
61#define LED_FUNCTION_MUTE "mute"
62#define LED_FUNCTION_NUMLOCK "numlock"
63#define LED_FUNCTION_PANIC "panic"
64#define LED_FUNCTION_PROGRAMMING "programming"
65#define LED_FUNCTION_POWER "power"
66#define LED_FUNCTION_RX "rx"
67#define LED_FUNCTION_SD "sd"
68#define LED_FUNCTION_SCROLLLOCK "scrolllock"
69#define LED_FUNCTION_STANDBY "standby"
70#define LED_FUNCTION_STATUS "status"
71#define LED_FUNCTION_TORCH "torch"
72#define LED_FUNCTION_TX "tx"
73#define LED_FUNCTION_USB "usb"
74#define LED_FUNCTION_WAN "wan"
75#define LED_FUNCTION_WLAN "wlan"
76#define LED_FUNCTION_WPS "wps"
77
78#endif /* __DT_BINDINGS_LEDS_H */