From: Rob Herring <robh@kernel.org>
To: Robert Marko <robimarko@gmail.com>
Cc: ilia.lin@kernel.org, vireshk@kernel.org, nm@ti.com,
sboyd@kernel.org, krzysztof.kozlowski+dt@linaro.org,
conor+dt@kernel.org, rafael@kernel.org, agross@kernel.org,
andersson@kernel.org, konrad.dybcio@linaro.org,
linux-pm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org,
dmitry.baryshkov@linaro.org,
Christian Marangi <ansuelsmth@gmail.com>
Subject: Re: [PATCH v3 2/3] dt-bindings: opp: opp-v2-kryo-cpu: Document named opp-microvolt property
Date: Tue, 12 Sep 2023 10:42:39 -0500 [thread overview]
Message-ID: <20230912154239.GA833216-robh@kernel.org> (raw)
In-Reply-To: <20230909165739.1036263-2-robimarko@gmail.com>
On Sat, Sep 09, 2023 at 06:56:01PM +0200, Robert Marko wrote:
> From: Christian Marangi <ansuelsmth@gmail.com>
>
> Document named opp-microvolt property for opp-v2-kryo-cpu schema.
> This property is used to declare multiple voltage ranges selected on the
> different values read from efuses. The selection is done based on the
> speed pvs values and the named opp-microvolt property is selected by the
> qcom-cpufreq-nvmem driver.
>
> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
> Signed-off-by: Robert Marko <robimarko@gmail.com>
> ---
> .../bindings/opp/opp-v2-kryo-cpu.yaml | 40 +++++++++++++++++++
> 1 file changed, 40 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml b/Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml
> index bbbad31ae4ca..6f216306a7eb 100644
> --- a/Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml
> +++ b/Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml
> @@ -63,6 +63,12 @@ patternProperties:
> 5: MSM8996SG, speedbin 1
> 6: MSM8996SG, speedbin 2
> 7-31: unused
> +
> + Bitmap for IPQ806X SoC:
> + 0: IPQ8062
> + 1: IPQ8064/IPQ8066/IPQ8068
> + 2: IPQ8065/IPQ8069
> + 3-31: unused
> enum: [0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7,
> 0x9, 0xd, 0xe, 0xf,
> 0x10, 0x20, 0x30, 0x70]
> @@ -71,6 +77,24 @@ patternProperties:
>
> required-opps: true
>
> + patternProperties:
> + '^opp-microvolt-speed[0-9]+-pvs[0-9]+$':
> + description: |
> + Named opp-microvolt property following the same generic
> + binding for named opp-microvolt.
> +
> + The correct voltage range is selected based on the values
> + in the efuse for the speed and the pvs.
What is "pvs"?
> +
> + The qcom-cpufreq-nvmem driver will read all these values
> + and assign the correct named property.
Specific driver details don't belong in binding. If there's some detail
or requirement of all consumers, then that is fine here.
> + $ref: /schemas/types.yaml#/definitions/uint32-matrix
The common binding already defines the type. Drop.
> + minItems: 1
> + maxItems: 8 # Should be enough regulators
Does this really vary from 1 to 8 entries? Looks like copy-n-paste.
> + items:
> + minItems: 1
> + maxItems: 3
Do you really need to support both single voltage and <nom min max>
forms?
Rob
next prev parent reply other threads:[~2023-09-12 15:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-09 16:56 [PATCH v3 1/3] cpufreq: qcom-nvmem: add support for IPQ8074 Robert Marko
2023-09-09 16:56 ` [PATCH v3 2/3] dt-bindings: opp: opp-v2-kryo-cpu: Document named opp-microvolt property Robert Marko
2023-09-12 15:42 ` Rob Herring [this message]
2023-09-13 19:34 ` Christian Marangi
2023-09-09 16:56 ` [PATCH v3 3/3] cpufreq: qcom-nvmem: add support for IPQ8064 Robert Marko
2023-09-09 17:13 ` Christophe JAILLET
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=20230912154239.GA833216-robh@kernel.org \
--to=robh@kernel.org \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=ansuelsmth@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@linaro.org \
--cc=ilia.lin@kernel.org \
--cc=konrad.dybcio@linaro.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=nm@ti.com \
--cc=rafael@kernel.org \
--cc=robimarko@gmail.com \
--cc=sboyd@kernel.org \
--cc=vireshk@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.