From patchwork Tue Mar 16 08:06:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kurt Kanzenbach X-Patchwork-Id: 12141397 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C2EB0C433E0 for ; Tue, 16 Mar 2021 08:09:16 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D2DD064FC2 for ; Tue, 16 Mar 2021 08:09:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D2DD064FC2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linutronix.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=i6qQPya13yJDC454B7fCZZoUJu8ioyz0vNyq+OTQnNY=; b=Qt5KS1xgmaya8ldlJi3FAUNPax IxfEweC4RDdHVmJRU1M26XzU8s+MiVLriyWriCIUCAuG0ugB0fx8X3NWgseAxMfX29+XkZKVRFrhh OFOXkvv6cFWLsoDyzWO9il/5Qc2P71AR1cGa9KIUAnMuvA2rCrq4Oki2u+6UzwSTdLkjCE5gbYDcd jqHp2GFba942xqxXtUUebZ7q5jo5m57hP89jg4tFnN6wJEWO6C9ffc4fypR9anbTe5fUhMAicMPPF SveNwOJf//ZcxJoq2E2I85Vnb4pN40Jj5LijFVIG/80PTay1U285KiUucRoyXuMeILHPVpaCBYDvk gqcmkjHA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lM4jt-0005qR-A5; Tue, 16 Mar 2021 08:07:42 +0000 Received: from galois.linutronix.de ([193.142.43.55]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lM4jL-0005Ua-BX for linux-arm-kernel@lists.infradead.org; Tue, 16 Mar 2021 08:07:12 +0000 From: Kurt Kanzenbach DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1615882024; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=198ieZWxanXzo3MI5NPBYscFn1y4OHFktIS2kgql4S4=; b=o/Z+3OWO8kg/LVbMlEGoDRyYI4UHYdH6oX/gUZq8/xRO6n/rMZ5rEiOCdq85/OZQnNlpEr Kk4SjyHjn2Qk9A6mC37Tb+Byqw7Zjqh5Dx+RSnWdXrxe+B6J/CwyW5Q2Gos5jXFGptuxcK VLPtMXDWhcx05GlSZlCIOVxfLRhdtge/Pr3oFoWy848jtD1aqFTwtN0Ncmjqgy+aqdCnPp Rns6e56hH4WXBjFGXxohiPK6UWyJx6FZGTWzSfbNkfxfttmUJbWaMugyreTD0FSkvLVCxZ 9qirw2QnTfgehaNkqT7wp37a6wupPQkBoczpHJtWxMKI21TDeuvASeASx5pkCA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1615882024; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=198ieZWxanXzo3MI5NPBYscFn1y4OHFktIS2kgql4S4=; b=ySLL3EPN3xVdgSM8NIirnqA5E8Yba7rtaOX1cKM4+gEMQfzwsc90/lYYqyP9ID9nUjP/hc q4vELQeNVw+JwXBQ== To: Rob Herring , Maxime Coquelin , Alexandre Torgue Cc: devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, Kurt Kanzenbach Subject: [PATCH] ARM: dts: stm32: Add PTP clock to Ethernet controller Date: Tue, 16 Mar 2021 09:06:44 +0100 Message-Id: <20210316080644.19809-1-kurt@linutronix.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210316_080707_953240_5AC25EF8 X-CRM114-Status: UNSURE ( 8.03 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 --- 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;