xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/leds/rt4831-backlight.h (revision 5956d97f4b3204318ceb6aa9c77bd0bc6ea87a41)
1*5956d97fSEmmanuel Vadot /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2*5956d97fSEmmanuel Vadot /*
3*5956d97fSEmmanuel Vadot  * This header provides constants for rt4831 backlight bindings.
4*5956d97fSEmmanuel Vadot  *
5*5956d97fSEmmanuel Vadot  * Copyright (C) 2020, Richtek Technology Corp.
6*5956d97fSEmmanuel Vadot  * Author: ChiYuan Huang <cy_huang@richtek.com>
7*5956d97fSEmmanuel Vadot  */
8*5956d97fSEmmanuel Vadot 
9*5956d97fSEmmanuel Vadot #ifndef _DT_BINDINGS_RT4831_BACKLIGHT_H
10*5956d97fSEmmanuel Vadot #define _DT_BINDINGS_RT4831_BACKLIGHT_H
11*5956d97fSEmmanuel Vadot 
12*5956d97fSEmmanuel Vadot #define RT4831_BLOVPLVL_17V	0
13*5956d97fSEmmanuel Vadot #define RT4831_BLOVPLVL_21V	1
14*5956d97fSEmmanuel Vadot #define RT4831_BLOVPLVL_25V	2
15*5956d97fSEmmanuel Vadot #define RT4831_BLOVPLVL_29V	3
16*5956d97fSEmmanuel Vadot 
17*5956d97fSEmmanuel Vadot #define RT4831_BLED_CH1EN	(1 << 0)
18*5956d97fSEmmanuel Vadot #define RT4831_BLED_CH2EN	(1 << 1)
19*5956d97fSEmmanuel Vadot #define RT4831_BLED_CH3EN	(1 << 2)
20*5956d97fSEmmanuel Vadot #define RT4831_BLED_CH4EN	(1 << 3)
21*5956d97fSEmmanuel Vadot #define RT4831_BLED_ALLCHEN	((1 << 4) - 1)
22*5956d97fSEmmanuel Vadot 
23*5956d97fSEmmanuel Vadot #endif /* _DT_BINDINGS_RT4831_BACKLIGHT_H */
24