From: sashiko-bot@kernel.org
To: "Jishnu Prakash" <jishnu.prakash@oss.qualcomm.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v6 4/4] arm64: dts: qcom: Add PMIC thermal support for Shikra IQ2390S SoM platform
Date: Fri, 11 Sep 2026 16:49:02 +0000 [thread overview]
Message-ID: <20260911164902.A5DA61F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260911-shikra_adc_support-v6-4-e4b2da5cd55c@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] The pinctrl configuration for the PMIC ADC incorrectly sets up PMIC GPIO2 and GPIO3 for analog input, but the configured ADC channels are actually mapped to read from PMIC GPIO1 and GPIO4.
--
commit 16888acda3cf4c853fe7f5fde0d880b0e2116d1a
Author: Jishnu Prakash <jishnu.prakash@oss.qualcomm.com>
arm64: dts: qcom: Add PMIC thermal support for Shikra IQ2390S SoM platform
This commit adds ADC channels for system thermistors which are used for
thermal mitigation. It also adds ADC_TM nodes for pa/quiet/msm thermistors
along with their thermal zones.
> diff --git a/arch/arm64/boot/dts/qcom/shikra-iqs-som.dtsi b/arch/arm64/boot/dts/qcom/shikra-iqs-som.dtsi
> index e119ace54e588..a6769364c1921 100644
> --- a/arch/arm64/boot/dts/qcom/shikra-iqs-som.dtsi
> +++ b/arch/arm64/boot/dts/qcom/shikra-iqs-som.dtsi
[ ... ]
> @@ -76,7 +115,81 @@ vreg_pmu_ch1: ldo4 {
> };
> };
>
> +&pm8150_adc {
> + pinctrl-0 = <&pm8150_adc_gpio2_default>, <&pm8150_adc_gpio3_default>;
> + pinctrl-names = "default";
[Severity: High]
Does this incorrectly assign the pinctrl states for GPIO2 and GPIO3,
rather than GPIO1 and GPIO4?
As seen in the channels defined below, the gnss_therm and pa_therm are
mapped to read from ADC5_GPIO1_100K_PU and ADC5_GPIO4_100K_PU.
> +
> + channel@4d {
> + reg = <ADC5_AMUX_THM1_100K_PU>;
> + label = "msm_therm";
> + qcom,ratiometric;
> + qcom,hw-settle-time = <200>;
> + qcom,pre-scaling = <1 1>;
> + };
> +
> + channel@4e {
> + reg = <ADC5_AMUX_THM2_100K_PU>;
> + label = "quiet_therm";
> + qcom,ratiometric;
> + qcom,hw-settle-time = <200>;
> + qcom,pre-scaling = <1 1>;
> + };
> +
> + channel@52 {
> + reg = <ADC5_GPIO1_100K_PU>;
> + label = "gnss_therm";
> + qcom,ratiometric;
> + qcom,hw-settle-time = <200>;
> + qcom,pre-scaling = <1 1>;
> + };
> +
> + channel@55 {
> + reg = <ADC5_GPIO4_100K_PU>;
> + label = "pa_therm";
> + qcom,ratiometric;
> + qcom,hw-settle-time = <200>;
> + qcom,pre-scaling = <1 1>;
> + };
> +};
[ ... ]
> &pm8150_gpios {
> + pm8150_adc_gpio2_default: pm8150-adc-gpio2-state {
> + pins = "gpio2";
> + function = PMIC_GPIO_FUNC_NORMAL;
> + bias-high-impedance;
> + };
> +
> + pm8150_adc_gpio3_default: pm8150-adc-gpio3-state {
> + pins = "gpio3";
> + function = PMIC_GPIO_FUNC_NORMAL;
> + bias-high-impedance;
> + };
[Severity: High]
Should these pinctrl states configure GPIO1 and GPIO4 instead?
Without high-impedance configuration on GPIO1 and GPIO4, their default
digital states or internal biases might interfere with the analog thermistor
voltage. This can result in incorrect temperature readings, potentially
causing the system to either overheat or spuriously shut down.
> +
> vol_up_n: vol-up-n-state {
> pins = "gpio6";
> function = PMIC_GPIO_FUNC_NORMAL;
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260911-shikra_adc_support-v6-0-e4b2da5cd55c@oss.qualcomm.com?part=4
next prev parent reply other threads:[~2026-09-11 16:49 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-11 16:40 [PATCH v6 0/4] arm64: dts: qcom: Add PMIC thermal support for Shikra platforms Jishnu Prakash
2026-09-11 16:40 ` [PATCH v6 1/4] arm64: dts: qcom: pm4125: Add VADC and temp alarm nodes Jishnu Prakash
2026-09-12 15:35 ` Abel Vesa
2026-09-11 16:40 ` [PATCH v6 2/4] arm64: dts: qcom: pm8005: Add temp alarm node Jishnu Prakash
2026-09-11 16:51 ` sashiko-bot
2026-09-12 15:35 ` Abel Vesa
2026-09-11 16:40 ` [PATCH v6 3/4] arm64: dts: qcom: Add PMIC thermal support for Shikra CQ2390M SoM platform Jishnu Prakash
2026-09-11 16:51 ` sashiko-bot
2026-09-12 15:36 ` Abel Vesa
2026-09-11 16:40 ` [PATCH v6 4/4] arm64: dts: qcom: Add PMIC thermal support for Shikra IQ2390S " Jishnu Prakash
2026-09-11 16:49 ` sashiko-bot [this message]
2026-09-12 15:36 ` Abel Vesa
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=20260911164902.A5DA61F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jishnu.prakash@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