From: sashiko-bot@kernel.org
To: "Jishnu Prakash" <jishnu.prakash@oss.qualcomm.com>
Cc: robh@kernel.org, devicetree@vger.kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v6 3/4] arm64: dts: qcom: Add PMIC thermal support for Shikra CQ2390M SoM platform
Date: Fri, 11 Sep 2026 16:51:45 +0000 [thread overview]
Message-ID: <20260911165145.75E951F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260911-shikra_adc_support-v6-3-e4b2da5cd55c@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
- [High] Hardware Configuration / Pin Muxing Error for ADC channels
- [High] Missing `polling-delay` in thermal zones disables thermal mitigation
- [Low] Undocumented and incomplete ADC channels (chgr_skin and gnss_therm)
--
commit 98fcf70dd02eac02e053cdcbc6ca2e2a21056370
Author: Jishnu Prakash <jishnu.prakash@oss.qualcomm.com>
arm64: dts: qcom: Add PMIC thermal support for Shikra CQ2390M SoM platform
Add ADC channels for pa, quiet and msm thermistors along with
their ADC thermal bridge nodes and thermal zones for PMIC
thermal mitigation.
> diff --git a/arch/arm64/boot/dts/qcom/shikra-cqm-som.dtsi b/arch/arm64/boot/dts/qcom/shikra-cqm-som.dtsi
> index fde7fc035bf5d..c7fb71675b793 100644
> --- a/arch/arm64/boot/dts/qcom/shikra-cqm-som.dtsi
> +++ b/arch/arm64/boot/dts/qcom/shikra-cqm-som.dtsi
[ ... ]
> @@ -32,6 +33,68 @@ key-volume-up {
[ ... ]
> + thermal-zones {
> + sys-1-thermal {
> + polling-delay-passive = <2000>;
> + thermal-sensors = <&pa_therm_bridge>;
[Severity: High]
Does this thermal zone require a polling-delay property?
When polling-delay is omitted, the Linux thermal framework disables baseline
polling timers. The generic-adc-thermal bridges over SPMI ADCs do not seem to
generate temperature threshold interrupts.
Without a polling-delay, it appears the temperature is never read and these
trips will not trigger.
This question also applies to sys-2-thermal and sys-3-thermal.
> +
> + trips {
[ ... ]
> @@ -69,7 +132,64 @@ vreg_pmu_ch1: ldo4 {
> };
> };
>
> +&pm4125_adc {
> + pinctrl-0 = <&pm4125_adc_gpio5_default>, <&pm4125_adc_gpio6_default>;
> + pinctrl-names = "default";
[Severity: High]
Is this pin muxing correct for the channels defined below?
This assigns pinctrl-0 to gpio5 and gpio6, but the chgr_skin and
gnss_therm channels added below use ADC5_GPIO3_100K_PU and
ADC5_GPIO4_100K_PU, which map to physical GPIO3 and GPIO4.
If the wrong GPIO pins are set to high-impedance while the actual pins used
for ADC are left unconfigured, could this corrupt ADC readings or cause
unwanted power draw?
[ ... ]
> +
> + channel@54 {
> + reg = <ADC5_GPIO3_100K_PU>;
> + label = "chgr_skin";
> + qcom,ratiometric;
> + qcom,hw-settle-time = <200>;
> + qcom,pre-scaling = <1 1>;
> + };
> +
> + channel@55 {
> + reg = <ADC5_GPIO4_100K_PU>;
> + label = "gnss_therm";
> + qcom,ratiometric;
> + qcom,hw-settle-time = <200>;
> + qcom,pre-scaling = <1 1>;
> + };
[Severity: Low]
Are these two ADC channels intended to be included in this commit?
They are not mentioned in the commit message and are not connected to any
thermal zones, which might suggest they were accidentally copied over along
with the GPIO5/GPIO6 pin muxing defined above.
> +};
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260911-shikra_adc_support-v6-0-e4b2da5cd55c@oss.qualcomm.com?part=3
next prev parent reply other threads:[~2026-09-11 16:51 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 [this message]
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
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=20260911165145.75E951F000FF@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