[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250108234807.GA1247672-robh@kernel.org>
Date: Wed, 8 Jan 2025 17:48:07 -0600
From: Rob Herring <robh@...nel.org>
To: Dario Binacchi <dario.binacchi@...rulasolutions.com>
Cc: linux-kernel@...r.kernel.org, linux-amarula@...rulasolutions.com,
Alexandre Torgue <alexandre.torgue@...s.st.com>,
Conor Dooley <conor+dt@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Maxime Coquelin <mcoquelin.stm32@...il.com>,
Michael Turquette <mturquette@...libre.com>,
Stephen Boyd <sboyd@...nel.org>, devicetree@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-clk@...r.kernel.org,
linux-stm32@...md-mailman.stormreply.com
Subject: Re: [PATCH 4/6] dt-bindings: clock: st,stm32-rcc: support spread
spectrum clocking
On Sun, Jan 05, 2025 at 07:14:16PM +0100, Dario Binacchi wrote:
> The addition of DT bindings for enabling and tuning spread spectrum
> clocking generation is available only for the main PLL.
>
> Signed-off-by: Dario Binacchi <dario.binacchi@...rulasolutions.com>
> ---
>
> .../bindings/clock/st,stm32-rcc.yaml | 27 +++++++++++++++++++
> 1 file changed, 27 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/clock/st,stm32-rcc.yaml b/Documentation/devicetree/bindings/clock/st,stm32-rcc.yaml
> index ae9e5b26d876..c345d3ff3fc4 100644
> --- a/Documentation/devicetree/bindings/clock/st,stm32-rcc.yaml
> +++ b/Documentation/devicetree/bindings/clock/st,stm32-rcc.yaml
> @@ -77,6 +77,26 @@ properties:
> Phandle to system configuration controller. It can be used to control the
> power domain circuitry.
>
> + st,ssc-modfreq-hz:
> + description:
> + The modulation frequency for main PLL (in Hz)
No constraints?
> +
> + st,ssc-moddepth-permyriad:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description:
> + The modulation rate for main PLL (in permyriad, i.e. 0.01%)
> + minimum: 25
> + maximum: 200
> +
> + st,ssc-modmethod:
> + $ref: /schemas/types.yaml#/definitions/non-unique-string-array
> + description:
> + The modulation techniques for main PLL.
> + items:
> + enum:
> + - center-spread
> + - down-spread
What's the default? If there's only 2 possibilities, then you can use a
boolean instead. Though I assume you want to support spread-spectrum
disabled.
Are there dependencies between these properties?
> +
> required:
> - compatible
> - reg
> @@ -97,6 +117,10 @@ allOf:
> const: 1
> description: |
> The clock index for the specified type.
> + st,ssc-modfreq-hz: false
> + st,ssc-moddepth-permyriad: false
> + st,ssc-modmethod: false
> +
> else:
> properties:
> '#clock-cells':
> @@ -118,6 +142,9 @@ examples:
> reg = <0x40023800 0x400>;
> clocks = <&clk_hse>, <&clk_i2s_ckin>;
> st,syscfg = <&pwrcfg>;
> + st,ssc-modfreq-hz = <10000>;
> + st,ssc-moddepth-permyriad = <200>;
> + st,ssc-modmethod = "center-spread";
> };
>
> - |
> --
> 2.43.0
>
Powered by blists - more mailing lists