Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/include/dt-bindings/leds/rt4831-backlight.h
26288 views
1
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2
/*
3
* This header provides constants for rt4831 backlight bindings.
4
*
5
* Copyright (C) 2020, Richtek Technology Corp.
6
* Author: ChiYuan Huang <[email protected]>
7
*/
8
9
#ifndef _DT_BINDINGS_RT4831_BACKLIGHT_H
10
#define _DT_BINDINGS_RT4831_BACKLIGHT_H
11
12
#define RT4831_BLOVPLVL_17V 0
13
#define RT4831_BLOVPLVL_21V 1
14
#define RT4831_BLOVPLVL_25V 2
15
#define RT4831_BLOVPLVL_29V 3
16
17
#define RT4831_BLED_CH1EN (1 << 0)
18
#define RT4831_BLED_CH2EN (1 << 1)
19
#define RT4831_BLED_CH3EN (1 << 2)
20
#define RT4831_BLED_CH4EN (1 << 3)
21
#define RT4831_BLED_ALLCHEN ((1 << 4) - 1)
22
23
#endif /* _DT_BINDINGS_RT4831_BACKLIGHT_H */
24
25