From: Rob Herring <robh@kernel.org>
To: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Cc: mturquette@baylibre.com, sboyd@kernel.org,
jassisinghbrar@gmail.com, viresh.kumar@linaro.org,
ulf.hansson@linaro.org, bjorn.andersson@linaro.org,
agross@kernel.org, linux-arm-msm@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org,
devicetree@vger.kernel.org
Subject: Re: [PATCH v2 1/5] dt-bindings: mailbox: Add binding for SDX55 APCS
Date: Tue, 12 Jan 2021 21:27:52 -0600 [thread overview]
Message-ID: <20210113032752.GA1472520@robh.at.kernel.org> (raw)
In-Reply-To: <20210108113233.75418-2-manivannan.sadhasivam@linaro.org>
On Fri, Jan 08, 2021 at 05:02:29PM +0530, Manivannan Sadhasivam wrote:
> Add devicetree YAML binding for SDX55 APCS GCC block. The APCS block
> acts as the mailbox controller and also provides a clock output and
> takes 3 clock sources (pll, aux, ref) as input.
>
> Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
> ---
> .../mailbox/qcom,apcs-kpss-global.yaml | 59 ++++++++++++++++---
> 1 file changed, 50 insertions(+), 9 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml
> index ffd09b664ff5..3c75ea0b6040 100644
> --- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml
> +++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml
> @@ -27,26 +27,24 @@ properties:
> - qcom,sdm660-apcs-hmss-global
> - qcom,sdm845-apss-shared
> - qcom,sm8150-apss-shared
> + - qcom,sdx55-apcs-gcc
>
> reg:
> maxItems: 1
>
> - clocks:
> - description: phandles to the parent clocks of the clock driver
> - items:
> - - description: primary pll parent of the clock driver
> - - description: auxiliary parent
Keep this here and add the 3rd item and:
minItems: 2
Then the if/then can just restrict things to 2 or 3 items.
> -
> '#mbox-cells':
> const: 1
>
> '#clock-cells':
> const: 0
>
> + clocks:
> + minItems: 2
> + maxItems: 3
> +
> clock-names:
> - items:
> - - const: pll
> - - const: aux
> + minItems: 2
> + maxItems: 3
>
> required:
> - compatible
> @@ -55,6 +53,49 @@ required:
>
> additionalProperties: false
>
> +allOf:
> + - if:
> + properties:
> + compatible:
> + enum:
> + - qcom,ipq6018-apcs-apps-global
> + - qcom,ipq8074-apcs-apps-global
> + - qcom,msm8916-apcs-kpss-global
> + - qcom,msm8994-apcs-kpss-global
> + - qcom,msm8996-apcs-hmss-global
> + - qcom,msm8998-apcs-hmss-global
> + - qcom,qcs404-apcs-apps-global
> + - qcom,sc7180-apss-shared
> + - qcom,sdm660-apcs-hmss-global
> + - qcom,sdm845-apss-shared
> + - qcom,sm8150-apss-shared
> + then:
> + properties:
> + clocks:
> + items:
> + - description: Primary PLL parent of the clock driver
> + - description: Auxiliary parent
> + clock-names:
> + items:
> + - const: pll
> + - const: aux
> + - if:
> + properties:
> + compatible:
> + enum:
> + - qcom,sdx55-apcs-gcc
> + then:
> + properties:
> + clocks:
> + items:
> + - description: Primary PLL parent of the clock driver
> + - description: Auxiliary parent
> + - description: Reference clock
> + clock-names:
> + items:
> + - const: pll
> + - const: aux
> + - const: ref
> examples:
>
> # Example apcs with msm8996
> --
> 2.25.1
>
next prev parent reply other threads:[~2021-01-13 3:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-08 11:32 [PATCH v2 0/5] Add APCS support for SDX55 Manivannan Sadhasivam
2021-01-08 11:32 ` [PATCH v2 1/5] dt-bindings: mailbox: Add binding for SDX55 APCS Manivannan Sadhasivam
2021-01-13 3:27 ` Rob Herring [this message]
2021-01-08 11:32 ` [PATCH v2 2/5] mailbox: qcom: Add support for SDX55 APCS IPC Manivannan Sadhasivam
2021-01-08 11:32 ` [PATCH v2 3/5] dt-bindings: clock: Add Qualcomm A7 PLL binding Manivannan Sadhasivam
2021-01-13 3:31 ` Rob Herring
2021-01-08 11:32 ` [PATCH v2 4/5] clk: qcom: Add A7 PLL support Manivannan Sadhasivam
2021-01-13 7:37 ` Stephen Boyd
2021-01-08 11:32 ` [PATCH v2 5/5] clk: qcom: Add SDX55 APCS clock controller support Manivannan Sadhasivam
2021-01-13 7:37 ` Stephen Boyd
2021-01-13 8:29 ` Manivannan Sadhasivam
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=20210113032752.GA1472520@robh.at.kernel.org \
--to=robh@kernel.org \
--cc=agross@kernel.org \
--cc=bjorn.andersson@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=jassisinghbrar@gmail.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=manivannan.sadhasivam@linaro.org \
--cc=mturquette@baylibre.com \
--cc=sboyd@kernel.org \
--cc=ulf.hansson@linaro.org \
--cc=viresh.kumar@linaro.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