summaryrefslogtreecommitdiff
path: root/include/dt-bindings/leds
diff options
context:
space:
mode:
authorJacek Anaszewski <j.anaszewski@samsung.com>2015-03-12 18:45:03 +0300
committerBryan Wu <cooloney@gmail.com>2015-03-30 21:55:50 +0300
commit5e23a35cf8b3c5c07111409d589590b9fb4305f6 (patch)
treee12047d91375a8c8e0e6e7a9fc8638acdc621ea2 /include/dt-bindings/leds
parent93c64f1ea1e886a1e43e9b0215affdb696f1fe66 (diff)
downloadlinux-5e23a35cf8b3c5c07111409d589590b9fb4305f6.tar.xz
dt-binding: leds: Add common LED DT bindings macros
Add macros for defining boost mode and trigger type properties of flash LED devices. Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com> Acked-by: Kyungmin Park <kyungmin.park@samsung.com> Cc: Richard Purdie <rpurdie@rpsys.net> Signed-off-by: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'include/dt-bindings/leds')
-rw-r--r--include/dt-bindings/leds/common.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/dt-bindings/leds/common.h b/include/dt-bindings/leds/common.h
new file mode 100644
index 000000000000..79fcef72ef57
--- /dev/null
+++ b/include/dt-bindings/leds/common.h
@@ -0,0 +1,21 @@
+/*
+ * This header provides macros for the common LEDs device tree bindings.
+ *
+ * Copyright (C) 2015, Samsung Electronics Co., Ltd.
+ *
+ * Author: Jacek Anaszewski <j.anaszewski@samsung.com>
+ */
+
+#ifndef __DT_BINDINGS_LEDS_H__
+#define __DT_BINDINGS_LEDS_H
+
+/* External trigger type */
+#define LEDS_TRIG_TYPE_EDGE 0
+#define LEDS_TRIG_TYPE_LEVEL 1
+
+/* Boost modes */
+#define LEDS_BOOST_OFF 0
+#define LEDS_BOOST_ADAPTIVE 1
+#define LEDS_BOOST_FIXED 2
+
+#endif /* __DT_BINDINGS_LEDS_H */