From: Alexandre TORGUE <alexandre.torgue@foss.st.com>
To: Kurt Kanzenbach <kurt@linutronix.de>,
Rob Herring <robh+dt@kernel.org>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Alexandre Torgue <alexandre.torgue@st.com>
Cc: <devicetree@vger.kernel.org>,
<linux-stm32@st-md-mailman.stormreply.com>,
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH] ARM: dts: stm32: Add PTP clock to Ethernet controller
Date: Thu, 1 Apr 2021 11:43:15 +0200 [thread overview]
Message-ID: <ce610592-3d91-e5ad-ffe9-b8567af886f1@foss.st.com> (raw)
In-Reply-To: <20210316080644.19809-1-kurt@linutronix.de>
Hi Kurt
On 3/16/21 9:06 AM, Kurt Kanzenbach wrote:
> Add the PTP clock to the Ethernet controller. Otherwise, the driver uses the
> main clock to derive the PTP frequency which is not necessarily the correct one.
>
> Tested with linuxptp on Olimex STMP1-OLinuXino-LIME2.
>
> Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
> ---
> arch/arm/boot/dts/stm32mp151.dtsi | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm/boot/dts/stm32mp151.dtsi b/arch/arm/boot/dts/stm32mp151.dtsi
> index 3c75abacb374..d1f596ea2fd5 100644
> --- a/arch/arm/boot/dts/stm32mp151.dtsi
> +++ b/arch/arm/boot/dts/stm32mp151.dtsi
> @@ -1421,11 +1421,13 @@
> "mac-clk-tx",
> "mac-clk-rx",
> "eth-ck",
> + "ptp_ref",
> "ethstp";
> clocks = <&rcc ETHMAC>,
> <&rcc ETHTX>,
> <&rcc ETHRX>,
> <&rcc ETHCK_K>,
> + <&rcc ETHPTP_K>,
> <&rcc ETHSTP>;
> st,syscon = <&syscfg 0x4>;
> snps,mixed-burst;
>
Applied on stm32-next.
Thanks.
Alex
prev parent reply other threads:[~2021-04-01 9:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-16 8:06 [PATCH] ARM: dts: stm32: Add PTP clock to Ethernet controller Kurt Kanzenbach
2021-04-01 9:43 ` Alexandre TORGUE [this message]
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=ce610592-3d91-e5ad-ffe9-b8567af886f1@foss.st.com \
--to=alexandre.torgue@foss.st.com \
--cc=alexandre.torgue@st.com \
--cc=devicetree@vger.kernel.org \
--cc=kurt@linutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=robh+dt@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;
as well as URLs for NNTP newsgroup(s).