From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4703CC3DA7F for ; Wed, 7 Aug 2024 20:26:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To: Content-Type:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=1FG5U6Prn8OB5lrBZICzOUlY/+jERG/Qn0mVAPf6+PQ=; b=Xb7YxLtLMvwhpOON7W1T1N72yv 91cFhGZHMHqRhzKtOZAtz0PX0rJ/zs9RroyrwCOo9zNAYp7TUBEDPfk8DeWVp3T7H/0hQB7rgOtZz bohxXHAlE0dUFW1C4zObb5Ugx08d3I4bcigKeYMS4sdjcQE6Yg8/CeZRHnvAe8B5A7720G/A4x6kb h5vivw06b2aWqqIgVVVx+pi6L9F/s9JJT5A712ZQ68ciMAerMYsUYlBZzUcMBCbAYCb1F9z50uxwD dyIEySu+Jh/RM/v4p4ln6L6XAtEkBRdeN77qK36ZojxfL1ZCSUsfq+lhg2GDa50mbPi2R9BBoFZQj h4rqY8Ow==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbnEh-00000006CfF-2Zpy; Wed, 07 Aug 2024 20:26:19 +0000 Received: from mail-westeuropeazlp170100000.outbound.protection.outlook.com ([2a01:111:f403:c201::] helo=AM0PR83CU005.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbnE8-00000006CaW-3jxq for linux-arm-kernel@lists.infradead.org; Wed, 07 Aug 2024 20:25:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ZT20f5sf8g0yc6/4Vcn+EF0rJMOZjx9uE3Ytq7Po9hopoFYg7FzkL4Ee3gHBPJX+x+0T0swUKwZiQCscPVKg8z7/AqIkjNEsHqvzP3Ku85NHw1jn9SLSDkwddeCZ/TVzP2lQzY4/LN1v4O0QrOJZhiAr2uGmZlIZougiI2tGEzg0fR5B5yc/LGuUUr3vQTb4Xwn97hJUS4UbRO/M8yFZIZhrsjzDx0fmgJFiUiZ0pAg2Azd6JxrK2nmjhbJjYS4ohv3JZTmm59+tjalceUBJeMHabroaFMXg5mvxq5kvw5jsQoo52gfm2YA+3+XI9qUjkm9pzH2669S9ey3JkT/Cmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1FG5U6Prn8OB5lrBZICzOUlY/+jERG/Qn0mVAPf6+PQ=; b=xI5Bac0G+sl2XaC/t5m8LPRWeMDR8JaMOd7iDUwgaoVBNFxC75i+OF2p2YCdhSnJ0pxQFo2YXPW53aNmeVqNmiCu31P3z9pzPXwj+cS3fRDfK02OF6jCzF3UK0Wg+El7PGKseoebCMMqCBZk0AUvP8d9UQPBc+mHz2KGkXslXsjpJN1JvbSgqaeVlxSwSPabTJBsevkZswXQ8MxGLE0TxtKAunbyrURuFsUohO8XKHv/biYVVmbasuBwfphnJTJtyfp5vncdmm2dBVMXe7cfNro2Kuw5DawYSa3jrHFD/38LSXJCyyn/9G2ve2Wup/GbHYxI6J5fcIK0NUbCTw6S5w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1FG5U6Prn8OB5lrBZICzOUlY/+jERG/Qn0mVAPf6+PQ=; b=HQZ4WZx4hZS1OZPcwzJt+Z1VR80pGtgHy/EnEaBk8rmT7FUNYmle1o/ERCF24hSGpAH0QAzSt+N/Rwv8H02fo9ToHW/fgC5ZFZ+ecBg9v+GkSmoFJgl+1kl0ISzK5hG3UAXNqOIWX3d/zyV+S7zOTEXnDyy4lxnsv8bs6jqRTNcZ4M0/hSIMSsZM3QcDD7964KDLctNrqm5/WOKSMoZx9na9Pfm3N14fVSXwzhoQgPmKx5fx4QjeY8UIPmTDhin35au1DXMuVLvzIcoesQtOSkaH8/9ujkjab/UHceYv15cAxU2NFjer6u4mtusZhuG89Sioqbzsa/kiDMEXmC7cow== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by PAXPR04MB9399.eurprd04.prod.outlook.com (2603:10a6:102:2b3::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7849.13; Wed, 7 Aug 2024 20:25:39 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%5]) with mapi id 15.20.7828.023; Wed, 7 Aug 2024 20:25:38 +0000 Date: Wed, 7 Aug 2024 16:25:29 -0400 From: Frank Li To: Rafael Beims Cc: Francesco Dolcini , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Francesco Dolcini , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, rafael.beims@toradex.com Subject: Re: [PATCH v1 4/4] arm64: dts: imx8-ss-conn: add PPS channel to the FEC nodes Message-ID: References: <20240807144349.297342-1-francesco@dolcini.it> <20240807144349.297342-5-francesco@dolcini.it> <20240807175148.GA299582@francesco-nb> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: SJ0PR03CA0282.namprd03.prod.outlook.com (2603:10b6:a03:39e::17) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|PAXPR04MB9399:EE_ X-MS-Office365-Filtering-Correlation-Id: f8e879ac-7659-4492-6426-08dcb71f19e0 X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|7416014|52116014|376014|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?CkqpLDlDtbqSLGMUJ5CtgQcRZdAwczNkp1EZtFFAckcjwPW5oX/KJzFV2Igr?= =?us-ascii?Q?NPUcQ5YLnmdPPIVuICNSi+sD88fFC0YZJ4D3WWzscqy/gapllHLaOC6bct+p?= =?us-ascii?Q?0vWcXx/PUE6/ecJxov0bZqYbQFierq25KkPqAtPbtdSm4EWmZfhWhPbyJIxb?= =?us-ascii?Q?v8HSjFMJgfOA6U2RCMaCNk9SsWoyshn8zS1FzN2WHm4+mI79mUcguwHaU0f1?= =?us-ascii?Q?Ja/PiuLGZ1h9l5OpK/ymO3hqir8l0Fq1rShIbZhWK7EreHcgGhC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ETlh4yQ1jGBoq6yyUPzN9Uk+MEbHrI2TzDRFR0+KqMTcj?= =?us-ascii?Q?osQ9NWMaedauLQ0vXSs2ovzII28+tzSx7YdWpQU3Daf0dbf+KHOc9BolJb2D?= =?us-ascii?Q?yGkRvBuOGan2ZJoyEWglvKQlDchnHdVy6D7f3AwPPiAdYJESV2ctHYTsnIxU?= =?us-ascii?Q?01lvfkTFf938gNzBiaRi2FFgDdji4pUoSkWG+jqfkKKpyUWeiKT0fcUEX8Y7?= =?us-ascii?Q?Q+YKYC41HXswWHvfFpkBHUrMcH0v+clUzh8kSj52eKkTWvkf9A=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(7416014)(52116014)(376014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?u50qLpnjGJt2i5MW3Vdv3wGd2YFMuBKneroREKFD9jgzVGVeO6U4EIsC6dLc?= =?us-ascii?Q?8jtaTmrcedtNqw+cVViF8GK7nUVXcwF++4dRF1kmd6T2F0oyEZwpFzO0Yfjl?= =?us-ascii?Q?w/AAYnXRnFrnxFbTG5skXrH5RK3zrDxkUhnPumewPyF9Bw/CxtTdEMze5trX?= =?us-ascii?Q?5XOZFVjQb58P3UDzMffs4gXybatchoY7LAciStz/dRZ6nPHfxmZ0Sid14eFx?= =?us-ascii?Q?JPzb4II1Zl8Q65Gm1FfU69UOc+5ohaNfNmfXKVERXO48D6QVyojKMk/D/tCq?= =?us-ascii?Q?iMt9aQhJCQ4JC1YG0LBIRsGykry7qUYJnvb600JYhGleEuSmyRwR0EJ5cAQA?= =?us-ascii?Q?K0ZhH1D3CltHqPxQakOxKsytUBpZ6LndL5zh2fyJJjLymWNrMhF7pZhYW/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JjL18FbCKFIzApUgBQ6TqKCER+7p7DDNe?= =?us-ascii?Q?eT1BGFUD4JPgUk8i8IjUQe6KmkZ7dV93ztgOPS4+4wanOHTSQIYEf25ElChd?= =?us-ascii?Q?KDsbLFvtVwqPNAECs0doW12uoWKOGBu/vns44CVfK1u/Gxo3NJCj1VWUfDTv?= =?us-ascii?Q?w/hD6CFJlP1fIXDL4jCtvN7OanaPNoQActgv76bAIZ+IcXGlsgWcrSAIlI9E?= =?us-ascii?Q?l7gEkbXDAMQXRDixLrTcx1DvMOvZuc5c7032yHB+2et1UKQMQoIcdzRjZBxS?= =?us-ascii?Q?HsrBQBL1xlosV9eIOm/0IM27dc06AjanQBYEX/NO?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f8e879ac-7659-4492-6426-08dcb71f19e0 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Aug 2024 20:25:38.6910 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: o2INInEhtWtUSadeAwYchcslJUG1qxwORqzRsuMaSTuSL5PsamXwUfF9+d8k4w/faAcyOwEUlI/1K+/Eke7Zbg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9399 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240807_132544_977844_971E3D37 X-CRM114-Status: GOOD ( 35.23 ) 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 On Wed, Aug 07, 2024 at 04:48:19PM -0300, Rafael Beims wrote: > On 07/08/2024 14:51, Francesco Dolcini wrote: > > Hello Frank, > > > > +Rafael > > > > On Wed, Aug 07, 2024 at 11:34:48AM -0400, Frank Li wrote: > > > On Wed, Aug 07, 2024 at 04:43:49PM +0200, Francesco Dolcini wrote: > > > > From: Francesco Dolcini > > > > > > > > On i.MX8 the FEC PPS channel is routed to the instance 1, not to the > > > > default 0. > > > According to my understand, it should be board level configuration. FEC > > > support output pps to any one. choose which one by board design. > > This seems different from the information we got from NXP some time ago, > > unfortunately this was happening over some private email exchange and > > not documented anywhere public. But the message was about SoC internal > > routing, not something at the board level, at least for i.MX8 SoCs that > > is what this patch is changing. > > > > For example to use PPS on i.MX8QXP we need to have this > > > > IMX8QM_ENET0_REFCLK_125M_25M_CONN_ENET0_PPS 0x06000020 > > > > pinctrl configuration _and_ use PPS channel 1. Same is for i.MX8QP. > > > > Maybe Rafael can provide you some more details and the name of the > > person that provided this information. > > > > And maybe you can also try to double check this internally within NXP. > > > > Depending on what we find out we can decide if this patch needs to be > > dropped or not. > > > > Francesco > > > Hello Frank, > > We have received the information from NXP support that the iMX8X only > supports channel 1. Here's the link of the public question I asked: > > https://community.nxp.com/t5/i-MX-Processors/IMX8X-PPS-output-configuration/m-p/1552154 > > Unfortunately, the response came directly to my e-mail address with no > public update, but you can probably check the internal support case number > 00500877. > > Here's an excerpt from the response: > > > I have checked this issue from soc level, the pps signal is routed to > the 1588_timer1, not routed to 1588_timer0( being used in code default). > > At the time, I asked a followup question: > > > Can I assume that IMX8QM_ENET0_REFCLK_125M_25M_CONN_ENET1_PPS is > > connected to > 1588_timer3 then? > > To which I got the reply: > > > No, ENET1_PPS is also routed through timer1. One can't use ENET0_PPS and > ENET1_PPS at a same time because of same routing path. > > I also asked for confirmation if this behavior was the same on the iMX8Q, > which I didn't get. However, we had another customer also reporting problems > getting the PPS output to work on our Apalis iMX8QM module, and in this > case, the change to channel 1 also made it work. This leads me to believe > that the iMX8X and iMX8Q are behaving the same way in this regard. > > We would really appreciate some clarification if we got some of the details > wrong. I checked some documents. channel0 route to internal eDMA as dma-request. If some boards use it as AVB/MCR. it should be set to 0. If need route out chip, it should use channel 1 as pps. So I prefer put it into board level files for difference user case. Frank > > Rafael >