rt4831-backlight.h 665 B

1234567891011121314151617181920212223
  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. #ifndef _DT_BINDINGS_RT4831_BACKLIGHT_H
  9. #define _DT_BINDINGS_RT4831_BACKLIGHT_H
  10. #define RT4831_BLOVPLVL_17V 0
  11. #define RT4831_BLOVPLVL_21V 1
  12. #define RT4831_BLOVPLVL_25V 2
  13. #define RT4831_BLOVPLVL_29V 3
  14. #define RT4831_BLED_CH1EN (1 << 0)
  15. #define RT4831_BLED_CH2EN (1 << 1)
  16. #define RT4831_BLED_CH3EN (1 << 2)
  17. #define RT4831_BLED_CH4EN (1 << 3)
  18. #define RT4831_BLED_ALLCHEN ((1 << 4) - 1)
  19. #endif /* _DT_BINDINGS_RT4831_BACKLIGHT_H */