Skip to content

Commit 84d0940

Browse files
fabiobaltierithierryreding
authored andcommitted
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>
1 parent 80a22fd commit 84d0940

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

include/dt-bindings/mfd/cros_ec.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2+
/*
3+
* DTS binding definitions used for the Chromium OS Embedded Controller.
4+
*
5+
* Copyright (c) 2022 The Chromium OS Authors. All rights reserved.
6+
*/
7+
8+
#ifndef _DT_BINDINGS_MFD_CROS_EC_H
9+
#define _DT_BINDINGS_MFD_CROS_EC_H
10+
11+
/* Typed channel for keyboard backlight. */
12+
#define CROS_EC_PWM_DT_KB_LIGHT 0
13+
/* Typed channel for display backlight. */
14+
#define CROS_EC_PWM_DT_DISPLAY_LIGHT 1
15+
/* Number of typed channels. */
16+
#define CROS_EC_PWM_DT_COUNT 2
17+
18+
#endif

0 commit comments

Comments
 (0)