Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9082608pxu; Mon, 28 Dec 2020 06:13:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJxyJt7trG1E37Rn67S+QFBioJpvLrgJgBvNO++Z7f9iB2u+xbZsFTNBtcof4AJzmZnkCZv8 X-Received: by 2002:a17:906:1151:: with SMTP id i17mr42531468eja.250.1609164784101; Mon, 28 Dec 2020 06:13:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609164784; cv=none; d=google.com; s=arc-20160816; b=Qny5qYKBOwoQVscWWCD8zHeJrV0pfgexz9HNhT25Im3ldKN/sRm2jEZPuNYJjOEP+E NVvARi3EaWMp2VynxXegnAiKjeO41wMO25lJB6o8V36uHkUVHDPwTYyB+XsufA8DBM8P 7KnTKQ/aO1jItKKzI9wNKFEpxHPAnoiGE8eab8DVqkmtX3QxXvAW3rCUNoz86hTrfFli Lwczb6pLGoBrwZQ5xm051kThJhfkKRalvfFB5ZqpOS9OdGswe5eHKfJAgopnRwXeLjgz OGOExqmDzvr6Yx4fMnzAxJvE5qn49TjaXGNf543EQHYJGNysfqSGO2CmBGraaC1l8TzY ux+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=iywKWjG2I7thun0Brsz/KEux26FZo4z3X9b84KDftGM=; b=uR8J2dOzkSo14CS9J4IwjRnBmiRhCWB7LW6dMqD59LQj/EABL0ADpezvx8YEm0FcwQ FWgbMIVVH8BNReQbVShqkD7Cj7dNZWUL3RxhvPe96cjyaYoz/gZ2rH+cL6jON/a2G7b3 elPtNG7z++vTF4aqvCuW600rtbFubcH4Q9Uc+HOzSiqT/hFGb3CijOfITqIT7UlxwHSy v1XwsGMvDEiVDE6oR8nI8K8QbAFOv+iSESdufIXlqtTcclA5ZOf1kkQfiD+DgEmxDieh H5PbquRYrluVOB8YZgfNLFXT+U5IHwYGWssXCFquDBbjqvVV9PN4tklI9JTIt2JTSerg 7rMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2rwS6uuy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w1si7334770ejn.628.2020.12.28.06.12.41; Mon, 28 Dec 2020 06:13:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2rwS6uuy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2439039AbgL1OKc (ORCPT + 99 others); Mon, 28 Dec 2020 09:10:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:44566 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2439014AbgL1OKX (ORCPT ); Mon, 28 Dec 2020 09:10:23 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5AFA2207B2; Mon, 28 Dec 2020 14:10:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609164607; bh=nA7BVO8Yh1YrGNDD4Vvrfez7DOcgb9i2BKJgaCMdYT8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2rwS6uuyGs+bf+GBA2nxh/mW4238bEG1elu9kfIFXiEa9BiO5UR74k5P613VLLIn4 7rIQxf+Z6lWaZlDDQ0Zbk9XVOU46zbux1LUD1ZX+7YJYIb3aVmhRCOVKQK1WXC/R6P lTwkMgHsGATRVBd1htCqCPIfbFDNGTxWCyw4shoM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michael Walle , Shawn Guo , Sasha Levin Subject: [PATCH 5.10 234/717] arm64: dts: ls1028a: fix ENETC PTP clock input Date: Mon, 28 Dec 2020 13:43:52 +0100 Message-Id: <20201228125032.199162790@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Michael Walle [ Upstream commit d0570a575aa83116bd0f6a99c4de548af773d950 ] On the LS1028A the ENETC reference clock is connected to 4th HWA output, see Figure 7 "Clock subsystem block diagram". The PHC may run with a wrong frequency. ptp_qoriq_auto_config() will read the clock speed of the clock given in the device tree. It is likely that, on the reference board this wasn't noticed because both clocks have the same frequency. But this must not be always the case. Fix it. Fixes: 49401003e260 ("arm64: dts: fsl: ls1028a: add ENETC 1588 timer node") Signed-off-by: Michael Walle Signed-off-by: Shawn Guo Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi index 7a6fb7e1fb82f..060b0d5c2669e 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi @@ -934,7 +934,7 @@ ethernet@0,4 { compatible = "fsl,enetc-ptp"; reg = <0x000400 0 0 0 0>; - clocks = <&clockgen 4 0>; + clocks = <&clockgen 2 3>; little-endian; fsl,extts-fifo; }; -- 2.27.0