From patchwork Mon Aug 26 05:26:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Fang X-Patchwork-Id: 13777099 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2086.outbound.protection.outlook.com [40.107.22.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7405F78C73 for ; Mon, 26 Aug 2024 05:41:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.86 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724650890; cv=fail; b=FFyBJ2VYBHIgVfFd+mTd6gRiyn3HKuVkNIGFjXX/8Vsmt/OABPsv/i6/zF0RSsvRo8LRdGaKRArO17C0v52XQs/phILVIq5nuXmQVoaW1WebH2AOdwJjXO1jj2sa+aLWsFFfjjEhUzoDPpqKhnsgold+XFZkZi1yGYuzG8x0F90= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724650890; c=relaxed/simple; bh=g4S0KLZJbKiQFWXDLNA2hT1bEDBbp/1jRrixgmTPDu4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=dc8UkaMqw6qxlrODKRfXXSonkIDQFw3k0EI2tg9cioX9XApBigM75939hNaFEvp8BzVUzw+a6Jjpt7DpydJnpzlkilBvopqL9m5IbypdhbCmWGmNYPoymhe83PwjI44FSWx+ojPOLqUBYhYH26zUacW3M90Tq+lwEOgQ4a+qjwg= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=CgbCudIe; arc=fail smtp.client-ip=40.107.22.86 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="CgbCudIe" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=M2mQVgU2j9pmn4D4jFded0Dq2PnQyKdtDGeaLicjdTEC/7or/4DiGAeBmq7kqb8cbpHQWoLiOgpgXH1yB9SJgJiPqBs1tul5r1qyTuT9HMcsbpdLvXmcnPqh20jvAnTALXKfM+1uSqpHe4f/hh8CfqUKVDRhZNafupxSfNSEmfvqIqsHzri+LvX8IejGVsMOJkH57JaITg24GJ5zzdkB22SjnXsAg4tXftD6llL2uf5b+Rzsez9OLv8ZYPCg1F45IqJpNl/OH8yDMzRsbxYxEiAsdJm3TD0G1Tjvsjoot5UAr3/xr+E0ApVVOq5lMRorUnX+X3o5dm6kEVTjAMqeyQ== 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=zi5QfgfadH6Rzqmwc2YZ1QXOziM84vQYDXyoGepBtn0=; b=sZQeC3kp5VT9+fdjDMEg2uIFJsS5nzoN4ub/5sQ5cfyM9br5EqOJl+Q5mgkp8z2TxXrtZdnUNNPZZ7jVM8DadQ57iAeoSAqrmBRA29QfgWgf9fmD+rlXdSJrG/eFglYt9vl90vNYURy8iFuJCl03GltljPfhoRedzNRVuXlNH2jFKERMi0oxMoTiS2gNaEVrE7p5bUoDqz5Zwuy+eXoHK4AKEx69VsgISpq+qWhxoN6bHpQfHNTRsj/RmxJ8jtXIh79bFEuq8ZaS3J3b5qsNRK1jLo0ZdLfcODhH/nbKLEpkeJfegHk0UXOxe7PMHsG1c3YQI9kDyJxvWG1g9f4u6g== 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=zi5QfgfadH6Rzqmwc2YZ1QXOziM84vQYDXyoGepBtn0=; b=CgbCudIe3oOPV1GJ8yKojHkNcPC+YMeD9zSzqHyOGZxdhPCJy9p+9YHyNd5xcf1dfpcPD+McbxTQhkmLFTgy0o56c1ACDHH/BaGFNnAI6dByn6/ns+IdtsmB7aJUN1/p7G/VP2JGzg/Mo+8oYnaX4dAMnZsnwkIeN3g3Vwh3PJrRzlmbyUAKOAL69QntTtgI7mPzjOXarWN/VtSWVUIyVDtCDpMpdN0J2Jc+81i7FYT6YpvWUiTrnK8QQ/IPhMAzcyGVEmzW6Nan6bhnRhFqa7ELL+94PKdu2rbneSB0KxQRlORtR17szl39KdwHcg7uHqSD4QeBbGRNoDPuUv1LvQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB8510.eurprd04.prod.outlook.com (2603:10a6:102:211::7) by PAXPR04MB9075.eurprd04.prod.outlook.com (2603:10a6:102:229::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.24; Mon, 26 Aug 2024 05:41:25 +0000 Received: from PAXPR04MB8510.eurprd04.prod.outlook.com ([fe80::a7c2:e2fa:8e04:40db]) by PAXPR04MB8510.eurprd04.prod.outlook.com ([fe80::a7c2:e2fa:8e04:40db%6]) with mapi id 15.20.7897.021; Mon, 26 Aug 2024 05:41:25 +0000 From: Wei Fang To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, andrew@lunn.ch, f.fainelli@gmail.com, hkallweit1@gmail.com, linux@armlinux.org.uk, andrei.botila@oss.nxp.com Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev Subject: [PATCH v3 net-next 1/2] dt-bindings: net: tja11xx: add "nxp,phy-output-refclk" property Date: Mon, 26 Aug 2024 13:26:59 +0800 Message-Id: <20240826052700.232453-2-wei.fang@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240826052700.232453-1-wei.fang@nxp.com> References: <20240826052700.232453-1-wei.fang@nxp.com> X-ClientProxiedBy: SG2PR01CA0156.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::36) To PAXPR04MB8510.eurprd04.prod.outlook.com (2603:10a6:102:211::7) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8510:EE_|PAXPR04MB9075:EE_ X-MS-Office365-Filtering-Correlation-Id: c5c9b415-ff34-4f26-15f0-08dcc591b942 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|7416014|376014|1800799024|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: GhXqVvRJI7v7kTynTVaZoKQtPpC/TnM6mWJGvL+aOiGCdMbt5KMSpC+g3RbZ5/BcgqwEVG+kkRh2dwJ3J1CaFz/Z6K2o2KrfT8JP+b5TQua6jxJBRYYoN6V0EzVpT/apCYEBXnjepiY92rqeCvpfmgB0yT+59Ok58YSHnUwhy+tTjZdYY9ZmVYwOcqoIC9gdAky4h+RCKQNikA7UNcba6spV4UhfWhFibZKAs31eNSbU/8/N0UHcmgP7ijW77SncHWebwMw5nzg6bn//gZ0jqAxaqoG5drj6x9eZT1b64NzrEh6+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D+Lx/CjYsW6eq7NZDMJuRj1hVh94rZ8+fx3RFwn4SbCFW9TG1+gW/zIU= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB8510.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(7416014)(376014)(1800799024)(366016)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: YJ3sp04ftqwKNcnqIb/dReDLfjLjL1YDpRZyJSf0jUUi4UVeEgMwhrGCHbyuz07v2y8nmBESUIvV68cLThmhMuUOgnwhsE9IDb4JAL/gZqQz/ar/B41d7//sZq+ne+UXPi5OPvzvUSicCaEx+kMiW8Nu3TOQKiZLY/E70Y+6O35CGQKfaUmsW796yUumoNC5gOfu14L5iMd3c+QplY5XBCYl+ezKAVjFB2Hi4Kn7ySYP0SBNrWbhoYgj1Q0vgDhlwGHEiPjgOgTUEL1aj/V7YLh9EFX4Y7yONT2WxnTy6jBD1JeZuXqgoFS395KMWdCaeFHtjK8VeM/+dbfkhbXnuuE7AkOSTdal8vy6zbSkNCwzb9rjE6EkGrYBH+0GAeFYgfXgVgiK6djydY04/Pi0mYQOqhisT0eeGCjbPgViuR2NwpjFCGH89ApHi5xCm53B0WNagwBNXExyBHXV9WQwidFeROUvIKUlOtqLuCehz83N7kSiBqzT72aJc/b8sF2HxHBI7VjrLnMslQHhbHH+AICnHhj/GMXijLBYZZ9IdwImskqF1hOFcWXjMknVDYCQguwZccCmKvrubj6cZEOYHaKvY7I4DiFs2WjsSZDZBmkFaTS5IWRhuWkaCmOlA/oPhScCvbC6ftnWbt734jWlKUYfB5M9WBmAnJ3lZdc1wb7bUi1tKgn96t4SpVFMf8KKsFvlmywK/cbJuef9hnCQnRV+lJpJikMhi/6hKmzUro3hQULmfp+som7dlYp9z99gq0Rd5BiMEkvVm5gh11T+rpNs9V2Zv5muW5T+P1m6OIHUMo3Yfngn6Pxiesl6oCoZi0y4Bth+nBlOvTuktihE8uIzRqnLqkWycWpaAtglGQwGuIuupXRDSplUKPz4ymXc3rZntPZ9gcyY9LMvxDpFDh4Flti+/fW9DVXYTOQEpryicFM05dOoWKjROhOFQORhqGM7+i//WQFwY6d2ylxE80i5gGP8rUM0YtSSuQbFxCQxJyigwPJs0IyAyBEmEt2rSPOgtKM5adcm5bkKTLG/3brd3Uqt91soy+HoHxLg9x+3PRdAFY0Lryo4UlH5YGvhS92LVuHTWqmF4tLAJYWHoLsBWgJDgaAhXl3QcDXEIAe5iuWAIYSpzmGfskA1sBucSBCwKhZyFoUvXDLkxT87xfxu848il791+U8KKxik0/5ynZFiV+KZVmfowte9wICTOQ6DJAyMjU1gs9c39DG8raCDEI+ITMGZ6MVeh9MarsosSKQV/4bsOuu4uSOu5p0ua22UhzhsW54ecszabZl4plradctUBwxfHOUKfhPmD2PEtTOb/sCOjbrkpkgr//klTucYo3NLhqKYrn+X9LW2mm6AnjGkIyDhMTCMXI1teRHgF3Q1JpxYw4rPQOr/cbNXWE0sW9gHPOkquwsW7GVxPEojSXzF0Eq6u7Yk05Rpqi3k0ptJB7Cv6FVi7UdME0oGiOj+F632H3kVS+4RMHm3l2rmXlPOmUJPfR4P2WkZ9g718Ahvggchsq8ZxrTNBKI/HcQHDT9S3aGOmsPXxhBg+MhGvM2iCSXIn7XUcVMKBphtn4Byci7Nfe5pn5wTw3gw X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c5c9b415-ff34-4f26-15f0-08dcc591b942 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8510.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Aug 2024 05:41:25.0299 (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: ig0o6x1DGxwbGes1n+Tpn9IoP+fI4RN0yZQdSpqwsUxncAB+qW9V68EcSL9IeYbh5i6/UCZ+Lc5qARvueZ+YIA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9075 Per the RMII specification, the REF_CLK is sourced from MAC to PHY or from an external source. But for TJA11xx PHYs, they support to output a 50MHz RMII reference clock on REF_CLK pin. Previously the "nxp,rmii-refclk-in" was added to indicate that in RMII mode, if this property present, REF_CLK is input to the PHY, otherwise it is output. This seems inappropriate now. Because according to the RMII specification, the REF_CLK is originally input, so there is no need to add an additional "nxp,rmii-refclk-in" property to declare that REF_CLK is input. Unfortunately, because the "nxp,rmii-refclk-in" property has been added for a while, and we cannot confirm which DTS use the TJA1100 and TJA1101 PHYs, changing it to switch polarity will cause an ABI break. But fortunately, this property is only valid for TJA1100 and TJA1101. For TJA1103/TJA1104/TJA1120/TJA1121 PHYs, this property is invalid because they use the nxp-c45-tja11xx driver, which is a different driver from TJA1100/TJA1101. Therefore, for PHYs using nxp-c45-tja11xx driver, add "nxp,phy-output-refclk" property to support outputting RMII reference clock on REF_CLK pin. Signed-off-by: Wei Fang --- V2 changes: 1. Change the property name from "nxp,reverse-mode" to "nxp,phy-output-refclk". 2. Simplify the description of the property. 3. Modify the subject and commit message. V3 changes: 1. Keep the "nxp,rmii-refclk-in" property for TJA1100 and TJA1101. 2. Rephrase the commit message and subject. --- Documentation/devicetree/bindings/net/nxp,tja11xx.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/net/nxp,tja11xx.yaml b/Documentation/devicetree/bindings/net/nxp,tja11xx.yaml index 85bfa45f5122..f775036a7521 100644 --- a/Documentation/devicetree/bindings/net/nxp,tja11xx.yaml +++ b/Documentation/devicetree/bindings/net/nxp,tja11xx.yaml @@ -48,6 +48,12 @@ patternProperties: reference clock output when RMII mode enabled. Only supported on TJA1100 and TJA1101. + nxp,phy-output-refclk: + type: boolean + description: | + Enable 50MHz RMII reference clock output on REF_CLK pin. This + property is only applicable to nxp-c45-tja11xx driver. + required: - reg