Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: leds: Add LED_FUNCTION definitions

Add initial set of common LED function definitions.

Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Cc: Baolin Wang <baolin.wang@linaro.org>
Cc: Daniel Mack <daniel@zonque.org>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Oleh Kravchenko <oleg@kaa.org.ua>
Cc: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: Simon Shields <simon@lineageos.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Acked-by: Pavel Machek <pavel@ucw.cz>
Reviewed-by: Dan Murphy <dmurphy@ti.com>

+43 -1
+43 -1
include/dt-bindings/leds/common.h
··· 3 3 * This header provides macros for the common LEDs device tree bindings. 4 4 * 5 5 * Copyright (C) 2015, Samsung Electronics Co., Ltd. 6 - * 7 6 * Author: Jacek Anaszewski <j.anaszewski@samsung.com> 7 + * 8 + * Copyright (C) 2019 Jacek Anaszewski <jacek.anaszewski@gmail.com> 8 9 */ 9 10 10 11 #ifndef __DT_BINDINGS_LEDS_H ··· 30 29 #define LED_COLOR_ID_YELLOW 6 31 30 #define LED_COLOR_ID_IR 7 32 31 #define LED_COLOR_ID_MAX 8 32 + 33 + /* Standard LED functions */ 34 + #define LED_FUNCTION_ACTIVITY "activity" 35 + #define LED_FUNCTION_ALARM "alarm" 36 + #define LED_FUNCTION_BACKLIGHT "backlight" 37 + #define LED_FUNCTION_BLUETOOTH "bluetooth" 38 + #define LED_FUNCTION_BOOT "boot" 39 + #define LED_FUNCTION_CPU "cpu" 40 + #define LED_FUNCTION_CAPSLOCK "capslock" 41 + #define LED_FUNCTION_CHARGING "charging" 42 + #define LED_FUNCTION_DEBUG "debug" 43 + #define LED_FUNCTION_DISK "disk" 44 + #define LED_FUNCTION_DISK_ACTIVITY "disk-activity" 45 + #define LED_FUNCTION_DISK_ERR "disk-err" 46 + #define LED_FUNCTION_DISK_READ "disk-read" 47 + #define LED_FUNCTION_DISK_WRITE "disk-write" 48 + #define LED_FUNCTION_FAULT "fault" 49 + #define LED_FUNCTION_FLASH "flash" 50 + #define LED_FUNCTION_HEARTBEAT "heartbeat" 51 + #define LED_FUNCTION_INDICATOR "indicator" 52 + #define LED_FUNCTION_KBD_BACKLIGHT "kbd_backlight" 53 + #define LED_FUNCTION_LAN "lan" 54 + #define LED_FUNCTION_MAIL "mail" 55 + #define LED_FUNCTION_MTD "mtd" 56 + #define LED_FUNCTION_MICMUTE "micmute" 57 + #define LED_FUNCTION_MUTE "mute" 58 + #define LED_FUNCTION_NUMLOCK "numlock" 59 + #define LED_FUNCTION_PANIC "panic" 60 + #define LED_FUNCTION_PROGRAMMING "programming" 61 + #define LED_FUNCTION_POWER "power" 62 + #define LED_FUNCTION_RX "rx" 63 + #define LED_FUNCTION_SD "sd" 64 + #define LED_FUNCTION_SCROLLLOCK "scrolllock" 65 + #define LED_FUNCTION_STANDBY "standby" 66 + #define LED_FUNCTION_STATUS "status" 67 + #define LED_FUNCTION_TORCH "torch" 68 + #define LED_FUNCTION_TX "tx" 69 + #define LED_FUNCTION_USB "usb" 70 + #define LED_FUNCTION_WAN "wan" 71 + #define LED_FUNCTION_WLAN "wlan" 72 + #define LED_FUNCTION_WPS "wps" 33 73 34 74 #endif /* __DT_BINDINGS_LEDS_H */