mbox series

[v2,0/2] Add the property to make backlight OCP level selectable

Message ID 1654677674-15417-1-git-send-email-u0084500@gmail.com (mailing list archive)
Headers show
Series Add the property to make backlight OCP level selectable | expand

Message

ChiYuan Huang June 8, 2022, 8:41 a.m. UTC
From: ChiYuan Huang <cy_huang@richtek.com>

This patch series is to add the backlight ocp level property parsing.

Since v2:
- change the property name from the register style 'richtek,bled-ocp-cel' to
  'richtek,bled-ocp-microamp'.
- Use the clamp and roundup to get the ovp level selector.

ChiYuan Huang (2):
  dt-bindings: backlight: rt4831: Add the new ocp level property
  backlight: rt4831: Apply ocp level from devicetree

 .../leds/backlight/richtek,rt4831-backlight.yaml   |  5 ++++
 drivers/video/backlight/rt4831-backlight.c         | 33 +++++++++++++++++++++-
 2 files changed, 37 insertions(+), 1 deletion(-)