mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: AngeloGioacchino Del Regno 
	<angelogioacchino.delregno@collabora.com>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
Cc: marijn.suijten@somainline.org, konrad.dybcio@somainline.org,
	kernel@collabora.com, andersson@kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-msm@vger.kernel.org, robh+dt@kernel.org,
	agross@kernel.org
Subject: Re: [PATCH v2 1/2] dt-bindings: soc: qcom: Add bindings for Qualcomm Ramp Controller
Date: Tue, 15 Nov 2022 16:16:58 +0100	[thread overview]
Message-ID: <5c0dfcad-956d-e3cd-fd06-7671b85c4ae7@linaro.org> (raw)
In-Reply-To: <3e9deab6-58ca-3a58-5f06-c1e4d181bc94@collabora.com>

On 15/11/2022 15:44, AngeloGioacchino Del Regno wrote:

>>>> Please check and re-submit.
>>>>
>>>
>>> I'm unsure about what I should do about this one.
>>> This is a power-controller, but does *not* need any #power-domain-cells, as it is
>>> standalone and doesn't require being attached to anything.
>>
>> power-domain-cells are for power domain providers, not consumers. The
>> generic binding expect that nodes called power-controller are exactly
>> like that.
>>
>> Solutions could be:
>> 1. Rename the node to something else. I cannot deduct the type of the
>> device based on description. What is "sequence ID" and how is it even
>> closely related to power control?
> 
> This uC is mainly controlling DCVS, automagically plays with voltages for
> each ramp up/down step and from what I understand also decides to shut down
> or bring up *power* to "certain clocks" before ungating (CPU related, mainly
> big cluster).
> This also interacts with LMH - setting the LMH part makes it possible to
> later use CPR (otherwise CPR errors out internally and won't start, as it
> requires this controller, SAW and LMH to be set up in order to work).
> 
> What I've seen is that without it I can't bring up the big cluster at all,
> not even at minimum frequency, as the HF2PLL (a clock source for that cluster)
> will not power up.
> All it takes is to initialize these params and start the controller, then
> everything goes as it should.
> 
> If you're wondering why my explanation may not be particularly satisfying,
> that's because downstream contains practically no information about this
> one, apart from a bunch of lines of code and because this controller is
> just a big black box.
> 
>>
>> 2. Narrow the node name in power-domain.yaml which would require changes
>> in multiple DTS and bindings.
>>
>> 3. Do not require power-domain-cells for power-controllers, only for
>> power-domains.
>>
> 
> Solutions 2 and 3... well, I don't think that this would be really feasible
> as I envision this being the one and only driver that will ever require
> that kind of thing.
> Also, this programming was later moved to bootloaders and the only SoCs that
> will ever require this are MSM8956/76, MSM8953 and.. I think MSM8952 as well,
> but nothing more.
> 
> Even if I can imagine the answer, I'm still tempted to ask: can we eventually
> just name it ramp-controller@xxxx or qcom-rc@xxxx or something "special" like
> that to overcome to this binding issue?

So maybe "cpu-power-controller"? This should already help for this warning.

Best regards,
Krzysztof


  reply	other threads:[~2022-11-15 15:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-04 14:22 [PATCH v2 0/2] Qualcomm Ramp Controller and MSM8976 config AngeloGioacchino Del Regno
2022-11-04 14:22 ` [PATCH v2 1/2] dt-bindings: soc: qcom: Add bindings for Qualcomm Ramp Controller AngeloGioacchino Del Regno
2022-11-04 14:32   ` Krzysztof Kozlowski
2022-11-04 17:54   ` Rob Herring
2022-11-11 10:05     ` AngeloGioacchino Del Regno
2022-11-15 13:36       ` Krzysztof Kozlowski
2022-11-15 14:44         ` AngeloGioacchino Del Regno
2022-11-15 15:16           ` Krzysztof Kozlowski [this message]
2022-11-15 15:34             ` AngeloGioacchino Del Regno
2022-11-04 14:22 ` [PATCH v2 2/2] soc: qcom: Add Qualcomm Ramp Controller driver AngeloGioacchino Del Regno
2022-11-11 20:05   ` kernel test robot

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=5c0dfcad-956d-e3cd-fd06-7671b85c4ae7@linaro.org \
    --to=krzysztof.kozlowski@linaro.org \
    --cc=agross@kernel.org \
    --cc=andersson@kernel.org \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=devicetree@vger.kernel.org \
    --cc=kernel@collabora.com \
    --cc=konrad.dybcio@somainline.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marijn.suijten@somainline.org \
    --cc=robh+dt@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

all inboxes | Powered by JetHome®