From: Devi Priya <quic_devipriy@quicinc.com>
To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
<agross@kernel.org>, <andersson@kernel.org>,
<konrad.dybcio@linaro.org>, <lee@kernel.org>,
<robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>,
<conor+dt@kernel.org>, <thierry.reding@gmail.com>,
<ndesaulniers@google.com>, <trix@redhat.com>, <baruch@tkos.co.il>,
<linux-arm-msm@vger.kernel.org>, <devicetree@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <llvm@lists.linux.dev>
Subject: Re: [PATCH V13 3/4] dt-bindings: mfd: qcom,tcsr: Add simple-mfd support for IPQ6018
Date: Wed, 4 Oct 2023 14:53:45 +0530 [thread overview]
Message-ID: <5d31facd-8942-d159-a1f1-cd7cae6c09a5@quicinc.com> (raw)
In-Reply-To: <60da3633-61f6-49c1-b656-2804c35d3e82@linaro.org>
On 10/4/2023 2:50 PM, Krzysztof Kozlowski wrote:
> On 04/10/2023 11:04, Devi Priya wrote:
>> Update the binding to include pwm as the child node to TCSR block and
>> add simple-mfd support for IPQ6018.
>>
>> Signed-off-by: Devi Priya <quic_devipriy@quicinc.com>
>> ---
>
> Thank you for your patch. There is something to discuss/improve.
>
>
>> reg:
>> maxItems: 1
>>
>> + ranges: true
>> +
>> + "#address-cells":
>> + const: 1
>> +
>> + "#size-cells":
>> + const: 1
>> +
>> +patternProperties:
>> + "pwm@[a-f0-9]+$":
>
> type: object
Okay
>
>> + $ref: ../pwm/qcom,ipq6018-pwm.yaml
>
> This should be full patch, so:
> $ref: /schemas/pwm/qcom.......
okay
>
>
>> +
>> required:
>> - compatible
>> - reg
>
> After required (but before additionalProperties), please add:
>
> allOf:if:then: for other compatible (so use keyword "not:") which will
> disallow pwm for them. Disallowing is via:
>
> patternProperties:
> "pwm@[a-f0-9]+$": false
>
> See Documentation/devicetree/bindings/interconnect/qcom,rpm.yaml
> around line 240. We need something similar.
Sure, will add!
>
>
>> @@ -57,8 +74,29 @@ required:
>> additionalProperties: false
>>
>> examples:
>> + # Example 1 - Syscon node found on MSM8960
>> - |
>> syscon@1a400000 {
>> compatible = "qcom,tcsr-msm8960", "syscon";
>> reg = <0x1a400000 0x100>;
>> };
>> + # Example 2 - Syscon node found on IPQ6018
>> + - |
>> + #include <dt-bindings/clock/qcom,gcc-ipq6018.h>
>> +
>> + syscon@1937000 {
>> + compatible = "qcom,tcsr-ipq6018", "syscon", "simple-mfd";
>> + reg = <0x01937000 0x21000>;
>> + #address-cells = <1>;
>> + #size-cells = <1>;
>> + ranges = <0 0x1937000 0x21000>;
>
> Please put ranges just after reg.
Sure,okay
Thanks,
Devi Priya
>
>> +
>> + pwm: pwm@a010 {
>> + compatible = "qcom,ipq6018-pwm";
>> + reg = <0xa010 0x20>;
>
> Best regards,
> Krzysztof
>
next prev parent reply other threads:[~2023-10-04 9:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-04 9:04 [PATCH V13 0/4] Add PWM support for IPQ chipsets Devi Priya
2023-10-04 9:04 ` [PATCH V13 1/4] pwm: driver for qualcomm ipq6018 pwm block Devi Priya
2023-10-04 9:04 ` [PATCH V13 2/4] dt-bindings: pwm: add IPQ6018 binding Devi Priya
2023-10-04 9:13 ` Krzysztof Kozlowski
2023-10-04 9:04 ` [PATCH V13 3/4] dt-bindings: mfd: qcom,tcsr: Add simple-mfd support for IPQ6018 Devi Priya
2023-10-04 9:20 ` Krzysztof Kozlowski
2023-10-04 9:23 ` Devi Priya [this message]
2023-10-04 9:04 ` [PATCH V13 4/4] arm64: dts: ipq6018: add pwm node Devi Priya
2023-10-04 9:43 ` Krzysztof Kozlowski
2023-10-04 9:45 ` Devi Priya
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=5d31facd-8942-d159-a1f1-cd7cae6c09a5@quicinc.com \
--to=quic_devipriy@quicinc.com \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=baruch@tkos.co.il \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=konrad.dybcio@linaro.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=lee@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=ndesaulniers@google.com \
--cc=robh+dt@kernel.org \
--cc=thierry.reding@gmail.com \
--cc=trix@redhat.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