Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * This header provides macros for the common LEDs device tree bindings.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * Copyright (C) 2015, Samsung Electronics Co., Ltd.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  * Author: Jacek Anaszewski <j.anaszewski@samsung.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)  * Copyright (C) 2019 Jacek Anaszewski <jacek.anaszewski@gmail.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9)  * Copyright (C) 2020 Pavel Machek <pavel@ucw.cz>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #ifndef __DT_BINDINGS_LEDS_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #define __DT_BINDINGS_LEDS_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) /* External trigger type */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #define LEDS_TRIG_TYPE_EDGE	0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #define LEDS_TRIG_TYPE_LEVEL	1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) /* Boost modes */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) #define LEDS_BOOST_OFF		0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) #define LEDS_BOOST_ADAPTIVE	1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) #define LEDS_BOOST_FIXED	2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) /* Standard LED colors */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) #define LED_COLOR_ID_WHITE	0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) #define LED_COLOR_ID_RED	1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) #define LED_COLOR_ID_GREEN	2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #define LED_COLOR_ID_BLUE	3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) #define LED_COLOR_ID_AMBER	4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) #define LED_COLOR_ID_VIOLET	5
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) #define LED_COLOR_ID_YELLOW	6
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) #define LED_COLOR_ID_IR		7
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) #define LED_COLOR_ID_MULTI	8	/* For multicolor LEDs */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) #define LED_COLOR_ID_RGB	9	/* For multicolor LEDs that can do arbitrary color,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 					   so this would include RGBW and similar */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) #define LED_COLOR_ID_MAX	10
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) /* Standard LED functions */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) /* Keyboard LEDs, usually it would be input4::capslock etc. */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) /*   Obsolete equivalent: "shift-key-light" */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) #define LED_FUNCTION_CAPSLOCK "capslock"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) #define LED_FUNCTION_SCROLLLOCK "scrolllock"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) #define LED_FUNCTION_NUMLOCK "numlock"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) /*   Obsolete equivalents: "tpacpi::thinklight" (IBM/Lenovo Thinkpads),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45)      "lp5523:kb{1,2,3,4,5,6}" (Nokia N900) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) #define LED_FUNCTION_KBD_BACKLIGHT "kbd_backlight"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) /* System LEDs, usually found on system body.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49)    platform::mute (etc) is sometimes seen, :mute would be better */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) #define LED_FUNCTION_POWER "power"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) #define LED_FUNCTION_DISK "disk"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) /*   Obsolete: "platform:*:charging" (allwinner sun50i) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) #define LED_FUNCTION_CHARGING "charging"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) /*   Used RGB notification LEDs common on phones.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56)      Obsolete equivalents: "status-led:{red,green,blue}" (Motorola Droid 4),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57)      "lp5523:{r,g,b}" (Nokia N900) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) #define LED_FUNCTION_STATUS "status"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) #define LED_FUNCTION_MICMUTE "micmute"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) #define LED_FUNCTION_MUTE "mute"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) /* Miscelleaus functions. Use functions above if you can. */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) #define LED_FUNCTION_ACTIVITY "activity"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) #define LED_FUNCTION_ALARM "alarm"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) #define LED_FUNCTION_BACKLIGHT "backlight"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) #define LED_FUNCTION_BLUETOOTH "bluetooth"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) #define LED_FUNCTION_BOOT "boot"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) #define LED_FUNCTION_CPU "cpu"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) #define LED_FUNCTION_DEBUG "debug"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) #define LED_FUNCTION_DISK_ACTIVITY "disk-activity"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) #define LED_FUNCTION_DISK_ERR "disk-err"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) #define LED_FUNCTION_DISK_READ "disk-read"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) #define LED_FUNCTION_DISK_WRITE "disk-write"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) #define LED_FUNCTION_FAULT "fault"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) #define LED_FUNCTION_FLASH "flash"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) #define LED_FUNCTION_HEARTBEAT "heartbeat"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) #define LED_FUNCTION_INDICATOR "indicator"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) #define LED_FUNCTION_LAN "lan"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) #define LED_FUNCTION_MAIL "mail"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) #define LED_FUNCTION_MTD "mtd"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) #define LED_FUNCTION_PANIC "panic"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) #define LED_FUNCTION_PROGRAMMING "programming"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84) #define LED_FUNCTION_RX "rx"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) #define LED_FUNCTION_SD "sd"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86) #define LED_FUNCTION_STANDBY "standby"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) #define LED_FUNCTION_TORCH "torch"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) #define LED_FUNCTION_TX "tx"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89) #define LED_FUNCTION_USB "usb"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90) #define LED_FUNCTION_WAN "wan"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91) #define LED_FUNCTION_WLAN "wlan"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92) #define LED_FUNCTION_WPS "wps"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94) #endif /* __DT_BINDINGS_LEDS_H */