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] arm64: dts: qcom: sm7125-samsung: add thermistors
Date: Fri, 04 Dec 2026 12:44:57 +0000	[thread overview]
Message-ID: <sashiko-outbox-249832@kernel.org> (raw)
In-Reply-To: <20261204-sm7125-samsung-thermistors-v1-1-df7032c1aed2@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] arm64: dts: qcom: missing high-impedance pinctrl for
  ADC5_GPIO2_100K_PU
--

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

arm64: dts: qcom: sm7125-samsung: add thermistors

This commit adds PM6150 ADC thermistor channels, ADC thermal monitor nodes,
and thermal zones to the SM7125 Samsung common device tree for the 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..be8ab2fd8602e 100644
> --- a/arch/arm64/boot/dts/qcom/sm7125-samsung-common.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sm7125-samsung-common.dtsi

[ ... ]

> @@ -379,6 +437,72 @@ &dispcc {
>  	status = "disabled";
>  };
>
> +&pm6150_adc {

[ ... ]

> +	channel@53 {
> +		reg = <ADC5_GPIO2_100K_PU>;
> +		qcom,ratiometric;
> +		qcom,hw-settle-time = <200>;
> +		qcom,pre-scaling = <1 1>;
> +		label = "sdm_skin_therm";
> +	};
> +};

[Severity: Medium]
Does pm6150_adc need a bias-high-impedance pinctrl state for
ADC5_GPIO2_100K_PU?

Unlike the dedicated AMUX thermistor inputs, ADC5_GPIO2_100K_PU routes a
PM6150 GPIO pin into the ADC analog mux.  In pinctrl-spmi-gpio.c,
pmic_gpio_populate() never clears PMIC_GPIO_REG_EN_CTL; the digital pad is
only disabled when pmic_gpio_config_set() applies bias-high-impedance.

Without a bias-high-impedance state in pm6150_gpios bound via pinctrl-0
and pinctrl-names = "default" on pm6150_adc, Linux neither disables the
digital pad nor claims the pin in pinctrl.  If the pin is enabled in
hardware or claimed elsewhere, it can corrupt sdm-skin-thermal readings.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204-sm7125-samsung-thermistors-v1-1-df7032c1aed2@gmail.com?part=1

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

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 12:28 [PATCH] arm64: dts: qcom: sm7125-samsung: add thermistors Erikas Bitovtas
2026-12-04 12:44 ` sashiko-bot [this message]
2026-12-04 23:36 ` Bjorn Andersson

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-249832@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.