Devicetree
 help / color / mirror / Atom feed
From: Andreas Kemnade <andreas@kemnade.info>
To: Luka Panio <lukapanio@gmail.com>
Cc: lee@kernel.org, danielt@kernel.org, jingoohan1@gmail.com,
	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,
	dri-devel@lists.freedesktop.org, linux-leds@vger.kernel.org,
	devicetree@vger.kernel.org, linux-fbdev@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 0/6] backlight: aw99706: Add Awinic AW99703 support
Date: Sat, 5 Dec 2026 13:16:01 +0100	[thread overview]
Message-ID: <20261205131601.37d78f97@kemnade.info> (raw)
In-Reply-To: <20261205005118.884885-1-lukapanio@gmail.com>

On Sat,  5 Dec 2026 01:51:12 +0100
Luka Panio <lukapanio@gmail.com> 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

      parent reply	other threads:[~2026-12-05 12:16 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-05  0:51 [PATCH v2 0/6] backlight: aw99706: Add Awinic AW99703 support Luka Panio
2026-12-05  0:51 ` [PATCH v2 1/6] dt-bindings: leds: backlight: aw99706: Use standard led-max-microamp Luka Panio
2026-12-05  1:01   ` sashiko-bot
2026-12-05  0:51 ` [PATCH v2 2/6] dt-bindings: leds: backlight: Add Awinic AW99703 backlight Luka Panio
2026-12-05  1:04   ` sashiko-bot
2026-12-05  9:55   ` Andreas Kemnade
2026-12-05  0:51 ` [PATCH v2 3/6] backlight: aw99706: Enable the chip before reading its ID Luka Panio
2026-12-05  1:05   ` sashiko-bot
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:59   ` sashiko-bot
2026-12-05  0:51 ` [PATCH v2 6/6] backlight: aw99706: Add AW99703 support Luka Panio
2026-12-05  1:11   ` sashiko-bot
2026-12-05 12:16 ` Andreas Kemnade [this message]

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=20261205131601.37d78f97@kemnade.info \
    --to=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=lukapanio@gmail.com \
    --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