forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dts: dt-bindings: motorola-surnia enable backlight
Signed-off-by: Bogdan Ionescu <[email protected]>
- Loading branch information
1 parent
44deb6c
commit e9f505c
Showing
2 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* SPDX-License-Identifier: GPL-2.0 */ | ||
/* | ||
* This header provides macros for the ROHM BD65B60 device tre§e bindings. | ||
* | ||
* Copyright (C) 2023 Bogdan Ionescu <[email protected]> | ||
*/ | ||
|
||
#ifndef _DT_BINDINGS_LEDS_BD65B60_H | ||
#define _DT_BINDINGS_LEDS_BD65B60_H | ||
|
||
#define BIT(X) (1 << (X)) | ||
|
||
#define BD65B60_ENABLE_NONE 0 | ||
#define BD65B60_ENABLE_LED1 BIT(0) | ||
#define BD65B60_ENABLE_LED2 BIT(2) | ||
#define BD65B60_ENABLE_BOTH (BD65B60_ENABLE_LED1 | BD65B60_ENABLE_LED2) | ||
|
||
#define BD65B60_OVP_25V 0 | ||
#define BD65B60_OVP_30V BIT(4) | ||
#define BD65B60_OVP_35V BIT(5) | ||
|
||
#endif /* _DT_BINDINGS_LEDS_BD65B60_H */ |