From: Krzysztof Kozlowski <krzk@kernel.org>
To: Anjelique Melendez <anjelique.melendez@oss.qualcomm.com>,
Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Cc: andersson@kernel.org, konradybcio@kernel.org, robh@kernel.org,
krzk+dt@kernel.org, conor+dt@kernel.org,
linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/2] dt-bindings: soc: qcom: qcom,pmic-glink: Add Kaanapali and Glymur compatibles
Date: Wed, 29 Oct 2025 06:26:26 +0100 [thread overview]
Message-ID: <c3603096-70c9-436b-9723-8a0daf1af9d6@kernel.org> (raw)
In-Reply-To: <481ec137-87cf-4448-99e9-4a1477f4854d@oss.qualcomm.com>
On 28/10/2025 23:55, Anjelique Melendez wrote:
>
>
> On 10/28/2025 2:30 AM, Krzysztof Kozlowski wrote:
>> On 28/10/2025 10:21, Krzysztof Kozlowski wrote:
>>> On 28/10/2025 10:19, Konrad Dybcio wrote:
>>>>>>
>>>>>>>>>
>>>>>>>>> Signed-off-by: Anjelique Melendez <anjelique.melendez@oss.qualcomm.com>
>>>>>>>>> ---
>>>>>>>>> .../devicetree/bindings/soc/qcom/qcom,pmic-glink.yaml | 7 +++++++
>>>>>>>>> 1 file changed, 7 insertions(+)
>>>>>>>>>
>>>>>>>>> diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,pmic-glink.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,pmic-glink.yaml
>>>>>>>>> index 7085bf88afab..c57022109419 100644
>>>>>>>>> --- a/Documentation/devicetree/bindings/soc/qcom/qcom,pmic-glink.yaml
>>>>>>>>> +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,pmic-glink.yaml
>>>>>>>>> @@ -37,12 +37,19 @@ properties:
>>>>>>>>> - const: qcom,pmic-glink
>>>>>>>>> - items:
>>>>>>>>> - enum:
>>>>>>>>> + - qcom,kaanapali-pmic-glink
>>>>>>>>> - qcom,milos-pmic-glink
>>>>>>>>> - qcom,sm8650-pmic-glink
>>>>>>>>> - qcom,sm8750-pmic-glink
>>>>>>>>
>>>>>>>> Why qcom,kaanapali-pmic-glink is not compatible with
>>>>>>>> qcom,sm8750-pmic-glink? If Glymur is compatible with previous
>>>>>>>> generation, I would expect that here too.
>>>>>>>
>>>>>>> And again to re-iterate:
>>>>>>>
>>>>>>> If X1E is compatible with SM8550 AND:
>>>>>>> SM8750 is compatible with SM8550 THEN
>>>>>>> WHY Glymur is compatible with previous generation but Kaanapali is not
>>>>>>> compatible with previous generation?
>>>>>>
>>>>>> The announcement date does not directly correlate to 'generation'
>>>>> I don't know exactly this IP block/component, but in general these SoCs
>>>>> follow some sort of previous design, thus term "generation" is correct
>>>>> in many cases. Anyway don't be picky about wording.
>>>>>
>>>>> You can remove the generation and statement will be the same.
>>>>>
>>>>> If A is compatible with B AND
>>>>> C is compatible with B
>>>>> THEN
>>>>>
>>>>> WHY D is compatible with (A and B) but E is not
>>>>> compatible with (C and B)?
>
> I think some of the confusion is relating to both UCSI and battmngr aux
> drivers using SM8550 as compatible strings...
>
> Really we should be thinking about this as:
>
> SM8750 is compatible with SM8550 UCSI and SM8550 BATTMGR
> X1E is compatible with SM8550 UCSI and X1E BATTMGR
That's not what I said there. We don't speak here about these.
We speak ONLY about this compatible. How you map your compatible to
UCSI, BATTMGR, FOO and BAR does not matter, although I asked about
re-using of Kaanapali drvdata in one of my last replies.
>
> or
> A is compatible with B and C
> E is compatible with B and D
No, that was just because Konrad got focused on word "generation". Use
my earlier comment.
>
>
> More specifically:
>
> SM8750 has the same UCSI quirks (UCSI_DELAY_DEVICE_PDOS) as SM8550, so
> we would want to use SM8550 compatible string in UCSI driver.
> SM8750 also exposes the same features, state of health and charge
> control, in battmgr driver, so should use the SM8550 compatible string
> for battmgr driver as well.
>
> Like SM8750, X1E has the same UCSI quirks (UCSI_DELAY_DEVICE_PDOS) as
> SM8550, so will use the SM8550 compatible.
> BUT X1E only wants to have charge control exposed in battmngr driver. So
> instead of using the SM8550 compatible, we should use the X1E compatible
> in battmgr driver [1]
>
>
>
> Now we have Kaanapali and Glymur being introduced...
>
> Kaanapali IS compatible with SM8750, however since SM8750 did not
> introduce any new "quirks" or features that Kaanapali should inherit, we
> can simply define Kaanapali as compatible as SM8550 as well.
>
> Glymur IS compatible with X1E and since X1E introduces a new "feature"
> that we would like Glymur to inherit, we need to explicitly defined
> Glymur as compatible to X1E.
I don't understand whether you are explaining your patch - why it is
done like that - or agreeing that your patch is wrong.
Best regards,
Krzysztof
next prev parent reply other threads:[~2025-10-29 5:26 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-27 21:22 [PATCH v2 0/2] soc: qcom: pmic_glink: Add support for battery management running on SOCCP Anjelique Melendez
2025-10-27 21:22 ` [PATCH v2 1/2] dt-bindings: soc: qcom: qcom,pmic-glink: Add Kaanapali and Glymur compatibles Anjelique Melendez
2025-10-28 3:58 ` Bjorn Andersson
2025-10-28 8:29 ` Krzysztof Kozlowski
2025-10-28 8:36 ` Krzysztof Kozlowski
2025-10-28 9:04 ` Konrad Dybcio
2025-10-28 9:16 ` Krzysztof Kozlowski
2025-10-28 9:19 ` Konrad Dybcio
2025-10-28 9:21 ` Krzysztof Kozlowski
2025-10-28 9:30 ` Krzysztof Kozlowski
2025-10-28 22:55 ` Anjelique Melendez
2025-10-29 5:26 ` Krzysztof Kozlowski [this message]
2025-10-28 14:14 ` Bjorn Andersson
2025-11-05 13:07 ` Kamal Wadhwa
2025-10-27 21:22 ` [PATCH v2 2/2] soc: qcom: pmic_glink: Add charger PDR service path and service name to client data Anjelique Melendez
2025-10-28 9:22 ` Konrad Dybcio
2025-10-28 17:20 ` Abel Vesa
2025-10-28 23:30 ` Anjelique Melendez
2025-10-29 8:41 ` 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=c3603096-70c9-436b-9723-8a0daf1af9d6@kernel.org \
--to=krzk@kernel.org \
--cc=andersson@kernel.org \
--cc=anjelique.melendez@oss.qualcomm.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=konrad.dybcio@oss.qualcomm.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
/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