summaryrefslogtreecommitdiff
path: root/include/dt-bindings/mfd/cros_ec.h
diff options
context:
space:
mode:
authorFabio Baltieri <fabiobaltieri@chromium.org>2022-04-28 10:04:18 +0000
committerThierry Reding <thierry.reding@gmail.com>2022-05-20 16:39:16 +0200
commit84d0940454a3bca6c7c59cf16b6de2f173e81a11 (patch)
treedfbb1f7f527b4e6b9e6e7a3584598f84d80e04c6 /include/dt-bindings/mfd/cros_ec.h
parent80a22fde803af6f390be49ee5ced6ee75595ba05 (diff)
downloadlwn-84d0940454a3bca6c7c59cf16b6de2f173e81a11.tar.gz
lwn-84d0940454a3bca6c7c59cf16b6de2f173e81a11.zip
dt-bindings: Add mfd/cros_ec definitions
Add a dt-bindings include file for cros_ec devicetree definition, define a pair of special purpose PWM channels in it. Signed-off-by: Fabio Baltieri <fabiobaltieri@chromium.org> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'include/dt-bindings/mfd/cros_ec.h')
-rw-r--r--include/dt-bindings/mfd/cros_ec.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/dt-bindings/mfd/cros_ec.h b/include/dt-bindings/mfd/cros_ec.h
new file mode 100644
index 000000000000..3b29cd049578
--- /dev/null
+++ b/include/dt-bindings/mfd/cros_ec.h
@@ -0,0 +1,18 @@
+/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
+/*
+ * DTS binding definitions used for the Chromium OS Embedded Controller.
+ *
+ * Copyright (c) 2022 The Chromium OS Authors. All rights reserved.
+ */
+
+#ifndef _DT_BINDINGS_MFD_CROS_EC_H
+#define _DT_BINDINGS_MFD_CROS_EC_H
+
+/* Typed channel for keyboard backlight. */
+#define CROS_EC_PWM_DT_KB_LIGHT 0
+/* Typed channel for display backlight. */
+#define CROS_EC_PWM_DT_DISPLAY_LIGHT 1
+/* Number of typed channels. */
+#define CROS_EC_PWM_DT_COUNT 2
+
+#endif