public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [devicetree-org/dt-schema] schemas: introduce assigned-clock-sscs (PR #154)
       [not found] ` <d385e871-f33f-4133-8347-3f108f8a6736@kernel.org>
@ 2025-02-13 10:16   ` Geert Uytterhoeven
  2025-02-13 13:42     ` Peng Fan
  0 siblings, 1 reply; 4+ messages in thread
From: Geert Uytterhoeven @ 2025-02-13 10:16 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Stephen Boyd, Michael Turquette, linux-clk@vger.kernel.org,
	Rob Herring, Conor Dooley,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	Peng Fan

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
clk_hw_set_spread_spectrum".

>           minimum: 0
>           maximum: 2

What's the meaning of these limits?

[1] https://lore.kernel.or/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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [devicetree-org/dt-schema] schemas: introduce assigned-clock-sscs (PR #154)
  2025-02-13 13:42     ` Peng Fan
@ 2025-02-13 13:29       ` Geert Uytterhoeven
  2025-02-14  6:15         ` Peng Fan
  0 siblings, 1 reply; 4+ messages in thread
From: Geert Uytterhoeven @ 2025-02-13 13:29 UTC (permalink / raw)
  To: Peng Fan
  Cc: Krzysztof Kozlowski, Stephen Boyd, Michael Turquette,
	linux-clk@vger.kernel.org, Rob Herring, Conor Dooley,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	Peng Fan

Hi Peng,

On Thu, 13 Feb 2025 at 13:35, Peng Fan <peng.fan@oss.nxp.com> wrote:
> On Thu, Feb 13, 2025 at 11:16:31AM +0100, Geert Uytterhoeven wrote:
> >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?

But the bindings don't have an enable flag...

> >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.

Silly me, they apply to the last description...

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [devicetree-org/dt-schema] schemas: introduce assigned-clock-sscs (PR #154)
  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
  2025-02-13 13:29       ` Geert Uytterhoeven
  0 siblings, 1 reply; 4+ messages in thread
From: Peng Fan @ 2025-02-13 13:42 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Krzysztof Kozlowski, Stephen Boyd, Michael Turquette,
	linux-clk@vger.kernel.org, Rob Herring, Conor Dooley,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	Peng Fan

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
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [devicetree-org/dt-schema] schemas: introduce assigned-clock-sscs (PR #154)
  2025-02-13 13:29       ` Geert Uytterhoeven
@ 2025-02-14  6:15         ` Peng Fan
  0 siblings, 0 replies; 4+ messages in thread
From: Peng Fan @ 2025-02-14  6:15 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Krzysztof Kozlowski, Stephen Boyd, Michael Turquette,
	linux-clk@vger.kernel.org, Rob Herring, Conor Dooley,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	Peng Fan

On Thu, Feb 13, 2025 at 02:29:41PM +0100, Geert Uytterhoeven wrote:
>Hi Peng,
>
>On Thu, 13 Feb 2025 at 13:35, Peng Fan <peng.fan@oss.nxp.com> wrote:
>> On Thu, Feb 13, 2025 at 11:16:31AM +0100, Geert Uytterhoeven wrote:
>> >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?
>
>But the bindings don't have an enable flag...

The modulation method maybe updated to
down(3), up(2), center(1), no modulation(0).

Then no need a separate entry for enable.

Thanks,
Peng.

>
>> >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.
>
>Silly me, they apply to the last description...
>
>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
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-02-14  5:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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
2025-02-13 13:29       ` Geert Uytterhoeven
2025-02-14  6:15         ` Peng Fan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox