All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Erikas Bitovtas" <erikas99876@gmail.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v3] arm64: dts: qcom: sm7125-samsung: add fuel gauge
Date: Fri, 04 Dec 2026 08:33:08 +0000	[thread overview]
Message-ID: <sashiko-outbox-249399@kernel.org> (raw)
In-Reply-To: <20261204-sm7125-samsung-fuelgauge-v3-1-af0083219ffd@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] arm64: dts: qcom: sm7125-samsung: unused gpi_dma1 and qupv3_id_1
  enabled
--

commit ebee6ca2992e8f82a8e0bf30c5df3d165e9a0154
Author: Erikas Bitovtas <erikas99876@gmail.com>

arm64: dts: qcom: sm7125-samsung: add fuel gauge

This commit adds simple-battery nodes and enables the Silicon Mitus SM5714
fuel gauge along with GPI DMA and QUPv3 I2C controllers for Samsung Galaxy
A52 and A72.

> diff --git a/arch/arm64/boot/dts/qcom/sm7125-samsung-common.dtsi b/arch/arm64/boot/dts/qcom/sm7125-samsung-common.dtsi
> index 59ef4921f31e9..d1abb5eff1b3a 100644
> --- a/arch/arm64/boot/dts/qcom/sm7125-samsung-common.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sm7125-samsung-common.dtsi

[ ... ]

> @@ -379,6 +385,25 @@ &dispcc {
>  	status = "disabled";
>  };
>  
> +&gpi_dma0 {
> +	status = "okay";
> +};
> +
> +&gpi_dma1 {
> +	status = "okay";
> +};
> +
> +&i2c4 {
> +	status = "okay";

[ ... ]

> @@ -421,6 +446,20 @@ &qfprom {
>  	vcc-supply = <&vreg_l11a_1p8>;
>  };
>  
> +/* External pull-up */
> +&qup_i2c4_default {
> +	drive-strength = <2>;
> +	bias-disable;
> +};
> +
> +&qupv3_id_0 {
> +	status = "okay";
> +};
> +
> +&qupv3_id_1 {
> +	status = "okay";
> +};

[Severity: Low]
Should gpi_dma1 and qupv3_id_1 stay disabled until a peripheral under them
is enabled?

In sc7180.dtsi, i2c4 is a child of qupv3_id_0 and references only gpi_dma0,
while every child serial engine under qupv3_id_1 remains disabled.  Enabling
both unused controllers probes them and registers unused DMA channels with
the default dma-channel-mask.

In addition, tlmm reserves GPIOs 59-62 (spi6 under qupv3_id_1) for a
TrustZone-owned fingerprint sensor, so enabling gpi_dma1 without an active
consumer or verified dma-channel-mask is premature.

The commit message also refers to enabling I2C controllers in the plural
when only i2c4 is enabled.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204-sm7125-samsung-fuelgauge-v3-1-af0083219ffd@gmail.com?part=1

  reply	other threads:[~2026-12-04  8:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  8:21 [PATCH v3] arm64: dts: qcom: sm7125-samsung: add fuel gauge Erikas Bitovtas
2026-12-04  8:33 ` sashiko-bot [this message]
2026-12-05 10:59   ` Erikas Bitovtas

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-249399@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=erikas99876@gmail.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 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.