From: sashiko-bot@kernel.org
To: "Komal Bajaj" <komal.bajaj@oss.qualcomm.com>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH] arm64: dts: qcom: shikra-evk: Add GPIO expanders
Date: Thu, 24 Sep 2026 12:41:18 +0000 [thread overview]
Message-ID: <20260924124118.858F41F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260924-shikra-gpio-expander-v1-1-71929498ea44@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] dts: I2C GPIO expanders placed under UART node
- [Medium] dts: I2C addresses mismatch hardware compatible strings
--
commit 32fcaaddae686bf893114a2f4648aee0e464eb7f
Author: Komal Bajaj <komal.bajaj@oss.qualcomm.com>
arm64: dts: qcom: shikra-evk: Add GPIO expanders
This commit adds definitions for TCA9538 and TCA9539 GPIO expanders used on
the shikra-evk board. It maps them at various I2C addresses.
> diff --git a/arch/arm64/boot/dts/qcom/shikra-evk.dtsi b/arch/arm64/boot/dts/qcom/shikra-evk.dtsi
> index 0115fc9095b3b..04faf09b21ae0 100644
> --- a/arch/arm64/boot/dts/qcom/shikra-evk.dtsi
> +++ b/arch/arm64/boot/dts/qcom/shikra-evk.dtsi
> @@ -29,4 +29,32 @@ tpm@0 {
>
> &uart0 {
> status = "okay";
> +
> + expander0: pca953x@38 {
[Severity: High]
Are these I2C GPIO expanders placed under the correct parent node?
Because they are defined as children of uart0, they will likely fail to probe
and cause device tree validation errors since UART controllers do not
instantiate I2C devices. The commit message mentions the I2C3 bus, should
these be placed under a node like &i2c3 instead?
> + compatible = "ti,tca9538";
> + reg = <0x38>;
[Severity: Medium]
Does the ti,tca9538 compatible string match the hardware at I2C address 0x38?
The TCA9538 hardware strictly uses addresses 0x70 through 0x73, while
address 0x38 typically corresponds to PCA9554A. Using a mismatched compatible
string might cause failures if chip-specific quirks are needed later.
> + #gpio-cells = <2>;
> + gpio-controller;
> + };
> +
[ ... ]
> +
> + expander2: pca953x@20 {
> + compatible = "ti,tca9539";
> + reg = <0x20>;
[Severity: Medium]
Is ti,tca9539 the correct compatible string for address 0x20?
The TCA9539 hardware strictly uses addresses 0x74 through 0x77, whereas
address 0x20 usually belongs to TCA9535 or PCA9555. Using the wrong compatible
string can inaccurately describe the hardware and lead to issues.
> + #gpio-cells = <2>;
> + gpio-controller;
> + };
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260924-shikra-gpio-expander-v1-1-71929498ea44@oss.qualcomm.com?part=1
next prev parent reply other threads:[~2026-09-24 12:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-24 12:33 [PATCH] arm64: dts: qcom: shikra-evk: Add GPIO expanders Komal Bajaj
2026-09-24 12:41 ` sashiko-bot [this message]
2026-09-29 6:27 ` Komal Bajaj
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=20260924124118.858F41F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=komal.bajaj@oss.qualcomm.com \
--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