From: Konrad Dybcio <konrad.dybcio@linaro.org>
To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
Andy Gross <agross@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Georgi Djakov <djakov@kernel.org>,
Rob Herring <robh+dt@kernel.org>,
Thara Gopinath <thara.gopinath@gmail.com>
Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/3] dt-bindings: interconnect: qcom,msm8998-bwmon: Add global registers
Date: Mon, 6 Mar 2023 10:54:37 +0100 [thread overview]
Message-ID: <bd4caf3d-3994-da96-2d3f-175d429136d1@linaro.org> (raw)
In-Reply-To: <0e74ad9a-2333-ea9e-b569-1bf8c965b217@linaro.org>
On 5.03.2023 15:52, Krzysztof Kozlowski wrote:
> On 04/03/2023 16:39, Konrad Dybcio wrote:
>> The BWMON has two sets of registers: one for handling the monitor itself
>> and one called "global", which we didn't care about before, as on newer
>> SoCs it was made contiguous with (but not the same as) the monitor's
>> register range. Describe it.
>>
>> Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
>> ---
>> .../bindings/interconnect/qcom,msm8998-bwmon.yaml | 28 ++++++++++++++++++----
>> 1 file changed, 24 insertions(+), 4 deletions(-)
>>
>> diff --git a/Documentation/devicetree/bindings/interconnect/qcom,msm8998-bwmon.yaml b/Documentation/devicetree/bindings/interconnect/qcom,msm8998-bwmon.yaml
>> index 12a0d3ecbabb..6dd0cb0a1f43 100644
>> --- a/Documentation/devicetree/bindings/interconnect/qcom,msm8998-bwmon.yaml
>> +++ b/Documentation/devicetree/bindings/interconnect/qcom,msm8998-bwmon.yaml
>> @@ -49,9 +49,13 @@ properties:
>> type: object
>>
>> reg:
>> - # BWMON v4 (currently described) and BWMON v5 use one register address
>> - # space. BWMON v2 uses two register spaces - not yet described.
>> - maxItems: 1
>> + # BWMON v5 uses one register address space, v1-v4 use one or two.
>> + minItems: 1
>> + maxItems: 2
>> +
>> + reg-names:
>> + minItems: 1
>> + maxItems: 2
>>
>> required:
>> - compatible
>> @@ -63,6 +67,21 @@ required:
>>
>> additionalProperties: false
>>
>> +allOf:
>> + - if:
>> + properties:
>> + compatible:
>> + const: qcom,msm8998-bwmon
>> + then:
>> + properties:
>> + reg:
>> + minItems: 2
>> +
>> + reg-names:
>> + items:
>> + - const: monitor
>> + - const: global
>
> else:
> reg:
> maxItems: 1
>
> and either disallow reg-names or move it to the top-level.
Disallowing makes more sense in this case imo, will do.
>
>> +
>> examples:
>> - |
>> #include <dt-bindings/interconnect/qcom,sdm845.h>
>> @@ -70,7 +89,8 @@ examples:
>>
>> pmu@1436400 {
>> compatible = "qcom,sdm845-bwmon", "qcom,msm8998-bwmon";
>> - reg = <0x01436400 0x600>;
>> + reg = <0x01436400 0x600>, <0x01436300 0x200>;
>
> That's not correct for sdm845. It's only one address space for sdm845.
Ack, leftover from an old version again..
Konrad
>
>
> Best regards,
> Krzysztof
>
next prev parent reply other threads:[~2023-03-06 9:54 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-04 15:39 [PATCH 0/3] Fix BWMONv4 for <SDM845 Konrad Dybcio
2023-03-04 15:39 ` [PATCH 1/3] dt-bindings: interconnect: qcom,msm8998-bwmon: Add global registers Konrad Dybcio
2023-03-05 14:52 ` Krzysztof Kozlowski
2023-03-06 9:54 ` Konrad Dybcio [this message]
2023-03-04 15:39 ` [PATCH 2/3] soc: qcom: icc-bwmon: Handle global registers correctly Konrad Dybcio
2023-03-05 15:06 ` Krzysztof Kozlowski
2023-03-06 10:06 ` Konrad Dybcio
2023-03-06 12:09 ` Krzysztof Kozlowski
2023-03-06 12:17 ` Konrad Dybcio
2023-03-06 12:36 ` Krzysztof Kozlowski
2023-03-04 15:39 ` [PATCH 3/3] soc: qcom: icc-bwmon: Remove unused struct member Konrad Dybcio
2023-03-05 15:07 ` Krzysztof Kozlowski
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=bd4caf3d-3994-da96-2d3f-175d429136d1@linaro.org \
--to=konrad.dybcio@linaro.org \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=djakov@kernel.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=robh+dt@kernel.org \
--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