]> Git Repo - linux.git/commitdiff
dt-bindings: Add mfd/cros_ec definitions
authorFabio Baltieri <[email protected]>
Thu, 28 Apr 2022 10:04:18 +0000 (10:04 +0000)
committerThierry Reding <[email protected]>
Fri, 20 May 2022 14:39:16 +0000 (16:39 +0200)
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 <[email protected]>
Acked-by: Rob Herring <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
include/dt-bindings/mfd/cros_ec.h [new file with mode: 0644]

diff --git a/include/dt-bindings/mfd/cros_ec.h b/include/dt-bindings/mfd/cros_ec.h
new file mode 100644 (file)
index 0000000..3b29cd0
--- /dev/null
@@ -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
This page took 0.053094 seconds and 4 git commands to generate.