All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andreas Kemnade <andreas@kemnade.info>
To: sashiko-bot@kernel.org
Cc: sashiko-reviews@lists.linux.dev, dri-devel@lists.freedesktop.org,
	linux-leds@vger.kernel.org, devicetree@vger.kernel.org,
	imx@lists.linux.dev, robh@kernel.org, conor+dt@kernel.org,
	Frank.Li@kernel.org, lee@kernel.org
Subject: Re: [PATCH 3/4] ARM: dts: imx: Add backlight for Kobo Clara 2e
Date: Mon, 30 Nov 2026 21:25:09 +0100	[thread overview]
Message-ID: <20261130212509.137eb5d8@kemnade.info> (raw)
In-Reply-To: <sashiko-outbox-241910@kernel.org>

On Mon, 30 Nov 2026 19:32:08 +0000
sashiko-bot@kernel.org wrote:

> Thank you for your contribution! Sashiko AI review found 1 potential
> issue to consider:
> - [Medium] ARM: dts: imx: missing IOMUXC pinmux for Kobo Clara 2E
>   backlight GPIOs
> --
> 
> commit ebce1ef7c96a74606867ed907a6a2fdadf34c40a
> Author: Andreas Kemnade <andreas@kemnade.info>
> 
> ARM: dts: imx: Add backlight for Kobo Clara 2e
> 
> This commit adds the fixed power regulator and the two aw99703 backlight
> nodes for the Kobo Clara 2e device tree.
> 
> > diff --git a/arch/arm/boot/dts/nxp/imx/imx6sll-kobo-clara2e-common.dtsi b/arch/arm/boot/dts/nxp/imx/imx6sll-kobo-clara2e-common.dtsi
> > index 6f2deb366e029..6b60c94e21579 100644
> > --- a/arch/arm/boot/dts/nxp/imx/imx6sll-kobo-clara2e-common.dtsi
> > +++ b/arch/arm/boot/dts/nxp/imx/imx6sll-kobo-clara2e-common.dtsi
> > @@ -53,6 +53,14 @@ memory@80000000 {
> >  		reg = <0x80000000 0x20000000>;
> >  	};
> >  
> > +	reg_bl: regulator-backlight {
> > +		compatible = "regulator-fixed";
> > +		regulator-name = "bl_power";
> > +		gpio = <&gpio5 13 GPIO_ACTIVE_HIGH>;
> > +		startup-delay-us = <20000>;
> > +		enable-active-high;
> > +	};
> > +
> >  	reg_wifi: regulator-wifi {
> >  		compatible = "regulator-fixed";
> >  		regulator-name = "SD3_SPWR";
> > @@ -80,7 +88,18 @@ &i2c1 {
> >  	clock-frequency = <100000>;
> >  	status = "okay";
> >  
> > -	/* backlight aw99703 at 0x36 */
> > +	backlight@36 {
> > +		compatible = "awinic,aw99703";
> > +		reg = <0x36>;
> > +		vin-supply = <&reg_bl>;
> > +		enable-gpios = <&gpio2 10 GPIO_ACTIVE_HIGH>;
> > +		label = "cold";
> > +
> > +		awinic,ovp-microvolt = <24000000>;
> > +		awinic,ocp-microamp = <900000>;
> > +		awinic,channel-mask = <1>;
> > +		awinic,inductor-nanohenry = <10000>;
> > +	};
> >  };
> >  
> >  &i2c2 {
> > @@ -90,7 +109,18 @@ &i2c2 {
> >  	clock-frequency = <100000>;
> >  	status = "okay";
> >  
> > -	/* backlight aw99703 at 0x36 */
> > +	backlight@36 {
> > +		compatible = "awinic,aw99703";
> > +		reg = <0x36>;
> > +		vin-supply = <&reg_bl>;
> > +		enable-gpios = <&gpio2 10 GPIO_ACTIVE_HIGH>;
> > +		label = "warm";  
> 
> [Severity: Medium]
> Are pinctrl configurations missing for the backlight GPIOs in reg_bl
> (gpio5 13, MX6SLL_PAD_SD1_DATA2__GPIO5_IO13) and the backlight@36 nodes
> (gpio2 10, MX6SLL_PAD_EPDC_PWR_CTRL3__GPIO2_IO10)?
> 
> On i.MX6SLL, imx_pmx_ops does not implement .gpio_request_enable, so
> requesting a GPIO does not switch the IOMUXC pad mux mode to GPIO.  Both
> pads reset to ALT0 rather than ALT5 GPIO mode, leaving the backlight
> power and enable pins unmuxed unless configured by the bootloader.
> 
According to page 1101 of IMX6SLL TRM 
IOMUXC_SW_MUX_CTL_PAD_EPDC_PWR_CTRL3 resets to ALT5 = GPIO
Same for
IOMUXC_SW_MUX_CTL_PAD_SD1_DATA2 according to page 1160.

If I would add muxes directly at the backlights, they would conflict,
adding them to i2c parents would also conflict because they
are at different i2c controllers. So I would have to specify them
far away, e.g. at the iomuxc node itself.

Regards,
Andreas

  reply	other threads:[~2026-11-30 20:25 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 19:08 [PATCH 0/4] video: backlight: Backlight for Kobo Clara 2e Andreas Kemnade
2026-11-30 19:08 ` [PATCH 1/4] dt-bindings: leds: backlight: Add Awinic AW99703 backlight Andreas Kemnade
2026-11-30 19:16   ` sashiko-bot
2026-11-30 20:21     ` Frank Li
2026-11-30 19:08 ` [PATCH 2/4] video: backlight: Add Awinic AW99703 Andreas Kemnade
2026-11-30 19:24   ` sashiko-bot
2026-11-30 20:18     ` Frank Li
2026-11-30 20:35       ` Andreas Kemnade
2026-12-01  6:35   ` kernel test robot
2026-11-30 19:08 ` [PATCH 3/4] ARM: dts: imx: Add backlight for Kobo Clara 2e Andreas Kemnade
2026-11-30 19:32   ` sashiko-bot
2026-11-30 20:25     ` Andreas Kemnade [this message]
2026-11-30 19:08 ` [PATCH 4/4] arm: mach-imx: enable shared gpios Andreas Kemnade
2026-11-30 19:32 ` [PATCH 0/4] video: backlight: Backlight for Kobo Clara 2e sashiko-bot

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=20261130212509.137eb5d8@kemnade.info \
    --to=andreas@kemnade.info \
    --cc=Frank.Li@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=imx@lists.linux.dev \
    --cc=lee@kernel.org \
    --cc=linux-leds@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko-bot@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.