[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3c2d9f76-12bf-4d9f-afcd-9c4ae3a4d2a0@kernel.org>
Date: Tue, 19 Nov 2024 14:53:35 +0100
From: Krzysztof Kozlowski <krzk@...nel.org>
To: Dario Binacchi <dario.binacchi@...rulasolutions.com>,
Peng Fan <peng.fan@....com>
Cc: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-amarula@...rulasolutions.com" <linux-amarula@...rulasolutions.com>,
Abel Vesa <abelvesa@...nel.org>, Conor Dooley <conor+dt@...nel.org>,
Fabio Estevam <festevam@...il.com>, Krzysztof Kozlowski
<krzk+dt@...nel.org>, Michael Turquette <mturquette@...libre.com>,
Pengutronix Kernel Team <kernel@...gutronix.de>,
Rob Herring <robh@...nel.org>, Sascha Hauer <s.hauer@...gutronix.de>,
Shawn Guo <shawnguo@...nel.org>, Stephen Boyd <sboyd@...nel.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"imx@...ts.linux.dev" <imx@...ts.linux.dev>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"linux-clk@...r.kernel.org" <linux-clk@...r.kernel.org>
Subject: Re: [PATCH v3 1/8] dt-bindings: clock: imx8m-clock: support spread
spectrum clocking
On 11/11/2024 12:57, Dario Binacchi wrote:
>
> Thank you Peng, for the information.
>
> Do you think it would make sense to add the PLL nodes with SSCG to the
> anatop node?
>
> anatop: clock-controller@...60000 {
> compatible = "fsl,imx8mn-anatop", "fsl,imx8mm-anatop";
> reg = <0x30360000 0x10000>;
> #clock-cells = <1>;
>
> clk_video_pll1_ref_sel: clock-video-pll1-ref-sel@28 {
> compatible = "fsl,imx8mn-mux-clock";
No. Nodes per clock were long time ago NAKed.
> #clock-cells = <0>;
> clocks = <&osc_24m>, <&clk_dummy>, <&clk_dummy>, <&clk_dummy>;
> fsl,anatop = <&anatop 0x28>;
> fsl,bit-shift = <0>;
> clock-output-names = "video_pll1_ref_sel";
> };
>
> clk_video_pll1: clock-video-pll1@28 {
> compatible = "fsl,pll14xx-clock";
> #clock-cells = <0>;
> clocks = <&clk_video_pll1_ref_sel>;
> ...
> fsl,ssc-modfreq-hz = <6000>;
> fsl,ssc-modrate-percent = <3>;
> fsl,ssc-modmethod = "down-spread";
> };
> };
>
> This example only considers the video PLL, so to be complete, it
> should also add the clk_audio_pll1,
> clk_audio_pll2 and clk_dram_pll nodes. It is based on an RFC series
> that I sent about a year ago,
> which was not accepted. In this way, the SSCG properties (i.e.,
> "fsl,ssc-modfreq-hz", "fsl,ssc-modrate-percent"
> and "fsl,ssc-modmethod") would be added to the relevant nodes, and I
> would take only the essential parts
> from that series. This would still mean implementing the PLL driver
> ("fsl,pll14xx-clock") and its mux ("fsl,imx8mn-mux-clock").
>
> These clocks can then be added to the "clocks" list of the "ccm" node:
>
> clk: clock-controller@...80000 {
> compatible = "fsl,imx8mn-ccm";
> ...
> clocks = <&osc_32k>, <&osc_24m>, <&clk_ext1>, <&clk_ext2>,
> <&clk_ext3>, <&clk_ext4>, <&clk_video_pll1>,
> <&clk_audio_pll1>, <&clk_audio_pll2>, <&clk_dram_pll>;
> ...
> }
>
These clocks can be added anyway.
Best regards,
Krzysztof
Powered by blists - more mailing lists