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