On Mon, 30 Nov 2026 19:32:08 +0000 [email protected] 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 <[email protected]> > > 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 = <®_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 = <®_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
