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