From: Martin Kurbanov <mmkurbanov@sberdevices.ru>
To: Pavel Machek <pavel@ucw.cz>, Lee Jones <lee@kernel.org>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: <linux-kernel@vger.kernel.org>, <linux-leds@vger.kernel.org>,
<devicetree@vger.kernel.org>, <kernel@sberdevices.ru>,
Martin Kurbanov <mmkurbanov@sberdevices.ru>
Subject: [PATCH v4 0/2] leds: add aw20xx driver
Date: Wed, 17 May 2023 22:52:36 +0300 [thread overview]
Message-ID: <20230517195238.34069-1-mmkurbanov@sberdevices.ru> (raw)
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:
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 | 593 ++++++++++++++++++
5 files changed, 738 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
next reply other threads:[~2023-05-17 19:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-17 19:52 Martin Kurbanov [this message]
2023-05-17 19:52 ` [PATCH v4 1/2] dt-bindings: leds: add binding for aw200xx Martin Kurbanov
2023-05-17 19:52 ` [PATCH v4 2/2] leds: add aw20xx driver Martin Kurbanov
2023-05-18 10:44 ` Andy Shevchenko
2023-05-22 7:14 ` Lee Jones
2023-05-22 9:35 ` Andy Shevchenko
2023-05-22 16:35 ` Lee Jones
2023-05-22 18:52 ` Andy Shevchenko
2023-05-23 9:06 ` Lee Jones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230517195238.34069-1-mmkurbanov@sberdevices.ru \
--to=mmkurbanov@sberdevices.ru \
--cc=andy.shevchenko@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=kernel@sberdevices.ru \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=lee@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=pavel@ucw.cz \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).