All of lore.kernel.org
 help / color / mirror / Atom feed
From: Josua Mayer <josua@solid-run.com>
To: "sashiko-reviews@lists.linux.dev" <sashiko-reviews@lists.linux.dev>
Cc: "wsa+renesas@sang-engineering.com"
	<wsa+renesas@sang-engineering.com>,
	"conor+dt@kernel.org" <conor+dt@kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"robh@kernel.org" <robh@kernel.org>
Subject: Re: [PATCH v6 3/5] arm64: dts: renesas: add support for solidrun rzg2l som and hb-iiot evb
Date: Tue, 11 Aug 2026 11:50:50 +0000	[thread overview]
Message-ID: <16b2b955-bef6-4d17-9ff9-2de42768b242@solid-run.com> (raw)
In-Reply-To: <20260810072632.3C2831F000E9@smtp.kernel.org>

On 10/08/2026 10:26, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
> - [Medium] Lost interrupts for child devices due to edge-triggered parent interrupt configuration on the I2C expander
> --
>
> --- Patch [3]: [PATCH v6 3/5] arm64: dts: renesas: add support for solidrun rzg2l som and hb-iiot evb ---
> commit 3f1957626f1e1e5ab1e7ddedbfb53c5dea3788e0
> Author: Josua Mayer <josua@solid-run.com>
>
> arm64: dts: renesas: add support for solidrun rzg2l som and hb-iiot evb
>
> This commit adds device tree support for the SolidRun RZ/G2L SoM on the
> Hummingboard IIoT carrier board, including Ethernet, eMMC, USB, and
> configurable mux states for various interfaces.
>
> Link: https://www.solid-run.com/embedded-industrial-iot/renesas-rz-family/rz-g2l-som/
> Link: https://www.solid-run.com/embedded-industrial-iot/renesas-rz-family/hummingboard-rz-series-sbcs/hummingboard-rz-g2l-iot-sbc/
>
>> diff --git a/arch/arm64/boot/dts/renesas/rzg2l-hummingboard-iiot-common.dtsi b/arch/arm64/boot/dts/renesas/rzg2l-hummingboard-iiot-common.dtsi
>> new file mode 100644
>> index 0000000000000..eaec4cca76949
>> --- /dev/null
>> +++ b/arch/arm64/boot/dts/renesas/rzg2l-hummingboard-iiot-common.dtsi
> [ ... ]
>
>> +	tca6416_u21: gpio@21 {
>> +		compatible = "ti,tcal6416";
>> +		reg = <0x21>;
> [ ... ]
>
>> +		/* Level triggered irq does not currently work well on RZ/G2L, fall-back to edge */
>> +		interrupts-extended = <&pinctrl RZG2L_GPIO(4, 0) IRQ_TYPE_EDGE_FALLING>;
> [ ... ]
>
>> +	light-sensor@44 {
>> +		compatible = "isil,isl29023";
>> +		reg = <0x44>;
>> +		/* IRQ shared between accelerometer, light-sensor and Tamper input (J5007) */
>> +		interrupts-extended = <&tca6416_u21 7 IRQ_TYPE_LEVEL_LOW>;
>> +	};
>> +
>> +	accelerometer@53 {
>> +		compatible = "adi,adxl345";
>> +		reg = <0x53>;
>> +		interrupts-extended = <&tca6416_u21 7 IRQ_TYPE_LEVEL_LOW>;
>> +		/* IRQ shared between accelerometer, light-sensor and Tamper input (J5007) */
>> +		interrupt-names = "INT1";
>> +	};
> [Severity: Medium]
> Will this edge-triggered configuration cause lost interrupts for the child
> devices sharing this expander?
>
> The parent expander (tca6416_u21) interrupt is forced to
> IRQ_TYPE_EDGE_FALLING. However, child devices like the accelerometer and
> light sensor are configured to use IRQ_TYPE_LEVEL_LOW on the shared pin 7.
>
> If one device asserts its interrupt (pulling the shared line low), the
> expander will trigger a falling edge to the SoC. If the second device
> also asserts its interrupt before the first is cleared, the shared line
> remains low even after the first device deasserts it.
>
> Because the SoC parent interrupt is strictly edge-triggered, no second
> falling edge is generated in this scenario. Could this leave the interrupt
> line stuck low permanently and drop all future interrupts from these sensors?
>
It might, it might not, for now this is the compromise.
Maybe one day rzg2l pinctrl/gpio driver will implement level-triggered irq.

I consider this not blocking.


  reply	other threads:[~2026-08-11 11:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-10  7:11 [PATCH v6 0/5] arm64: dts: renesas: Add various SolidRun RZ/G2 based boards Josua Mayer
2026-08-10  7:11 ` [PATCH v6 1/5] dt-bindings: soc: " Josua Mayer
2026-08-10  7:11 ` [PATCH v6 2/5] dt-bindings: usb: cypress,hx3: make peer-hub property optional Josua Mayer
2026-08-10  7:11 ` [PATCH v6 3/5] arm64: dts: renesas: add support for solidrun rzg2l som and hb-iiot evb Josua Mayer
2026-08-10  7:26   ` sashiko-bot
2026-08-11 11:50     ` Josua Mayer [this message]
2026-08-10  7:11 ` [PATCH v6 4/5] arm64: dts: renesas: add support for solidrun rzv2l " Josua Mayer
2026-08-10  7:11 ` [PATCH v6 5/5] arm64: dts: renesas: add support for solidrun rzg2lc " Josua Mayer

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=16b2b955-bef6-4d17-9ff9-2de42768b242@solid-run.com \
    --to=josua@solid-run.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=wsa+renesas@sang-engineering.com \
    /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.