From: Stephen Boyd <sboyd@kernel.org>
To: Marek Vasut <marex@denx.de>, linux-clk@vger.kernel.org
Cc: devicetree@vger.kernel.org, Marek Vasut <marex@denx.de>,
Michael Turquette <mturquette@baylibre.com>,
Rob Herring <robh+dt@kernel.org>
Subject: Re: [PATCH 1/2] dt-bindings: clk: rs9: Add Renesas 9-series I2C PCIe clock generator
Date: Thu, 17 Feb 2022 15:39:51 -0800 [thread overview]
Message-ID: <20220217233954.6C8ABC340E8@smtp.kernel.org> (raw)
In-Reply-To: <20220213173310.152230-1-marex@denx.de>
Quoting Marek Vasut (2022-02-13 09:33:09)
> diff --git a/Documentation/devicetree/bindings/clock/renesas,9series.yaml b/Documentation/devicetree/bindings/clock/renesas,9series.yaml
> new file mode 100644
> index 0000000000000..774053748d9f0
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/clock/renesas,9series.yaml
> @@ -0,0 +1,102 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/clock/renesas,9series.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Binding for Renesas 9-series I2C PCIe clock generators
> +
> +description: |
> + The Renesas 9-series are I2C PCIe clock generators providing
> + from 1 to 20 output clocks.
> +
> + When referencing the provided clock in the DT using phandle
> + and clock specifier, the following mapping applies:
> +
> + - 9FGV0241:
> + 0 -- DIF0
> + 1 -- DIF1
> +
> +maintainers:
> + - Marek Vasut <marex@denx.de>
> +
> +properties:
> + compatible:
> + enum:
> + - renesas,9fgv0241
> +
> + reg:
> + description: I2C device address
> + enum: [ 0x68, 0x6a ]
> +
> + '#clock-cells':
> + const: 1
> +
> + clocks:
> + items:
> + - description: XTal input clock
> +
> + renesas,out-amplitude:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + enum: [ 600000, 700000, 800000, 900000 ]
> + description: Output clock signal amplitude in uV
> +
> + renesas,out-spread-spectrum:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + enum: [ 100000, 99750, 99500 ]
> + description: Output clock down spread in pcm
> +
> +patternProperties:
> + "^DIF[0-19]$":
> + type: object
> + description:
> + Description of one of the outputs (DIF0..DIF19).
> + properties:
> + renesas,slew-rate:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + enum: [ 2000000, 3000000 ]
> + description: Output clock slew rate select in V/ns
> + additionalProperties: false
> +
> +required:
> + - compatible
> + - reg
> + - '#clock-cells'
Can it operate without an input xtal?
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + /* 25MHz reference crystal */
> + ref25: ref25m {
> + compatible = "fixed-clock";
> + #clock-cells = <0>;
> + clock-frequency = <25000000>;
> + };
> +
> + i2c@0 {
> + reg = <0x0 0x100>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + rs9: clock-generator@6a {
> + compatible = "renesas,9fgv0241";
> + reg = <0x6a>;
> + #clock-cells = <1>;
> +
> + clocks = <&ref25m>;
> +
> + DIF0 {
> + renesas,slew-rate = <3000000>;
> + };
> + };
> + };
> +
> + /* Consumer referencing the 9FGV0241 pin DIF0 */
Consumers are typically left out of clk bindings.
> + consumer {
> + /* ... */
> + clocks = <&rs9 0>;
> + /* ... */
> + };
> +
> +...
> --
> 2.34.1
>
next prev parent reply other threads:[~2022-02-17 23:47 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-13 17:33 [PATCH 1/2] dt-bindings: clk: rs9: Add Renesas 9-series I2C PCIe clock generator Marek Vasut
2022-02-13 17:33 ` [PATCH 2/2] clk: rs9: Add Renesas 9-series PCIe clock generator driver Marek Vasut
2022-02-17 23:45 ` Stephen Boyd
2022-02-18 1:26 ` Marek Vasut
2022-02-18 22:15 ` Stephen Boyd
2022-02-19 1:11 ` Marek Vasut
2022-02-19 3:05 ` Stephen Boyd
2022-02-19 3:27 ` Marek Vasut
2022-02-17 23:39 ` Stephen Boyd [this message]
2022-02-18 1:09 ` [PATCH 1/2] dt-bindings: clk: rs9: Add Renesas 9-series I2C PCIe clock generator Marek Vasut
2022-02-18 1:28 ` Stephen Boyd
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=20220217233954.6C8ABC340E8@smtp.kernel.org \
--to=sboyd@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=marex@denx.de \
--cc=mturquette@baylibre.com \
--cc=robh+dt@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.