|
6 | 6 | * Author: Jacek Anaszewski <[email protected]>
|
7 | 7 | *
|
8 | 8 | * Copyright (C) 2019 Jacek Anaszewski <[email protected]>
|
| 9 | + * Copyright (C) 2020 Pavel Machek <[email protected]> |
9 | 10 | */
|
10 | 11 |
|
11 | 12 | #ifndef __DT_BINDINGS_LEDS_H
|
|
32 | 33 | #define LED_COLOR_ID_MAX 8
|
33 | 34 |
|
34 | 35 | /* Standard LED functions */
|
| 36 | +/* Keyboard LEDs, usually it would be input4::capslock etc. */ |
| 37 | +/* Obsolete equivalent: "shift-key-light" */ |
| 38 | +#define LED_FUNCTION_CAPSLOCK "capslock" |
| 39 | +#define LED_FUNCTION_SCROLLLOCK "scrolllock" |
| 40 | +#define LED_FUNCTION_NUMLOCK "numlock" |
| 41 | +/* Obsolete equivalents: "tpacpi::thinklight" (IBM/Lenovo Thinkpads), |
| 42 | + "lp5523:kb{1,2,3,4,5,6}" (Nokia N900) */ |
| 43 | +#define LED_FUNCTION_KBD_BACKLIGHT "kbd_backlight" |
| 44 | + |
| 45 | +/* System LEDs, usually found on system body. |
| 46 | + platform::mute (etc) is sometimes seen, :mute would be better */ |
| 47 | +#define LED_FUNCTION_POWER "power" |
| 48 | +#define LED_FUNCTION_DISK "disk" |
| 49 | + |
| 50 | +/* Obsolete: "platform:*:charging" (allwinner sun50i) */ |
| 51 | +#define LED_FUNCTION_CHARGING "charging" |
| 52 | +/* Used RGB notification LEDs common on phones. |
| 53 | + Obsolete equivalents: "status-led:{red,green,blue}" (Motorola Droid 4), |
| 54 | + "lp5523:{r,g,b}" (Nokia N900) */ |
| 55 | +#define LED_FUNCTION_STATUS "status" |
| 56 | + |
| 57 | +#define LED_FUNCTION_MICMUTE "micmute" |
| 58 | +#define LED_FUNCTION_MUTE "mute" |
| 59 | + |
| 60 | +/* Miscelleaus functions. Use functions above if you can. */ |
35 | 61 | #define LED_FUNCTION_ACTIVITY "activity"
|
36 | 62 | #define LED_FUNCTION_ALARM "alarm"
|
37 | 63 | #define LED_FUNCTION_BACKLIGHT "backlight"
|
38 | 64 | #define LED_FUNCTION_BLUETOOTH "bluetooth"
|
39 | 65 | #define LED_FUNCTION_BOOT "boot"
|
40 | 66 | #define LED_FUNCTION_CPU "cpu"
|
41 |
| -#define LED_FUNCTION_CAPSLOCK "capslock" |
42 |
| -#define LED_FUNCTION_CHARGING "charging" |
43 | 67 | #define LED_FUNCTION_DEBUG "debug"
|
44 |
| -#define LED_FUNCTION_DISK "disk" |
45 | 68 | #define LED_FUNCTION_DISK_ACTIVITY "disk-activity"
|
46 | 69 | #define LED_FUNCTION_DISK_ERR "disk-err"
|
47 | 70 | #define LED_FUNCTION_DISK_READ "disk-read"
|
|
50 | 73 | #define LED_FUNCTION_FLASH "flash"
|
51 | 74 | #define LED_FUNCTION_HEARTBEAT "heartbeat"
|
52 | 75 | #define LED_FUNCTION_INDICATOR "indicator"
|
53 |
| -#define LED_FUNCTION_KBD_BACKLIGHT "kbd_backlight" |
54 | 76 | #define LED_FUNCTION_LAN "lan"
|
55 | 77 | #define LED_FUNCTION_MAIL "mail"
|
56 | 78 | #define LED_FUNCTION_MTD "mtd"
|
57 |
| -#define LED_FUNCTION_MICMUTE "micmute" |
58 |
| -#define LED_FUNCTION_MUTE "mute" |
59 |
| -#define LED_FUNCTION_NUMLOCK "numlock" |
60 | 79 | #define LED_FUNCTION_PANIC "panic"
|
61 | 80 | #define LED_FUNCTION_PROGRAMMING "programming"
|
62 |
| -#define LED_FUNCTION_POWER "power" |
63 | 81 | #define LED_FUNCTION_RX "rx"
|
64 | 82 | #define LED_FUNCTION_SD "sd"
|
65 |
| -#define LED_FUNCTION_SCROLLLOCK "scrolllock" |
66 | 83 | #define LED_FUNCTION_STANDBY "standby"
|
67 |
| -#define LED_FUNCTION_STATUS "status" |
68 | 84 | #define LED_FUNCTION_TORCH "torch"
|
69 | 85 | #define LED_FUNCTION_TX "tx"
|
70 | 86 | #define LED_FUNCTION_USB "usb"
|
|
0 commit comments