xref: /netbsd-src/sys/external/gpl2/dts/dist/include/dt-bindings/leds/rt4831-backlight.h (revision 58c3e048f5c2f43ee7e820013e37079f2e0b6ae5)
1 /*	$NetBSD: rt4831-backlight.h,v 1.1.1.1 2021/11/07 16:49:57 jmcneill Exp $	*/
2 
3 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
4 /*
5  * This header provides constants for rt4831 backlight bindings.
6  *
7  * Copyright (C) 2020, Richtek Technology Corp.
8  * Author: ChiYuan Huang <cy_huang@richtek.com>
9  */
10 
11 #ifndef _DT_BINDINGS_RT4831_BACKLIGHT_H
12 #define _DT_BINDINGS_RT4831_BACKLIGHT_H
13 
14 #define RT4831_BLOVPLVL_17V	0
15 #define RT4831_BLOVPLVL_21V	1
16 #define RT4831_BLOVPLVL_25V	2
17 #define RT4831_BLOVPLVL_29V	3
18 
19 #define RT4831_BLED_CH1EN	(1 << 0)
20 #define RT4831_BLED_CH2EN	(1 << 1)
21 #define RT4831_BLED_CH3EN	(1 << 2)
22 #define RT4831_BLED_CH4EN	(1 << 3)
23 #define RT4831_BLED_ALLCHEN	((1 << 4) - 1)
24 
25 #endif /* _DT_BINDINGS_RT4831_BACKLIGHT_H */
26