common.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /* 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. #ifndef __DT_BINDINGS_LEDS_H
  11. #define __DT_BINDINGS_LEDS_H
  12. /* External trigger type */
  13. #define LEDS_TRIG_TYPE_EDGE 0
  14. #define LEDS_TRIG_TYPE_LEVEL 1
  15. /* Boost modes */
  16. #define LEDS_BOOST_OFF 0
  17. #define LEDS_BOOST_ADAPTIVE 1
  18. #define LEDS_BOOST_FIXED 2
  19. /* Standard LED colors */
  20. #define LED_COLOR_ID_WHITE 0
  21. #define LED_COLOR_ID_RED 1
  22. #define LED_COLOR_ID_GREEN 2
  23. #define LED_COLOR_ID_BLUE 3
  24. #define LED_COLOR_ID_AMBER 4
  25. #define LED_COLOR_ID_VIOLET 5
  26. #define LED_COLOR_ID_YELLOW 6
  27. #define LED_COLOR_ID_IR 7
  28. #define LED_COLOR_ID_MAX 8
  29. /* Standard LED functions */
  30. #define LED_FUNCTION_ACTIVITY "activity"
  31. #define LED_FUNCTION_ALARM "alarm"
  32. #define LED_FUNCTION_BACKLIGHT "backlight"
  33. #define LED_FUNCTION_BLUETOOTH "bluetooth"
  34. #define LED_FUNCTION_BOOT "boot"
  35. #define LED_FUNCTION_CPU "cpu"
  36. #define LED_FUNCTION_CAPSLOCK "capslock"
  37. #define LED_FUNCTION_CHARGING "charging"
  38. #define LED_FUNCTION_DEBUG "debug"
  39. #define LED_FUNCTION_DISK "disk"
  40. #define LED_FUNCTION_DISK_ACTIVITY "disk-activity"
  41. #define LED_FUNCTION_DISK_ERR "disk-err"
  42. #define LED_FUNCTION_DISK_READ "disk-read"
  43. #define LED_FUNCTION_DISK_WRITE "disk-write"
  44. #define LED_FUNCTION_FAULT "fault"
  45. #define LED_FUNCTION_FLASH "flash"
  46. #define LED_FUNCTION_HEARTBEAT "heartbeat"
  47. #define LED_FUNCTION_INDICATOR "indicator"
  48. #define LED_FUNCTION_KBD_BACKLIGHT "kbd_backlight"
  49. #define LED_FUNCTION_LAN "lan"
  50. #define LED_FUNCTION_MAIL "mail"
  51. #define LED_FUNCTION_MTD "mtd"
  52. #define LED_FUNCTION_MICMUTE "micmute"
  53. #define LED_FUNCTION_MUTE "mute"
  54. #define LED_FUNCTION_NUMLOCK "numlock"
  55. #define LED_FUNCTION_PANIC "panic"
  56. #define LED_FUNCTION_PROGRAMMING "programming"
  57. #define LED_FUNCTION_POWER "power"
  58. #define LED_FUNCTION_RX "rx"
  59. #define LED_FUNCTION_SD "sd"
  60. #define LED_FUNCTION_SCROLLLOCK "scrolllock"
  61. #define LED_FUNCTION_STANDBY "standby"
  62. #define LED_FUNCTION_STATUS "status"
  63. #define LED_FUNCTION_TORCH "torch"
  64. #define LED_FUNCTION_TX "tx"
  65. #define LED_FUNCTION_USB "usb"
  66. #define LED_FUNCTION_WAN "wan"
  67. #define LED_FUNCTION_WLAN "wlan"
  68. #define LED_FUNCTION_WPS "wps"
  69. #endif /* __DT_BINDINGS_LEDS_H */