dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Andreas Kemnade" <andreas@kemnade.info>
Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
	robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 2/2] ARM: dts: st: stm32mp15xx-dhsom: fix bridge reset polarity
Date: Tue, 24 Nov 2026 12:03:56 +0000	[thread overview]
Message-ID: <sashiko-outbox-231094@kernel.org> (raw)
In-Reply-To: <20261124-tc3-reset-v1-2-a5d27fe4b5de@kemnade.info>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] ARM: dts: stm32: GPIO_ACTIVE_LOW reset breaks attiny power
  sequencing
--

commit 5197ca21b0b76899dd25b433741d3989825b219f
Author: Andreas Kemnade <andreas@kemnade.info>

ARM: dts: st: stm32mp15xx-dhsom: fix bridge reset polarity

This commit changes the TC358762 bridge reset GPIO polarity from
GPIO_ACTIVE_HIGH to GPIO_ACTIVE_LOW in the Raspberry Pi 7-inch DSI panel
devicetree overlay.

> diff --git a/arch/arm/boot/dts/st/stm32mp15xx-dhsom-overlay-panel-dsi-rpi7inch.dtsi b/arch/arm/boot/dts/st/stm32mp15xx-dhsom-overlay-panel-dsi-rpi7inch.dtsi
> index 518c269a1dba1..6342a6e757c12 100644
> --- a/arch/arm/boot/dts/st/stm32mp15xx-dhsom-overlay-panel-dsi-rpi7inch.dtsi
> +++ b/arch/arm/boot/dts/st/stm32mp15xx-dhsom-overlay-panel-dsi-rpi7inch.dtsi
> @@ -35,7 +35,7 @@ &dsi {
>  	bridge@0 {
>  		compatible = "toshiba,tc358762";
>  		reg = <0>;
> -		reset-gpios = <&attiny 0 GPIO_ACTIVE_HIGH>;
> +		reset-gpios = <&attiny 0 GPIO_ACTIVE_LOW>;
>  		vddc-supply = <&attiny>;
>  		status = "okay";

[Severity: High]
Does changing reset-gpios to GPIO_ACTIVE_LOW break power sequencing on the
attiny regulator and leave the panel unpowered?

During probe, tc358762_parse_dt() requests the reset GPIO using logical
GPIOD_OUT_LOW before vddc-supply is enabled:

drivers/gpu/drm/bridge/tc358762.c:tc358762_parse_dt() {
	...
	ctx->reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW);
	...
}

With GPIO_ACTIVE_LOW, GPIOD_OUT_LOW drives a physical 1 on &attiny GPIO 0
(RST_BRIDGE_N).  In attiny_gpio_set(), driving RST_BRIDGE_N high sets
PC_RST_BRIDGE_N | PC_RST_LCD_N in REG_PORTC and writes the TC358762
registers over I2C while main power (PB_LCD_MAIN) is still off.

Because attiny_lcd_power_is_enabled() checks whether the regulator is
enabled by testing data & PC_RST_BRIDGE_N in REG_PORTC, the subsequent
regulator_enable() call sees the regulator as already enabled and skips
attiny_lcd_power_enable(), leaving PB_LCD_MAIN and PC_LED_EN turned off.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261124-tc3-reset-v1-0-a5d27fe4b5de@kemnade.info?part=2

  reply	other threads:[~2026-11-24 12:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24 11:54 [PATCH 0/2] drm/bridge: tc358762: fix reset handling Andreas Kemnade
2026-11-24 11:54 ` [PATCH 1/2] drm/bridge: tc358762: fix reset gpio handling Andreas Kemnade
2026-11-24 12:06   ` sashiko-bot
2026-11-24 11:54 ` [PATCH 2/2] ARM: dts: st: stm32mp15xx-dhsom: fix bridge reset polarity Andreas Kemnade
2026-11-24 12:03   ` sashiko-bot [this message]
2026-11-24 13:44 ` [PATCH 0/2] drm/bridge: tc358762: fix reset handling Tomi Valkeinen
2026-11-24 14:23   ` Andreas Kemnade

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=sashiko-outbox-231094@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=andreas@kemnade.info \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=robh@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox