Re: [PATCH v2 0/6] backlight: aw99706: Add Awinic AW99703 support
From: Andreas Kemnade
Date: Sat Dec 05 2026 - 07:16:18 EST
On Sat, 5 Dec 2026 01:51:12 +0100
Luka Panio <lukapanio@xxxxxxxxx> wrote:
> 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).
>
A general word to the process here:
My devicetree has something like this:
&i2c1 {
pinctrl-names = "default","sleep";
pinctrl-0 = <&pinctrl_i2c1>;
pinctrl-1 = <&pinctrl_i2c1_sleep>;
clock-frequency = <100000>;
status = "okay";
/* backlight aw99703 at 0x36 */
};
The idea is to describe the hardware as good as possible, as well as indicating
a source of possible testes and helpers. I buy the device after having the
impression that I could do what I want to do with it. Then I put together things
and am happy if they compile and basically work. Then I replace drivers with
cleaner ones.
I am wondering if the process can be more automated to that comments like that
would lead to being automatically added in driver submissions.
> 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.
>
I added the led-sources property and tested:
Issues found:
- After booting I found that backlight in sysfs is set to 1023, but
backlight is off. After a suspend resume
cycle, backlight is on. Test was done from a minimal initramfs system without
any userspace controlling the backlight
Expected behaviour: brightness value in sysfs matches the hardware
state and is the same before and after suspend.
- hwen/regulator stays on even when backlight is off
(can be solved after this series is in with a bit more thought)
Regards,
Andreas