From patchwork Wed Aug 7 14:43:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 13756390 Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EE30F80638 for ; Wed, 7 Aug 2024 14:44:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.194.8.81 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723041855; cv=none; b=JSd54tt2Z2v60Mh0ZdCESR9pBvMKoXzEjU2gmvTDN53ZyhkCX9PR0KTUVZCFh4oYW0Xmq9h69YzypSPuHbtkXUMpHTiTrADY9UGa9LxKURIkyBHoTXa0sT4VnE3o1HH+I+r8A/xS/ynszGFGG/SsjVVgUPkEh/ZLlPpLGOxTYiQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723041855; c=relaxed/simple; bh=NZcmwPI9cW0n0CJkJL/ps67EW4H3d9nTVit6EgK2L4k=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=QnWvczhtN18WOrNZGjc06LkQNv+ujTt5h3iP31zKPpL7iLjzIXSl827/jnlPXre/1gsY7r1VTwaLFjdbo93Zgo6gkTre7QO5ZoDzv54r5VwYBThhq8SHhJQmA8oMnmRLnnZVzWonWrltG6t1Zm5C0G6ThA8bU41L8uz02RzQYPc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it; spf=pass smtp.mailfrom=dolcini.it; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b=Vi9R8B3U; arc=none smtp.client-ip=217.194.8.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dolcini.it Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b="Vi9R8B3U" Received: from francesco-nb.pivistrello.it (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 27A0821B05; Wed, 7 Aug 2024 16:44:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1723041842; bh=JzKokxW+QzlgsiYj68z1A8RZdfcJ1yv1U8asgBKtrxc=; h=From:To:Subject; b=Vi9R8B3UbF8LbSEA4ufwpoQyScIxMzdPlmTwar17ha2PUQREoBM5e4/0PVvMQLPVK bt4U3IbmtK2jYp8lTfM1i985uQNrXOFntKLh5MR5eVRPuSkS7YKC1wR04qWQGnbHse mkxmuctH1eWc74tZ0uBkv+LCYTLX37Tk5mUXVph2jOkDHkOsPAQNGcxb4jKplhzRoy mSYkA/4NCg91+5H8/MAnlA6SVjzDgzfsVZzpXwb0s3qwOGhrDJvfJkFUS/YqG+FwIV NIVMh9FHrhFtUDic7XIKeejgzPvP6IWkWYuPo4uBHiT551mctaxxcOBaU5LBW8kUbc cTpFJCEwV0ovg== From: Francesco Dolcini To: Wei Fang , Shenwei Wang , Clark Wang , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Linux Team Cc: Francesco Dolcini , imx@lists.linux.dev, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 1/4] dt-bindings: net: fec: add pps channel property Date: Wed, 7 Aug 2024 16:43:46 +0200 Message-Id: <20240807144349.297342-2-francesco@dolcini.it> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240807144349.297342-1-francesco@dolcini.it> References: <20240807144349.297342-1-francesco@dolcini.it> Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Francesco Dolcini Add fsl,pps-channel property to specify to which timer instance the PPS channel is connected to. Signed-off-by: Francesco Dolcini --- Documentation/devicetree/bindings/net/fsl,fec.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/net/fsl,fec.yaml b/Documentation/devicetree/bindings/net/fsl,fec.yaml index 5536c06139ca..24e863fdbdab 100644 --- a/Documentation/devicetree/bindings/net/fsl,fec.yaml +++ b/Documentation/devicetree/bindings/net/fsl,fec.yaml @@ -183,6 +183,13 @@ properties: description: Register bits of stop mode control, the format is <&gpr req_gpr req_bit>. + fsl,pps-channel: + $ref: /schemas/types.yaml#/definitions/uint32 + default: 0 + description: + Specifies to which timer instance the PPS signal is routed. + enum: [0, 1, 2, 3] + mdio: $ref: mdio.yaml# unevaluatedProperties: false From patchwork Wed Aug 7 14:43:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 13756387 Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EE29980611 for ; Wed, 7 Aug 2024 14:44:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.194.8.81 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723041854; cv=none; b=UGEXR1Fe85xAz8+N55z+m9tA/TgcvrC2HzLGoOxCgWy9wwXuvXIYRbP55q9+lMA0YQxVZfAI54b11bCTt5xik7ohue9hHxeR2HUyjz8oM5SRfAIAOKO9CKzrcTnCLWZkuodw0mFp00NokAgdLGATIYP3/TMKMiWOe0WfVUe2EfQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723041854; c=relaxed/simple; bh=EbD1cR10CZ/+8fL1VP7OEMT1fxBxG9Q/NQrr1StPAnk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=UaIiXazXL3NoHbLnD7E20H/Yot9JZr4+Nf+kIrg8+/QndDhfw1vAne+vRThAYSW5RN0YrLiL6DXMXB6I1qUtFoFSdoK63/Wvv3AzmhnYEoB+uAmdhohw64KGhacGjTkuvhxDKHQhHH29wwDnHpFnGOzxJ0bdwIGBXWJSTc+y8go= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it; spf=pass smtp.mailfrom=dolcini.it; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b=GpfR773M; arc=none smtp.client-ip=217.194.8.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dolcini.it Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b="GpfR773M" Received: from francesco-nb.pivistrello.it (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id EDA4721B1D; Wed, 7 Aug 2024 16:44:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1723041843; bh=xPYVC5iG1MnJHMcqugnI21KD6zEFTKaI7seB9Msq1jE=; h=From:To:Subject; b=GpfR773ML9Orbta3d1xzpP3eLd6XjDT6MhW682g4Yg50shuSf33Ofky5Ue3obd69F wiMRuQPrmytWoJqkeBaUWSR8fXCwZ8qJvW67ElvqiXkAD197h719MpkrWT8ZsEdmHj M3GIOoaY0dMpKyNlwx7YJqXZdvla5k+klBpJwos6ivZRg010qhh7PfaXBDbFe5vl4X hVXhuHb3AgVc9M1kzk/QDzf2TRo7WPE8fAwuOWpWS7JywxALz9sh0RbI8zKHbgNgIe Fasb4rxycaZFOrR6+r9MGYFrdra2LSkfrSyEoGk4FMf/nHZcb5LQXPyVH6eujVS5/N gV567EqI2dnJg== From: Francesco Dolcini To: Wei Fang , Shenwei Wang , Clark Wang , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Richard Cochran Cc: Francesco Dolcini , imx@lists.linux.dev, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 2/4] net: fec: refactor PPS channel configuration Date: Wed, 7 Aug 2024 16:43:47 +0200 Message-Id: <20240807144349.297342-3-francesco@dolcini.it> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240807144349.297342-1-francesco@dolcini.it> References: <20240807144349.297342-1-francesco@dolcini.it> Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Francesco Dolcini Preparation patch to allow for PPS channel configuration, no functional change intended. Signed-off-by: Francesco Dolcini Reviewed-by: Frank Li --- drivers/net/ethernet/freescale/fec_ptp.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/freescale/fec_ptp.c b/drivers/net/ethernet/freescale/fec_ptp.c index e32f6724f568..6f0f8bf61752 100644 --- a/drivers/net/ethernet/freescale/fec_ptp.c +++ b/drivers/net/ethernet/freescale/fec_ptp.c @@ -84,8 +84,7 @@ #define FEC_CC_MULT (1 << 31) #define FEC_COUNTER_PERIOD (1 << 31) #define PPS_OUPUT_RELOAD_PERIOD NSEC_PER_SEC -#define FEC_CHANNLE_0 0 -#define DEFAULT_PPS_CHANNEL FEC_CHANNLE_0 +#define DEFAULT_PPS_CHANNEL 0 #define FEC_PTP_MAX_NSEC_PERIOD 4000000000ULL #define FEC_PTP_MAX_NSEC_COUNTER 0x80000000ULL @@ -530,8 +529,9 @@ static int fec_ptp_enable(struct ptp_clock_info *ptp, unsigned long flags; int ret = 0; + fep->pps_channel = DEFAULT_PPS_CHANNEL; + if (rq->type == PTP_CLK_REQ_PPS) { - fep->pps_channel = DEFAULT_PPS_CHANNEL; fep->reload_period = PPS_OUPUT_RELOAD_PERIOD; ret = fec_ptp_enable_pps(fep, on); @@ -542,10 +542,9 @@ static int fec_ptp_enable(struct ptp_clock_info *ptp, if (rq->perout.flags) return -EOPNOTSUPP; - if (rq->perout.index != DEFAULT_PPS_CHANNEL) + if (rq->perout.index != fep->pps_channel) return -EOPNOTSUPP; - fep->pps_channel = DEFAULT_PPS_CHANNEL; period.tv_sec = rq->perout.period.sec; period.tv_nsec = rq->perout.period.nsec; period_ns = timespec64_to_ns(&period); From patchwork Wed Aug 7 14:43:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 13756386 Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 805878121F for ; Wed, 7 Aug 2024 14:44:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.194.8.81 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723041853; cv=none; b=DWy05lIv8IsuW+r/en/FpThwwihHFMkoHoYW3Zpmm9725GF6xrtvrVy76XaJP5FzU+poyT30PC3o81izl2TsCHcuMkjZOA4PN0BHIX7N9BJ3Xq/F9JhYpIyF9qOQv4cBsX5gh5VQ4fJ9ld6UwmdUeTY9Z97OeaSXcfpXoGhRnM8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723041853; c=relaxed/simple; bh=y/jffoFIybGv4O9jKBf4bavvf0HlaLqCKtoOa6vrEj4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=l6diIWFTrdKji+NaQwNijxD94OKcyTMOjvQH9HliEr23YCmXfE6jAWfWzbmsQTbOubu9ri7AF9FXftCmrDSi2fTBzMpo6Qiqh81UxhnYyGLyiUjtZvskhZzaVZi3AXHRkmTgsOlb6BIOOE2jvlpS8BR9Swpn/SDIqhAsZoXCNGI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it; spf=pass smtp.mailfrom=dolcini.it; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b=J7auRFE4; arc=none smtp.client-ip=217.194.8.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dolcini.it Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b="J7auRFE4" Received: from francesco-nb.pivistrello.it (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 8F0B721B19; Wed, 7 Aug 2024 16:44:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1723041844; bh=sKOb31r/3Cf+dBRphbkBxUG2Eb1AmfV4cp8ruJ72OgM=; h=From:To:Subject; b=J7auRFE4BpY4chPpWRiWdRzVsT9BK6XF2c97xjtEatuLUlyDQ5FaegGsiGE2UfnM/ AfWfQxKHakLlq5bFKvdijs7BVtBlAXZYxVMPbxdlSqZfLZZKQajReXH4HiQW+8+rml nU9lxAyxkiioUrxa6/Qc0HjegOBtb0ZlVRx+Mnl+Wb0S8nn6wakGQmB9izL8DQt3WX 6BcffeQsAE8622Ur/uvyWUmUnOGl/3DhRluKz4sD3N0zHeEc5betIx2HwPl/UMiO4F MHBTETgU3C2+9zlbaMclie+keM54znSdUhfewuZVYgTrnu/vGQKI5ARJ47M9Z3gUc4 hQDvN6N8mTo9Q== From: Francesco Dolcini To: Wei Fang , Shenwei Wang , Clark Wang , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Richard Cochran Cc: Francesco Dolcini , imx@lists.linux.dev, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 3/4] net: fec: make PPS channel configurable Date: Wed, 7 Aug 2024 16:43:48 +0200 Message-Id: <20240807144349.297342-4-francesco@dolcini.it> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240807144349.297342-1-francesco@dolcini.it> References: <20240807144349.297342-1-francesco@dolcini.it> Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Francesco Dolcini Depending on the SoC where the FEC is integrated into the PPS channel might be routed to different timer instances. Make this configurable from the devicetree. When the related DT property is not present fallback to the previous default and use channel 0. Signed-off-by: Francesco Dolcini Reviewed-by: Frank Li Tested-by: rafael.beims@toradex.com --- drivers/net/ethernet/freescale/fec_ptp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/freescale/fec_ptp.c b/drivers/net/ethernet/freescale/fec_ptp.c index 6f0f8bf61752..8e17fd0c8e6d 100644 --- a/drivers/net/ethernet/freescale/fec_ptp.c +++ b/drivers/net/ethernet/freescale/fec_ptp.c @@ -529,8 +529,6 @@ static int fec_ptp_enable(struct ptp_clock_info *ptp, unsigned long flags; int ret = 0; - fep->pps_channel = DEFAULT_PPS_CHANNEL; - if (rq->type == PTP_CLK_REQ_PPS) { fep->reload_period = PPS_OUPUT_RELOAD_PERIOD; @@ -712,12 +710,16 @@ void fec_ptp_init(struct platform_device *pdev, int irq_idx) { struct net_device *ndev = platform_get_drvdata(pdev); struct fec_enet_private *fep = netdev_priv(ndev); + struct device_node *np = fep->pdev->dev.of_node; int irq; int ret; fep->ptp_caps.owner = THIS_MODULE; strscpy(fep->ptp_caps.name, "fec ptp", sizeof(fep->ptp_caps.name)); + fep->pps_channel = DEFAULT_PPS_CHANNEL; + of_property_read_u32(np, "fsl,pps-channel", &fep->pps_channel); + fep->ptp_caps.max_adj = 250000000; fep->ptp_caps.n_alarm = 0; fep->ptp_caps.n_ext_ts = 0; From patchwork Wed Aug 7 14:43:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 13756388 Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 587B5811F1 for ; Wed, 7 Aug 2024 14:44:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.194.8.81 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723041854; cv=none; b=CfCNyCbTBLxSmhxtdt8lSOQqj04p+fvqSTnj44VoeNvz13TSvk5qsr71LRVv/D+JUqvpldJq3BBDnjSd8HG8l/ddURiUdQy5r2N+n1Oj8jpcdzZf0gkggi2YA1UaBpPdSNflkx24jk6GL/OV63yZqMGPo2v3GtdmLz4ex0red28= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723041854; c=relaxed/simple; bh=wmIyn56BZpdpmjgY4kNRO+10jMJjnSkzPVP/MHdF038=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=DcN2Eb3JmYXqL6ZcuCZ8WAMOB2uyWJ9gSlzM7MD6ejboOHPpxM/aRfWIGtDNsiNCU+ZkuWrF3n2NrrEKfi12gP4omEukyxAwk3coXjG2VXOfjXnrZerFUS8y9HuZgYU5S6nw76nehHVm7hEtIpnPBTgRgqAeoHESIEOFIh8OoFg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it; spf=pass smtp.mailfrom=dolcini.it; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b=OhRQgjLi; arc=none smtp.client-ip=217.194.8.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dolcini.it Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b="OhRQgjLi" Received: from francesco-nb.pivistrello.it (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 1F1C121B1A; Wed, 7 Aug 2024 16:44:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1723041844; bh=QXpRHSt5W22TldwCVm/7sHpUgKzH5tFrdkovYAxdjkw=; h=From:To:Subject; b=OhRQgjLiRlK4TQ+9BDkIUYBD6CvZl9P/dCqvJ8oW/MIvpFXFSpbCfqflKBr/gTgMG tbPWmJAoXA+c8DAbBZm6mhcl9jEuDRwURUO9/TrXbARBeS+h4zwnFVuXTNLXHBD+Kz GJU80q/LXqocLv4QdMcsxn77nkGjaGZgQhULvbOfA+5R8LaSEsptujy6qZ9SjSSTHg +De+jqMBfOMlgdMmJ22M6yWdqYRH+3ZZRf03hvfetljmHX/VgxoHXQdsHxxTgB9Ro4 3KVoul7zckPwn8LEyQBO5A4CxtAR8Iis+/x/BZ5qe/P8eReEL6oXzwmlEGZgYzydo/ YeIuIEX6zNjDw== From: Francesco Dolcini To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Francesco Dolcini , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 4/4] arm64: dts: imx8-ss-conn: add PPS channel to the FEC nodes Date: Wed, 7 Aug 2024 16:43:49 +0200 Message-Id: <20240807144349.297342-5-francesco@dolcini.it> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240807144349.297342-1-francesco@dolcini.it> References: <20240807144349.297342-1-francesco@dolcini.it> Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Francesco Dolcini On i.MX8 the FEC PPS channel is routed to the instance 1, not to the default 0. Signed-off-by: Francesco Dolcini --- arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi b/arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi index a4a10ce03bfe..a9fd47041e3a 100644 --- a/arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi @@ -121,6 +121,7 @@ fec1: ethernet@5b040000 { assigned-clock-rates = <250000000>, <125000000>; fsl,num-tx-queues = <3>; fsl,num-rx-queues = <3>; + fsl,pps-channel = <1>; power-domains = <&pd IMX_SC_R_ENET_0>; status = "disabled"; }; @@ -141,6 +142,7 @@ fec2: ethernet@5b050000 { assigned-clock-rates = <250000000>, <125000000>; fsl,num-tx-queues = <3>; fsl,num-rx-queues = <3>; + fsl,pps-channel = <1>; power-domains = <&pd IMX_SC_R_ENET_1>; status = "disabled"; };