dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
  • [parent not found: <20261205005118.884885-2-lukapanio@gmail.com>]
  • [parent not found: <20261205005118.884885-3-lukapanio@gmail.com>]
  • [parent not found: <20261205005118.884885-4-lukapanio@gmail.com>]
  • [parent not found: <20261205005118.884885-7-lukapanio@gmail.com>]
  • * Re: [PATCH v2 0/6] backlight: aw99706: Add Awinic AW99703 support
           [not found] <20261205005118.884885-1-lukapanio@gmail.com>
                       ` (4 preceding siblings ...)
           [not found] ` <20261205005118.884885-7-lukapanio@gmail.com>
    @ 2026-12-05 12:16 ` Andreas Kemnade
      5 siblings, 0 replies; 7+ messages in thread
    From: Andreas Kemnade @ 2026-12-05 12:16 UTC (permalink / raw)
      To: Luka Panio
      Cc: lee, danielt, jingoohan1, pavel, robh, krzk+dt, conor+dt, deller,
    	griffin, junjie.cao, mitltlatltl, dri-devel, linux-leds,
    	devicetree, linux-fbdev, linux-kernel
    
    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
    
    ^ permalink raw reply	[flat|nested] 7+ messages in thread

  • end of thread, other threads:[~2026-12-05 12:16 UTC | newest]
    
    Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <20261205005118.884885-1-lukapanio@gmail.com>
         [not found] ` <20261205005118.884885-6-lukapanio@gmail.com>
    2026-12-05  0:59   ` [PATCH v2 5/6] backlight: aw99706: Support the led-max-microamp property sashiko-bot
         [not found] ` <20261205005118.884885-2-lukapanio@gmail.com>
    2026-12-05  1:01   ` [PATCH v2 1/6] dt-bindings: leds: backlight: aw99706: Use standard led-max-microamp sashiko-bot
         [not found] ` <20261205005118.884885-3-lukapanio@gmail.com>
    2026-12-05  1:04   ` [PATCH v2 2/6] dt-bindings: leds: backlight: Add Awinic AW99703 backlight sashiko-bot
    2026-12-05  9:55   ` Andreas Kemnade
         [not found] ` <20261205005118.884885-4-lukapanio@gmail.com>
    2026-12-05  1:05   ` [PATCH v2 3/6] backlight: aw99706: Enable the chip before reading its ID sashiko-bot
         [not found] ` <20261205005118.884885-7-lukapanio@gmail.com>
    2026-12-05  1:11   ` [PATCH v2 6/6] backlight: aw99706: Add AW99703 support sashiko-bot
    2026-12-05 12:16 ` [PATCH v2 0/6] backlight: aw99706: Add Awinic " Andreas Kemnade
    

    This is a public inbox, see mirroring instructions
    for how to clone and mirror all data and code used for this inbox