dt-binding: leds: Add common LED DT bindings macros
authorJacek Anaszewski <j.anaszewski@samsung.com>
Thu, 12 Mar 2015 15:45:03 +0000 (08:45 -0700)
committerBryan Wu <cooloney@gmail.com>
Mon, 30 Mar 2015 18:55:50 +0000 (11:55 -0700)
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>
include/dt-bindings/leds/common.h [new file with mode: 0644]

diff --git a/include/dt-bindings/leds/common.h b/include/dt-bindings/leds/common.h
new file mode 100644 (file)
index 0000000..79fcef7
--- /dev/null
@@ -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 */