Linux Framebuffer Layer development
 help / color / mirror / Atom feed
From: Luka Panio <lukapanio@gmail.com>
To: lee@kernel.org, danielt@kernel.org, jingoohan1@gmail.com
Cc: pavel@kernel.org, robh@kernel.org, krzk+dt@kernel.org,
	conor+dt@kernel.org, deller@gmx.de, griffin@kroah.com,
	junjie.cao@linux.dev, mitltlatltl@gmail.com,
	andreas@kemnade.info, dri-devel@lists.freedesktop.org,
	linux-leds@vger.kernel.org, devicetree@vger.kernel.org,
	linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	Luka Panio <lukapanio@gmail.com>
Subject: [PATCH v2 0/6] backlight: aw99706: Add Awinic AW99703 support
Date: Sat,  5 Dec 2026 01:51:12 +0100	[thread overview]
Message-ID: <20261205005118.884885-1-lukapanio@gmail.com> (raw)

The Awinic AW99703 is a 3-channel WLED driver with an integrated boost
converter and 11-bit brightness control over I2C, used for the panel
backlight of the Nexphone (QCM6490).

As suggested on v1, this version adds the AW99703 to the existing aw99706
driver instead of adding a new one. The two chips share the programming
model but have different register maps, so the driver is first converted
to per-chip data. Following the binding review, the AW99703 binding uses
the standard led-sources and led-max-microamp properties, and the
AW99706 binding gains led-max-microamp as well, with the vendor
awinic,iled-max-microamp property deprecated but still read.

Patch 3 is a fix for the existing driver: the chip ID was read before
HWEN was asserted.

Andreas, your Kobo Clara 2e series [1] adds a separate aw99703 driver
and binding for the same chip. Hopefully we can settle  on 1 driver,
please test this driver and let me know if it works for you, or you
have any other ideas.

[1] https://lore.kernel.org/all/20261202-bl-aw99703-upstr-v2-0-cc41570c0404@kemnade.info/

Changes in v2:
- Add AW99703 support to the aw99706 driver instead of a new driver
- Drop the ramp, transition and mapping properties; use led-sources and
  led-max-microamp
- Add led-max-microamp to the AW99706 binding, deprecate
  awinic,iled-max-microamp and keep reading it as a fallback
- Read the brightness properties into u32 variables
- Assert HWEN before reading the chip ID and drop it again on probe failure
- Add optional vin-supply and label

Luka Panio (6):
  dt-bindings: leds: backlight: aw99706: Use standard led-max-microamp
  dt-bindings: leds: backlight: Add Awinic AW99703 backlight
  backlight: aw99706: Enable the chip before reading its ID
  backlight: aw99706: Introduce per-chip data
  backlight: aw99706: Support the led-max-microamp property
  backlight: aw99706: Add AW99703 support

 .../leds/backlight/awinic,aw99703.yaml        | 118 +++++
 .../leds/backlight/awinic,aw99706.yaml        |  10 +-
 MAINTAINERS                                   |   2 +
 drivers/video/backlight/Kconfig               |   6 +-
 drivers/video/backlight/aw99706.c             | 434 ++++++++++++++----
 5 files changed, 488 insertions(+), 82 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/leds/backlight/awinic,aw99703.yaml


base-commit: 29beb21c21ada7207692b2d69fc58dcd15dab6e9
-- 
2.55.0


             reply	other threads:[~2026-12-05  0:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-05  0:51 Luka Panio [this message]
2026-12-05  0:51 ` [PATCH v2 1/6] dt-bindings: leds: backlight: aw99706: Use standard led-max-microamp Luka Panio
2026-12-05  0:51 ` [PATCH v2 2/6] dt-bindings: leds: backlight: Add Awinic AW99703 backlight Luka Panio
2026-12-05  0:51 ` [PATCH v2 3/6] backlight: aw99706: Enable the chip before reading its ID Luka Panio
2026-12-05  0:51 ` [PATCH v2 4/6] backlight: aw99706: Introduce per-chip data Luka Panio
2026-12-05  0:51 ` [PATCH v2 5/6] backlight: aw99706: Support the led-max-microamp property Luka Panio
2026-12-05  0:51 ` [PATCH v2 6/6] backlight: aw99706: Add AW99703 support Luka Panio

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=20261205005118.884885-1-lukapanio@gmail.com \
    --to=lukapanio@gmail.com \
    --cc=andreas@kemnade.info \
    --cc=conor+dt@kernel.org \
    --cc=danielt@kernel.org \
    --cc=deller@gmx.de \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=griffin@kroah.com \
    --cc=jingoohan1@gmail.com \
    --cc=junjie.cao@linux.dev \
    --cc=krzk+dt@kernel.org \
    --cc=lee@kernel.org \
    --cc=linux-fbdev@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-leds@vger.kernel.org \
    --cc=mitltlatltl@gmail.com \
    --cc=pavel@kernel.org \
    --cc=robh@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