From patchwork Thu Oct 24 06:53:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Fang X-Patchwork-Id: 13848413 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2087.outbound.protection.outlook.com [40.107.22.87]) (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 2B1AC19D065; Thu, 24 Oct 2024 07:08:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.87 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729753736; cv=fail; b=WrZyORDIOQQo0OZncv2W1USS1z79xBEeb19mxigtKbZoLhgYwpZd6awLhZ/N1BBsPSwfV7tOlRRUVcqXL/LfDpuouGRZz6cBOrXY99MHfGIHkpKQUQ9NRL/NLmH85VAQUd94dB4wCaYJqDzewYPAwkue1rs3uSwWnQNKoAObDnY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729753736; c=relaxed/simple; bh=mePkwdqAkNlSYtpf314OfkDrdqJFxy9A9IR3aZ+GdLM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=EcyL8saJxgI5QyoieBz32zF/C0qYmbgw0V8Vy5G+6nONStnuzC8zMODgA6FU5x4vCQl1qGpX3SLkczVCF4tSzdKMg8mZrjf/DPZBB/jDaX1acUcrPoFpTpuiq3Nvi77UZpFpGpLCZOF2s1qayIR2S4twNYCXXr4MmmdKlt+T+Uk= 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=Qq6LevBo; arc=fail smtp.client-ip=40.107.22.87 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="Qq6LevBo" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ZybC1NcNEo2T/tf8mOAkOgJvWg76S+nu0JaDKwIzwQQjnND8/t4ZXApKorq+wOuH4Sz5yHItmtlGENvWJ2LSqhBEs/1FQUe5NHfhDOeEZAo9176m0ETBzbAyNJEYBWyLQxAG6SdU165IHuhhh9nzmTzIupsLeENO0ZRkmuLyrHOMmZFEI5KEaMJAGixeJO91dKIKDW+fJaBCrgb1RU6Sdw/eU/q4A4ZD/u68XzJd78RWsjVouFObmkmetUv9hW4v7+9dIGP37o2wLs/Ej0pDMLPQo54GBGEIRHbJOvc5MnZeq+xO6/dWFNWF2dcEDAnO+9xVehECaTeUZjDcLptX1w== 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=bgJAyoAgCjGd9NIHYHQdV6kRh5/lgtyzhpXP0g0Lqug=; b=ByKRwDlYyB4x87OsOvqbKemGprDbYLkX9SJG0Xl6gfSC/5nphlyebE2opXlnr+QpRqe5XK2FPjD9WctIC8TkFmmwulV7gebzJOzxx3AkM8uQrlzFOBft+pWDxwNEXFbWlU256Zrw8JsD/ySpvOX+i4Mt6xHXBvC/vePsyV5YemeDz3B8MUJ+FpQkpUgoMveuxEjxUGk7NImoqgAmCEPX8wHFnS88Ag3i9tHCoDDUXs+3a4B7zLBVQyq9fv8DsDJUGC9K2srwUuYXdQ91NIMCkC2NLOFAeyr5M3e7qX3TQNRkDte00fQFAyVPciwsfUUhR5y6hLshYoWIVORfTYd7uQ== 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=bgJAyoAgCjGd9NIHYHQdV6kRh5/lgtyzhpXP0g0Lqug=; b=Qq6LevBo60i2iKQHM35ZGY7wyYtIjbql9B/KDKyMGw9MJEmop6+klo0kKjBZ5gKT7K2Nki2IoJHoKFH09YAzsKyxbd0gHu4RCeb6FZzunmeEhL484pjWI+w1Ef++WCb++mcaXdXUgdMC9tKcDSz07R1tYxYZmA8a7oj/BJPAerPqtiAhlGzJDMiX8Vomq6Ksom/qEjtvchLCkTN3IRSndgDDoZmRd8bb6NqP/IlA/Y1R1lopIKT+3/xdsDowtnLS5zYFX9fKVVxjwuN7Ew9Xp5x8l09mEZT2pvRhx5HaZ7yjEea3TCduoVRnCug7g7/dmXHLFs81XzWt0A1XJ+XZ+g== 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 PAXPR04MB9153.eurprd04.prod.outlook.com (2603:10a6:102:22b::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.18; Thu, 24 Oct 2024 07:08:50 +0000 Received: from PAXPR04MB8510.eurprd04.prod.outlook.com ([fe80::a7c2:e2fa:8e04:40db]) by PAXPR04MB8510.eurprd04.prod.outlook.com ([fe80::a7c2:e2fa:8e04:40db%7]) with mapi id 15.20.8069.027; Thu, 24 Oct 2024 07:08:50 +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, vladimir.oltean@nxp.com, claudiu.manoil@nxp.com, xiaoning.wang@nxp.com, Frank.Li@nxp.com, christophe.leroy@csgroup.eu, linux@armlinux.org.uk, bhelgaas@google.com, horms@kernel.org Cc: imx@lists.linux.dev, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, alexander.stein@ew.tq-group.com Subject: [PATCH v5 net-next 02/13] dt-bindings: net: add i.MX95 ENETC support Date: Thu, 24 Oct 2024 14:53:17 +0800 Message-Id: <20241024065328.521518-3-wei.fang@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241024065328.521518-1-wei.fang@nxp.com> References: <20241024065328.521518-1-wei.fang@nxp.com> X-ClientProxiedBy: SI2PR04CA0011.apcprd04.prod.outlook.com (2603:1096:4:197::10) To PAXPR04MB8510.eurprd04.prod.outlook.com (2603:10a6:102:211::7) Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8510:EE_|PAXPR04MB9153:EE_ X-MS-Office365-Filtering-Correlation-Id: 55d4eaf7-1650-411a-7839-08dcf3fab657 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|366016|7416014|376014|1800799024|38350700014|921020; X-Microsoft-Antispam-Message-Info: ddv6lxc0x1liESdCJhAgHxbl5Kf6WjSs1c3BG9cS4OhR5adgiJ3GYlrtq1gLpx3x2O6x79UUq+mW5yiqWLK5hLd6htY8VsDSw6ZgdSBg546nnNizFfJE++QXy+iLTpvM8u4fuPocsADHSykeVNlNVg0gV90bhtm5eRYmAOu9u/ia0kComia33pG8C5M8vy2v6sI/uqGPTBn+BuF7qhDQ6cKbwFPn138Gy+J6FaRkClW5d4SU5oKZX39CfGg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Dt/p5hjecAij2+G340YOVBI/AYlLVkEEjCUG4ZLxz5rmtn9I+S6b/YvsluWTrmyYhQSRkuhU17nh68PVIEL06HPUB 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)(366016)(7416014)(376014)(1800799024)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: tE8mEGhSclS43Vdn+A3Ht47JHqOYnb/SnGADqMpjblB75oeMku8Sx09zvfX47l3PUvIYKBfb2huHdFTlFMgpKwzUrPTCKBuGRYWMVgnBWC3kInDlQZOpZ+78doRaeNXQbD94OSlRfFI2udA9Jf9wmjPgwhu2PfuIGShS3ImThKuinX7txJLtuBuUl3Spk7dOM6FFineS1FmNE3Y0XPgxCyid1eKtJYwrROORWvp6OsjmTMYACAFY0epmEoUuJ4qt9vPGOr930Fi6Qmu8CqutIfMVNk2qkfKMyYpN6JcpAmyc1Ljev2K3T7RJEuUvtVRD80BoRrveGKVwneUoLsDQXSzoz20W/nBU2vMM2ivqIYwV3mwe5aX+e83PRjixDUbxtHNjAAen64JwlDmVEyXUM4aD+Xhb/4ac8cpO6S3cVuORSGo3GWvM+uC6rscH2KwM0K2fcrQb9GPq+ceqg2v8PUhxOLJlOrVRdRQQtCMocJEgfjobAfeYE6nqtzDrtr1w9woycF71J9QUK3cHG5hcFa3TVjuVRnRlfBGbGOIJvKhdXM9WkGnIQJjf6bIZ6hXociS+3+bl9aESc08eM3+/IUu2ecOfWtVRRsiMGDMQrnNIpH0twl/RpSbWhpH901XWGGJfwY2K1/QRNS+qf9HNiU11q/KnUBU2JA1uiFoDd/uahyHDX+nXZ0LSO8JxKLq5o48n9ki58XJKVzezYBJawDRJ5NF6BBFrZDJp8DFLRw21cf5TSw12qqdflbdjFik8dXAUhdS7hyJtHnWUd3qTplQE5zaNv/ru5arG0SxBWPc7ShCvPBdkGVw5Lu8nUZl1a1yzgMzAB2xnvVgjhvXTLiJe/Opc8dh+q1611jgqnw2KA7okmIKN1oXheizHCu3Z6ic0rxSxhyM/etLXmQ/7H5pooT/DOwTMcdejrpUbXhouI1/BjURlXXUHxE+vBPsKYYO2nTrh3tfw8cmVcCMQws1wyA3iAERR5MdGNDVCkTUDPINb5yWcotauu4l/Epnxlsx5Tb6LPUdeBqJsXO6KjCHsOOuQaBeWi6lNUyn2Mi3pYAwr3Iwyj5eyjpyhrCBFALxzzbvJN/oXnReMrAQTzYoNfoZ5Vv+tgAeKX7tfextinMZpSaN1SC5YVRxaJy0buU9DfBOSpJG+S/muqYGEHllE7twJsp8mCXSLf7HSPAnXrjQETE9PFqNNAi+PterVZpWqHDHTDmBR6ZMwHctmxQVQlOTQD1anjeQlsrC+k8VxHGL/nBiExs2RMvl0DR6e95Hoe/vEF58pHaW6OWEliwp9FeGHWneUx3yMe7S6q3ZnQb31byVvwUZ3Q/a5IoXjgeQWNjsaFFe5bssVrJL0gQLs0CrQ4t2aQgUogJwKEICyJdz/CRcdM2/aCodkImh9sn1tJRX2MgSnO18XM93Xb3g537zIV59QaCZMDEjx5C6dPE5bt6z4ZSUI8rlffuRCjOt2CLOOut8BKyLhERKYik6qbQWZ32EJ49SrhDJTHipyvKZ6a0tTk/NYlxRA/asnSwJnFf55LQM+PN+GSV1foL2e/tSe5npp5kYxAbiDZDbUCdmI1ma5S2nc1toaGQDt X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 55d4eaf7-1650-411a-7839-08dcf3fab657 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8510.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Oct 2024 07:08:50.8627 (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: P0R19FCmZnjXvq364LzTefitNZXEKH0Bb7CLQy+qeIJy8iw2wG56EZGZ0Hjxk/lHsEIvxyQD/dcR4m47pawFGg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9153 The ENETC of i.MX95 has been upgraded to revision 4.1, and the vendor ID and device ID have also changed, so add the new compatible strings for i.MX95 ENETC. In addition, i.MX95 supports configuration of RGMII or RMII reference clock. Signed-off-by: Wei Fang --- v2: Remove "nxp,imx95-enetc" compatible string. v3: 1. Add restriction to "clcoks" and "clock-names" properties and rename the clock, also remove the items from these two properties. 2. Remove unnecessary items for "pci1131,e101" compatible string. v4: Move clocks and clock-names to top level. v5: Add items to clocks and clock-names --- .../devicetree/bindings/net/fsl,enetc.yaml | 34 +++++++++++++++++-- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/net/fsl,enetc.yaml b/Documentation/devicetree/bindings/net/fsl,enetc.yaml index e152c93998fe..72d2d5d285cd 100644 --- a/Documentation/devicetree/bindings/net/fsl,enetc.yaml +++ b/Documentation/devicetree/bindings/net/fsl,enetc.yaml @@ -20,14 +20,23 @@ maintainers: properties: compatible: - items: + oneOf: + - items: + - enum: + - pci1957,e100 + - const: fsl,enetc - enum: - - pci1957,e100 - - const: fsl,enetc + - pci1131,e101 reg: maxItems: 1 + clocks: + maxItems: 1 + + clock-names: + maxItems: 1 + mdio: $ref: mdio.yaml unevaluatedProperties: false @@ -40,6 +49,25 @@ required: allOf: - $ref: /schemas/pci/pci-device.yaml - $ref: ethernet-controller.yaml + - if: + properties: + compatible: + contains: + enum: + - pci1131,e101 + then: + properties: + clocks: + items: + - description: MAC transmit/receiver reference clock + + clock-names: + items: + - const: ref + else: + properties: + clocks: false + clock-names: false unevaluatedProperties: false