summaryrefslogtreecommitdiff
path: root/include/dt-bindings/leds
diff options
context:
space:
mode:
authorFelix Brack <fb@ltec.ch>2017-12-28 18:06:50 +0100
committerTom Rini <trini@konsulko.com>2018-01-19 15:49:25 -0500
commit445277b9d1efcc239c8c05560e4db312ea4f078e (patch)
treefddbde985f3882c18178e6bacaee737e5a7f3e75 /include/dt-bindings/leds
parentf1627bdc19fb6b6677a95093a6c59b09cf17ef29 (diff)
dt-bindings: leds: adopt Linux PCA9532 binding constants
I'm working on a v2 patch to add support for a board named pdu001. Its Linux DTS file uses the include file added by this patch. To keep Linux and U-Boot DTS files in sync U-Boot requires a copy of this file, although there is no driver for NXP's PCA9532 i2c LED driver chip (yet). Signed-off-by: Felix Brack <fb@ltec.ch>
Diffstat (limited to 'include/dt-bindings/leds')
-rw-r--r--include/dt-bindings/leds/leds-pca9532.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/dt-bindings/leds/leds-pca9532.h b/include/dt-bindings/leds/leds-pca9532.h
new file mode 100644
index 0000000000..4d917aab7e
--- /dev/null
+++ b/include/dt-bindings/leds/leds-pca9532.h
@@ -0,0 +1,18 @@
+/*
+ * This header provides constants for pca9532 LED bindings.
+ *
+ * This file is licensed under the terms of the GNU General Public
+ * License version 2. This program is licensed "as is" without any
+ * warranty of any kind, whether express or implied.
+ */
+
+#ifndef _DT_BINDINGS_LEDS_PCA9532_H
+#define _DT_BINDINGS_LEDS_PCA9532_H
+
+#define PCA9532_TYPE_NONE 0
+#define PCA9532_TYPE_LED 1
+#define PCA9532_TYPE_N2100_BEEP 2
+#define PCA9532_TYPE_GPIO 3
+#define PCA9532_LED_TIMER2 4
+
+#endif /* _DT_BINDINGS_LEDS_PCA9532_H */