lkml.org 
[lkml]   [2023]   [May]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v5 0/2] leds: add aw20xx driver
Date
This patch series adds support for AWINIC AW20036/AW20054/AW20072 LED
driver programmed via an I2C interface.

This driver supports following AW200XX features:
- Individual 64-level DIM currents

Datasheet:
aw20036 - https://www.awinic.com/en/productDetail/AW20036QNR#tech-docs
aw20054 - https://www.awinic.com/en/productDetail/AW20054QNR#tech-docs
aw20072 - https://www.awinic.com/en/productDetail/AW20072QNR#tech-docs

Add YAML dt-binding schema for AW200XX.

Changelog:
v4 -> v5:
- Cosmetic changes (rename aw200xx_probe_dt() to aw200xx_probe_fw()
and etc)

v3 -> v4:
- Calculate the value of imax instead of retrieving it from a table
- Cosmetic changes

v2 -> v3:
- Update datasheet links
- Make cosmetic changes as Andy suggested at [1]

v1 -> v2:
- Remove the hardware pattern support (I will send a separate patch)
- Support the 'led-max-microamp' property

[1] https://lore.kernel.org/all/20230228211046.109693-1-mmkurbanov@sberdevices.ru/

Martin Kurbanov (2):
dt-bindings: leds: add binding for aw200xx
leds: add aw20xx driver

.../testing/sysfs-class-led-driver-aw200xx | 5 +
.../bindings/leds/awinic,aw200xx.yaml | 126 ++++
drivers/leds/Kconfig | 13 +
drivers/leds/Makefile | 1 +
drivers/leds/leds-aw200xx.c | 594 ++++++++++++++++++
5 files changed, 739 insertions(+)
create mode 100644 Documentation/ABI/testing/sysfs-class-led-driver-aw200xx
create mode 100644 Documentation/devicetree/bindings/leds/awinic,aw200xx.yaml
create mode 100644 drivers/leds/leds-aw200xx.c

--
2.40.0

\
 
 \ /
  Last update: 2023-05-19 15:06    [W:0.036 / U:0.480 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site