From: Sachin Gupta <sachin.gupta@oss.qualcomm.com>
To: sashiko-reviews@lists.linux.dev
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: thermal: Add Qualcomm MBG thermal monitor support
Date: Fri, 19 Jun 2026 11:29:35 +0530 [thread overview]
Message-ID: <cbcf72a1-cdd5-4cdb-86c5-3f40cd79212b@oss.qualcomm.com> (raw)
In-Reply-To: <20260601113009.38FC81F00893@smtp.kernel.org>
On 6/1/2026 5:00 PM, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
> - [Low] The PMIC schema restricts the standard 'temperature-sensor@' node name exclusively to the new MBG TM binding, causing false positive validation failures for standard-compliant legacy nodes.
> --
>
> commit 1c6b45c4d32f87b04fb868a977041acc92be3854
> Author: Satya Priya Kakitapalli <quic_skakitap@quicinc.com>
>
> dt-bindings: thermal: Add Qualcomm MBG thermal monitor support
>
> This commit adds device tree bindings for the Qualcomm Master Bandgap (MBG)
> temperature alarm peripheral found on the PM8775 PMIC. It introduces a new
> schema for the MBG thermal monitor and maps it in the SPMI PMIC bindings.
>
>> diff --git a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml
>> --- a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml
>> +++ b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml
>> @@ -193,6 +193,10 @@ patternProperties:
>> type: object
>> $ref: /schemas/thermal/qcom,spmi-temp-alarm.yaml#
>>
>> + "^temperature-sensor@[0-9a-f]+$":
>> + type: object
>> + $ref: /schemas/thermal/qcom-spmi-mbg-tm.yaml#
>
> [Severity: Low]
> Does mapping this generic pattern exclusively to the MBG thermal monitor
> schema cause validation conflicts with other thermal sensors?
>
> Since temperature-sensor is the standard generic node name, other thermal
> sensors under the PMIC (like qcom,spmi-temp-alarm) might use it. If a node
> uses temperature-sensor@a00 for a standard SPMI temp alarm, wouldn't it be
> evaluated solely against this MBG-specific schema and fail with a compatible
> string mismatch error?
>
> Would it be better to structure this using a oneOf block to allow multiple
> applicable thermal bindings to share the standard node name?
>
The reported case does not seem valid for this binding update.
temperature-sensor@... is intended for the MBG TM block
(qcom-spmi-mbg-tm), while the existing SPMI temp-alarm block uses
temp-alarm@... and its own binding (qcom,spmi-temp-alarm). So in
practice they are distinct node names for distinct peripherals, and a
normal temp-alarm node is
not expected to be described as temperature-sensor@....
Because of that, this should not cause a real conflict for standard PMIC
DTS usage. A qcom,spmi-temp-alarm node named temperature-sensor@...
would be a misnamed node rather than a valid legacy form we need to
preserve.
Thanks,
Sachin
next prev parent reply other threads:[~2026-06-19 5:59 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-01 11:01 [PATCH 0/2] thermal: qcom: Add Qualcomm SPMI MBG thermal monitor support Sachin Gupta
2026-06-01 11:01 ` [PATCH 1/2] dt-bindings: thermal: Add Qualcomm " Sachin Gupta
2026-06-01 11:30 ` sashiko-bot
2026-06-19 5:59 ` Sachin Gupta [this message]
2026-06-08 10:07 ` Krzysztof Kozlowski
2026-06-19 6:44 ` Sachin Gupta
2026-06-19 13:06 ` Krzysztof Kozlowski
2026-06-01 11:01 ` [PATCH 2/2] thermal: qcom: Add support for Qualcomm MBG thermal monitoring Sachin Gupta
2026-06-01 11:40 ` sashiko-bot
2026-06-19 6:00 ` Sachin Gupta
2026-06-16 10:10 ` Konrad Dybcio
2026-06-19 6:45 ` Sachin Gupta
2026-06-19 12:14 ` Konrad Dybcio
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=cbcf72a1-cdd5-4cdb-86c5-3f40cd79212b@oss.qualcomm.com \
--to=sachin.gupta@oss.qualcomm.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--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