Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: George Moussalem <george.moussalem@outlook.com>,
	Amit Kucheria <amitk@kernel.org>,
	Thara Gopinath <thara.gopinath@gmail.com>,
	"Rafael J. Wysocki" <rafael@kernel.org>,
	Daniel Lezcano <daniel.lezcano@linaro.org>,
	Zhang Rui <rui.zhang@intel.com>,
	Lukasz Luba <lukasz.luba@arm.com>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Bjorn Andersson <andersson@kernel.org>,
	Konrad Dybcio <konradybcio@kernel.org>
Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v11 1/2] dt-bindings: thermal: qcom-tsens: make ipq5018 tsens standalone compatible
Date: Wed, 11 Jun 2025 09:30:21 +0200	[thread overview]
Message-ID: <501a3c12-c010-40ac-8d20-224633a36556@kernel.org> (raw)
In-Reply-To: <DS7PR19MB88830F20F9AA1D54EE130CC99D75A@DS7PR19MB8883.namprd19.prod.outlook.com>

On 11/06/2025 09:23, George Moussalem wrote:
>>>>
>>>>
>>>>>    1 file changed, 4 insertions(+), 1 deletion(-)
>>>>>
>>>>> diff --git a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml
>>>>> index 0e653bbe9884953b58c4d8569b8d096db47fd54f..73d722bda8adc2c930edfc3373e6011f19c7c491 100644
>>>>> --- a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml
>>>>> +++ b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml
>>>>> @@ -36,10 +36,13 @@ properties:
>>>>>                  - qcom,msm8974-tsens
>>>>>              - const: qcom,tsens-v0_1
>>>>>    
>>>>> +      - description: v1 of TSENS
>>>>
>>>> So that's still v1... I don't understand.
>>>
>>> As mentioned, the IP is still v1 but with a different init routine in
>>> the driver for IP v1 without RPM
>>
>> OK, just merge it into first enum and drop the description there.
> 
> can't merge it into the first enum as that description is invalid for 
> this SoC ("description: msm8960 TSENS based").

That is why I asked to drop the description there.

> 
> My proposal would be:
> 
>        - description: v1 of TSENS
>          oneOf:
>            - enum: # for IP V1 without RPM
>                - qcom,ipq5018-tsens
>            - items:
>                - enum:
>                    - qcom,msm8937-tsens
>                    - qcom,msm8956-tsens
>                    - qcom,msm8976-tsens
>                    - qcom,qcs404-tsens
>                - const: qcom,tsens-v1

No double nesting. That's already oneOf at the top. Anyway, not
important, so fine if you want to keep it like in this patch, but add
detailed description.

Best regards,
Krzysztof

  reply	other threads:[~2025-06-11  7:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-11  5:12 [PATCH v11 0/2] Add support for IPQ5018 tsens George Moussalem via B4 Relay
2025-06-11  5:12 ` [PATCH v11 1/2] dt-bindings: thermal: qcom-tsens: make ipq5018 tsens standalone compatible George Moussalem via B4 Relay
2025-06-11  6:51   ` Krzysztof Kozlowski
2025-06-11  7:06     ` George Moussalem
2025-06-11  7:13       ` Krzysztof Kozlowski
2025-06-11  7:23         ` George Moussalem
2025-06-11  7:30           ` Krzysztof Kozlowski [this message]
2025-06-11  5:12 ` [PATCH v11 2/2] arm64: dts: qcom: ipq5018: Add tsens node George Moussalem via B4 Relay

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=501a3c12-c010-40ac-8d20-224633a36556@kernel.org \
    --to=krzk@kernel.org \
    --cc=amitk@kernel.org \
    --cc=andersson@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=daniel.lezcano@linaro.org \
    --cc=devicetree@vger.kernel.org \
    --cc=george.moussalem@outlook.com \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=lukasz.luba@arm.com \
    --cc=rafael@kernel.org \
    --cc=robh@kernel.org \
    --cc=rui.zhang@intel.com \
    --cc=thara.gopinath@gmail.com \
    /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