From: Rob Herring <robh@kernel.org>
To: Shubhrajyoti Datta <shubhrajyoti.datta@amd.com>
Cc: linux-clk@vger.kernel.org, git@amd.com,
devicetree@vger.kernel.org, krzysztof.kozlowski+dt@linaro.org,
michal.simek@xilinx.com, shubhrajyoti.datta@gmail.com,
sboyd@kernel.org, mturquette@baylibre.com
Subject: Re: [PATCH v2 1/2] dt-bindings: clk: Add binding for versal clocking wizard
Date: Wed, 16 Nov 2022 16:09:55 -0600 [thread overview]
Message-ID: <20221116220955.GA1042427-robh@kernel.org> (raw)
In-Reply-To: <20221115145005.4747-2-shubhrajyoti.datta@amd.com>
On Tue, Nov 15, 2022 at 08:20:04PM +0530, Shubhrajyoti Datta wrote:
> The Clocking Wizard for Versal adaptive compute acceleration platforms
> generates multiple configurable number of clock outputs.
> Add device tree binding for Versal clocking wizard support.
>
> Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@amd.com>
> ---
>
> Changes in v2:
> rename the clocks clk_in1 to in1 and s_axi_clk to s_axi in dt
Why? Now you don't match the other clocking wizard. Yes, 'clk' is kind
of redundant, but making up different names for each version of h/w is
worse.
What happened to using the same schema file so we aren't defining the
same property (xlnx,nr-outputs) twice?
> Update the compatible to reflect versal
>
> .../clock/xlnx,versal-clk-wizard.yaml | 65 +++++++++++++++++++
> 1 file changed, 65 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/clock/xlnx,versal-clk-wizard.yaml
>
> diff --git a/Documentation/devicetree/bindings/clock/xlnx,versal-clk-wizard.yaml b/Documentation/devicetree/bindings/clock/xlnx,versal-clk-wizard.yaml
> new file mode 100644
> index 000000000000..aaba91a57713
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/clock/xlnx,versal-clk-wizard.yaml
> @@ -0,0 +1,65 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/clock/xlnx,versal-clk-wizard.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Xilinx Versal clocking wizard
> +
> +maintainers:
> + - Shubhrajyoti Datta <shubhrajyoti.datta@amd.com>
> +
> +description:
> + The clocking wizard is a soft ip clocking block of Xilinx Versal. The IP
> + uses the input clock frequencies and generates the requested
> + clock output.
> +
> +properties:
> + compatible:
> + const: xlnx,versal-clk-wizard
> +
> + reg:
> + maxItems: 1
> +
> + "#clock-cells":
> + const: 1
> +
> + clocks:
> + description: External input clocks to the given clock controller.
> + items:
> + - description: functional clock input
> + - description: axi clock or the interface clock
> +
> + clock-names:
> + items:
> + - const: in1
> + - const: s_axi
> +
> + xlnx,nr-outputs:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + minimum: 1
> + maximum: 8
> + description:
> + Number of outputs.
> +
> +required:
> + - compatible
> + - reg
> + - "#clock-cells"
> + - clocks
> + - clock-names
> + - xlnx,nr-outputs
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + clock-generator@40040000 {
> + compatible = "xlnx,versal-clk-wizard";
> + reg = <0x40040000 0x1000>;
> + #clock-cells = <1>;
> + clocks = <&clkc 15>, <&clkc 15>;
> + clock-names = "in1", "s_axi";
> + xlnx,nr-outputs = <6>;
> + };
> +...
> --
> 2.17.1
>
>
next prev parent reply other threads:[~2022-11-16 22:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-15 14:50 [PATCH v2 0/2] clocking-wizard: Add versal clocking wizard support Shubhrajyoti Datta
2022-11-15 14:50 ` [PATCH v2 1/2] dt-bindings: clk: Add binding for versal clocking wizard Shubhrajyoti Datta
2022-11-16 22:09 ` Rob Herring [this message]
2022-11-17 13:15 ` Krzysztof Kozlowski
2022-11-15 14:50 ` [PATCH v2 2/2] clocking-wizard: Add versal clocking wizard support Shubhrajyoti Datta
2022-11-17 16:47 ` 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=20221116220955.GA1042427-robh@kernel.org \
--to=robh@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=git@amd.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-clk@vger.kernel.org \
--cc=michal.simek@xilinx.com \
--cc=mturquette@baylibre.com \
--cc=sboyd@kernel.org \
--cc=shubhrajyoti.datta@amd.com \
--cc=shubhrajyoti.datta@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;
as well as URLs for NNTP newsgroup(s).