public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
From: Peng Fan <peng.fan@oss.nxp.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Krzysztof Kozlowski <krzk@kernel.org>,
	Stephen Boyd <sboyd@kernel.org>,
	Michael Turquette <mturquette@baylibre.com>,
	"linux-clk@vger.kernel.org" <linux-clk@vger.kernel.org>,
	Rob Herring <robh@kernel.org>, Conor Dooley <conor@kernel.org>,
	"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
	<devicetree@vger.kernel.org>, Peng Fan <peng.fan@nxp.com>
Subject: Re: [devicetree-org/dt-schema] schemas: introduce assigned-clock-sscs (PR #154)
Date: Thu, 13 Feb 2025 21:42:47 +0800	[thread overview]
Message-ID: <20250213134247.GB1208@localhost.localdomain> (raw)
In-Reply-To: <CAMuHMdWLWDTi1jeSOGKDAmvhGZzxAVTM-NjBJzW__1jfECHFQg@mail.gmail.com>

Hi Geert,

On Thu, Feb 13, 2025 at 11:16:31AM +0100, Geert Uytterhoeven wrote:
>CC devicetree
>
>On Fri, 24 Jan 2025 at 15:42, Krzysztof Kozlowski <krzk@kernel.org> wrote:
>> Just FYI, below is a foward of pull request for dtschema for bindings
>> adding spread spectrum to clocks. As Clock framework maintainers this
>> might be relevant to you.
>>
>> -------- Forwarded Message --------
>> Subject: [devicetree-org/dt-schema] schemas: introduce
>> assigned-clock-sscs (PR #154)
>> Date: Fri, 24 Jan 2025 04:31:30 -0800
>> From: Peng Fan <notifications@github.com>
>> Reply-To: devicetree-org/dt-schema
>> <reply+ACPRLI5YLXX27TFZX2P7NVOFT5USFEVBNHHKO4ZXHM@reply.github.com>
>> To: devicetree-org/dt-schema <dt-schema@noreply.github.com>
>> CC: Subscribed <subscribed@noreply.github.com>
>>
>> To support spread spectrum clock, introduce assigned-clock-sscs, it is
>> an uint32-matrix with format multiple elements of below
>> &lt;modfreq spreadpercentage modmethod&gt;, &lt;...&gt;
>> You can view, comment on, or merge this pull request online at:
>>
>>   https://github.com/devicetree-org/dt-schema/pull/154
>>
>> -- Commit Summary --
>>
>>   * schemas: introduce assigned-clock-sscs
>
>>   assigned-clock-sscs:
>>     $ref: /schemas/types.yaml#/definitions/uint32-matrix
>>     items:
>>       items:
>>         - description: The modulation frequency
>>         - description: The modulation depth in permyriad
>>         - description: The modulation method, down(2), up(1), center(0)
>
>Is there a way to explicitly disable it, if it was enabled by the
>firmware? See also my comment in "Re: [PATCH v2 1/4] clk: Introduce

The binding here is just to describe the parameter to configure
spread spectrum of a clk.

To disable spread spectrum, the clk_hw_set_spread_spectrum could be
used with enable as false or as you suggested using CLK_SSC_NONE_SPREAD?

>clk_hw_set_spread_spectrum".
>
>>           minimum: 0
>>           maximum: 2
>
>What's the meaning of these limits?

Modulation has three methods:
Down-spread modulation
Up-spread modulation
Center-spread modulation.

I use 2 for down, 1 for up, 0 for center here. So the limits:
min: 0, max: 2.

Thanks,
Peng

>
>[1] https://lore.kernel.org/CAMuHMdWn+sKiC1B4MF1vHwS2ArFYQXGzpYi2EcsyERPSCc9bvQ@mail.gmail.com
>
>Gr{oetje,eeting}s,
>
>                        Geert
>
>
>--
>Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
>
>In personal conversations with technical people, I call myself a hacker. But
>when I'm talking to journalists I just say "programmer" or something like that.
>                                -- Linus Torvalds
>

  reply	other threads:[~2025-02-13 12:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <devicetree-org/dt-schema/pull/154@github.com>
     [not found] ` <d385e871-f33f-4133-8347-3f108f8a6736@kernel.org>
2025-02-13 10:16   ` [devicetree-org/dt-schema] schemas: introduce assigned-clock-sscs (PR #154) Geert Uytterhoeven
2025-02-13 13:42     ` Peng Fan [this message]
2025-02-13 13:29       ` Geert Uytterhoeven
2025-02-14  6:15         ` Peng Fan

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=20250213134247.GB1208@localhost.localdomain \
    --to=peng.fan@oss.nxp.com \
    --cc=conor@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=geert@linux-m68k.org \
    --cc=krzk@kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=peng.fan@nxp.com \
    --cc=robh@kernel.org \
    --cc=sboyd@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox