From: Rob Herring <robh@kernel.org>
To: "Alvin Šipraga" <alvin@pqrs.dk>
Cc: "Michael Turquette" <mturquette@baylibre.com>,
"Stephen Boyd" <sboyd@kernel.org>,
"Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Alvin Šipraga" <alsi@bang-olufsen.dk>,
"Sebastian Hesselbarth" <sebastian.hesselbarth@gmail.com>,
"Rabeeh Khoury" <rabeeh@solid-run.com>,
"Jacob Siverskog" <jacob@teenage.engineering>,
"Sergej Sawazki" <sergej@taudac.com>,
linux-clk@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 2/3] dt-bindings: clock: si5351: add PLL reset mode property
Date: Tue, 17 Oct 2023 14:28:59 -0500 [thread overview]
Message-ID: <20231017192859.GA2544830-robh@kernel.org> (raw)
In-Reply-To: <20231014-alvin-clk-si5351-no-pll-reset-v4-2-a3567024007d@bang-olufsen.dk>
On Sat, Oct 14, 2023 at 08:19:42PM +0200, Alvin Šipraga wrote:
> From: Alvin Šipraga <alsi@bang-olufsen.dk>
>
> For applications where the PLL must be adjusted without glitches in the
> clock output(s), a new silabs,pll-reset-mode property is added. It
> can be used to specify whether or not the PLL should be reset after
> adjustment. Resetting is known to cause glitches.
>
> For compatibility with older device trees, it must be assumed that the
> default PLL reset mode is to unconditionally reset after adjustment.
>
> Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
> Cc: Rabeeh Khoury <rabeeh@solid-run.com>
> Cc: Jacob Siverskog <jacob@teenage.engineering>
> Cc: Sergej Sawazki <sergej@taudac.com>
> Signed-off-by: Alvin Šipraga <alsi@bang-olufsen.dk>
> ---
> .../devicetree/bindings/clock/silabs,si5351.yaml | 24 ++++++++++++++++++++++
> 1 file changed, 24 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/clock/silabs,si5351.yaml b/Documentation/devicetree/bindings/clock/silabs,si5351.yaml
> index 16d1142c4a2f..9621b534f30e 100644
> --- a/Documentation/devicetree/bindings/clock/silabs,si5351.yaml
> +++ b/Documentation/devicetree/bindings/clock/silabs,si5351.yaml
> @@ -60,6 +60,27 @@ properties:
> - description: PLL source, XTAL (0) or CLKIN (1, Si5351C only).
> enum: [ 0, 1 ]
>
> + silabs,pll-reset-mode:
> + $ref: /schemas/types.yaml#/definitions/uint32-matrix
> + minItems: 1
If there's only 2 PLLs, then the maximum is 2 entries, right? So
'maxItems: 2' in addition.
> + description: |
Don't need '|'
> + A list of cell pairs containing a PLL index and its reset mode.
> + items:
> + items:
> + - description: PLL A (0) or PLL B (1)
> + enum: [ 0, 1 ]
> + - description: |
> + Reset mode for the PLL. Mode can be one of:
> +
> + 0 - reset whenever PLL rate is adjusted (default mode)
> + 1 - do not reset when PLL rate is adjusted
> +
> + In mode 1, the PLL is only reset if the silabs,pll-reset is
> + specified in one of the clock output child nodes that also sources
> + the PLL. This mode may be preferable if output clocks are expected
> + to be adjusted without glitches.
> + enum: [ 0, 1 ]
> +
> patternProperties:
> "^clkout@[0-7]$":
> type: object
> @@ -199,6 +220,9 @@ examples:
> /* Use XTAL input as source of PLL0 and PLL1 */
> silabs,pll-source = <0 0>, <1 0>;
>
> + /* Don't reset PLL1 on rate adjustment */
> + silabs,pll-reset-mode = <1 1>;
> +
> /*
> * Overwrite CLK0 configuration with:
> * - 8 mA output drive strength
>
> --
> 2.42.0
>
next prev parent reply other threads:[~2023-10-17 19:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-14 18:19 [PATCH v4 0/3] clk: si5351: add option to adjust PLL without glitches Alvin Šipraga
2023-10-14 18:19 ` [PATCH v4 1/3] dt-bindings: clock: si5351: convert to yaml Alvin Šipraga
2023-10-17 19:25 ` Rob Herring
2023-10-14 18:19 ` [PATCH v4 2/3] dt-bindings: clock: si5351: add PLL reset mode property Alvin Šipraga
2023-10-17 19:28 ` Rob Herring [this message]
2023-10-14 18:19 ` [PATCH v4 3/3] clk: si5351: allow PLLs to be adjusted without reset Alvin Šipraga
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=20231017192859.GA2544830-robh@kernel.org \
--to=robh@kernel.org \
--cc=alsi@bang-olufsen.dk \
--cc=alvin@pqrs.dk \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jacob@teenage.engineering \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=rabeeh@solid-run.com \
--cc=sboyd@kernel.org \
--cc=sebastian.hesselbarth@gmail.com \
--cc=sergej@taudac.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 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.