From: Stephen Boyd <sboyd@kernel.org>
To: Conor Dooley <conor+dt@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Michael Turquette <mturquette@baylibre.com>,
Rob Herring <robh@kernel.org>,
Sascha Hauer <s.hauer@pengutronix.de>
Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org,
devicetree@vger.kernel.org, kernel@pengutronix.de,
"Alvin Šipraga" <alsi@bang-olufsen.dk>,
"Sascha Hauer" <s.hauer@pengutronix.de>
Subject: Re: [PATCH v4 2/3] dt-bindings: clock: add TI CDCE6214 binding
Date: Mon, 05 May 2025 10:50:49 -0700 [thread overview]
Message-ID: <3ba53493700561923c4ea9ab53a1a272@kernel.org> (raw)
In-Reply-To: <20250430-clk-cdce6214-v4-2-9f15e7126ac6@pengutronix.de>
Quoting Sascha Hauer (2025-04-30 02:01:35)
> diff --git a/Documentation/devicetree/bindings/clock/ti,cdce6214.yaml b/Documentation/devicetree/bindings/clock/ti,cdce6214.yaml
> new file mode 100644
> index 0000000000000..d4a3a3df9ceb9
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/clock/ti,cdce6214.yaml
> @@ -0,0 +1,155 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/clock/ti,cdce6214.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: TI CDCE6214 programmable clock generator with PLL
> +
> +maintainers:
> + - Sascha Hauer <s.hauer@pengutronix.de>
> +
> +description: >
> + Ultra-Low Power Clock Generator With One PLL, Four Differential Outputs,
> + Two Inputs, and Internal EEPROM
> +
> + https://www.ti.com/product/CDCE6214
> +
> +properties:
> + compatible:
> + enum:
> + - ti,cdce6214
> +
> + reg:
> + maxItems: 1
> +
> + clocks:
> + minItems: 1
> + maxItems: 2
> +
> + clock-names:
> + minItems: 1
> + maxItems: 1
> + items:
> + enum: [ priref, secref ]
> +
> + '#address-cells':
> + const: 1
> +
> + '#size-cells':
> + const: 0
> +
> + '#clock-cells':
> + const: 1
> +
> +patternProperties:
> + '^clk@[0-1]$':
> + type: object
> + description:
> + optional child node that can be used to specify input pin parameters. The reg
> + properties match the CDCE6214_CLK_* defines.
Presumably the EEPROM is typically used to configure all this stuff? Do
you actually need to program this from the kernel, or are you
implementing all this for development purposes?
> +
> + additionalProperties: false
> +
> + properties:
> + reg:
> + description:
> + clock input identifier.
> + minimum: 0
> + maximum: 1
> +
> + ti,clkin-fmt:
> + enum: [ lvcmos, xtal, differential ]
> + description:
> + Clock input format.
> +
> + ti,xo-cload-femtofarads:
> + description:
> + Selects load cap for XO in femto Farad (fF). Up to 9000fF
> + minimum: 3000
> + maximum: 9000
> +
> + ti,xo-bias-current-microamp:
> + description:
> + Bias current setting of the XO.
> + minimum: 0
> + maximum: 1758
> +
> + '^clk@[2-9]$':
> + type: object
> + description:
> + optional child node that can be used to specify output pin parameters. The reg
> + properties match the CDCE6214_CLK_* defines.
> +
> + additionalProperties: false
> +
> + properties:
> + reg:
> + description:
> + clock output identifier.
> + minimum: 2
> + maximum: 9
> +
> + ti,clkout-fmt:
> + enum: [ cmos, lvds, lp-hcsl ]
> + description:
> + Clock input format.
Is it "Clock output format"?
> +
> + ti,cmosn-mode:
> + enum: [ disabled, high, low ]
> + description:
> + CMOSN output mode.
> +
> + ti,cmosp-mode:
> + enum: [ disabled, high, low ]
> + description:
> + CMOSP output mode.
Would 'disabled' be the absence of the property? I think we could just
have ti,cmosn-mode = <0> or <1> for low or high.
> +
> +required:
> + - compatible
> + - reg
> + - clocks
> + - '#clock-cells'
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + clock-generator@67 {
> + compatible = "ti,cdce6214";
> + reg = <0x67>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> + #clock-cells = <1>;
> + clocks = <&clock_ref25m>;
> + clock-names = "secref";
> +
> + clk@1 {
> + reg = <1>; // CDCE6214_CLK_SECREF
> + ti,clkin-fmt = "xtal";
> + ti,xo-cload-femtofarads = <4400>;
> + ti,xo-bias-current-microamp = <295>;
> + };
> +
> + clk@3 {
> + reg = <3>; // CDCE6214_CLK_OUT1
> + ti,clkout-fmt = "cmos";
> + ti,cmosp-mode = "high";
> + ti,cmosn-mode = "low";
> + };
> +
> + clk@4 {
> + reg = <4>; // CDCE6214_CLK_OUT2
> + ti,clkout-fmt = "lvds";
> + };
> +
> + clk@6 {
> + reg = <6>; // CDCE6214_CLK_OUT4
Can you use the defines instead of numbers so we know they're the same?
> + ti,clkout-fmt = "lp-hcsl";
> + };
> + };
> + };
next prev parent reply other threads:[~2025-05-05 17:50 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-30 9:01 [PATCH v4 0/3] clk: add support for TI CDCE6214 Sascha Hauer
2025-04-30 9:01 ` [PATCH v4 1/3] clk: make determine_rate optional for non reparenting clocks Sascha Hauer
2025-04-30 22:15 ` Stephen Boyd
2025-04-30 9:01 ` [PATCH v4 2/3] dt-bindings: clock: add TI CDCE6214 binding Sascha Hauer
2025-05-01 11:54 ` Krzysztof Kozlowski
2025-05-05 17:50 ` Stephen Boyd [this message]
2025-05-07 8:05 ` Sascha Hauer
2025-05-07 20:11 ` Stephen Boyd
2025-05-08 7:22 ` Sascha Hauer
2025-06-16 10:02 ` Sascha Hauer
2025-04-30 9:01 ` [PATCH v4 3/3] clk: add TI CDCE6214 clock driver Sascha Hauer
2025-05-01 18:48 ` Stephen Boyd
2025-05-05 10:02 ` Sascha Hauer
2025-05-07 7:07 ` kernel test robot
2025-05-09 6:39 ` [PATCH v4 0/3] clk: add support for TI CDCE6214 Sascha Hauer
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=3ba53493700561923c4ea9ab53a1a272@kernel.org \
--to=sboyd@kernel.org \
--cc=alsi@bang-olufsen.dk \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=kernel@pengutronix.de \
--cc=krzk+dt@kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=robh@kernel.org \
--cc=s.hauer@pengutronix.de \
/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).