Message ID | 20241009095116.147412-9-wei.fang@nxp.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazon11010059.outbound.protection.outlook.com [52.101.69.59]) (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 06A101922F6; Wed, 9 Oct 2024 10:07:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.69.59 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728468430; cv=fail; b=U+jhvKcWupjRvE1H7MUNYa2TuRsgS72aUFDJ7vxcWx+7y01UYngv4KneDhQ6TAZMbNmITHOSnVpIuMvjM/kgItM+X6va5TQ2XWjeYBVjkiv+cVO7ygB88/MeS2pDvlSsa1uJ5ueHVa+CYPL3+MrmT2y79Y4we7ML1CwK6l+r4jA= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728468430; c=relaxed/simple; bh=bavqQl0aoqUHAjRcsFCoVvqDURe79oU9IwJ5VOEOnas=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=XO8tD36opm7lOp005zpNMzMnE/TKFfITrOYv65btxpK1F2PU7cHWNpvrqHIip1aKsgHiUR5FYPDjYWyKWP4ZedpSJRcDUYs9GiusnKXESNLPeT6cqWswn4VQit/UVoZe/wl8cP2/kOYZ7Op1aVtjLRu/YxDHev+cdlScu7GWFMY= 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=lrSqWVf0; arc=fail smtp.client-ip=52.101.69.59 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="lrSqWVf0" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=YsbVj0EV60gFWAhSNqsdsxgZpjSJuzabhqZbwAvctP5XVWkhQgIY5G8vMo/yCvfkqmwDn7pBCEE/El1zmh+7a7nXUafKF+whM4tdm9/HSzdMjmYQ1FAwUy3hNob1DjxiSR6NRFb+r/n6GfdeVktowD0w1QYBNWEOa7WIxrLCHfGcMDqks9mMmEcJMsVPDq3/DIrjJLrzX4MHYlEMtYk9/d8U0C0bUhAAhjrR3IfOBSPI/+0xNZ8YMxDKpH5GAZAPVnWmcWgsLc9wn0P4QFxjm8gO/iNWhCLVyCwJUwT5Dx8pGPYXhcq37qX6pE2vfYyHNQP8oOEQZ7umhUBekHo6DQ== 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=QPliVlTAjyRM1Tuq9GY+56O5XqgUPKRcUQVD4O4fa3g=; b=oePdVR31cKHkZ26b+N08srihT9vGF6sCuc+n+MP02ljTLbc8GH+dscmYZujQAgNzaRSN2qAYI2FCOQidHZjaGoLOHDABhxSytwQvIMV9oGceAAl98S+Cnu77m1qmPD2jLGozDz4qv6yCT0/a5/+jF371RsDUvNSMUlS3pl9yA4mDg4ansqDns3r8EdJhJ9DQJIUIK8EmaHrguCL7oDn9pl0GqKt7srxH4ECBqz8FF87bfxCYEUPbpSj1juumjW3r0klSpG56CHT2BA2b7NWN/FFgNPG8UdOes+EIqtgkgTnDOK5N2VqUugpBepilxGfDQkQqeTwKbgaeZxdIZFNiYw== 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=QPliVlTAjyRM1Tuq9GY+56O5XqgUPKRcUQVD4O4fa3g=; b=lrSqWVf0PJiqdd9WqpBOtknwcUGmWFPER/hycBauN3JAgIY8tJX8O9svCxfdrfc/9L9TIrzaqSTuAL0VF+u10M3bHcdIbGqpSGBPUVbxDGh5fQuJ0n3t5vAOi+/pAL/6gg7uvBRSvukoIqqwnxpEVDTNPgufAstBRZOsmWgDBuEghhKXBSvAwQJAxYY/U+rb5r0bR10T/Kf0OyYK+KGJhZoPVfQCu3bD1NXYr6w00Tva5dZmSeeL1STvGO/uJcijvK9i2wVrAqk5lGjFYNRed2zWSR3JOhgpdJSzhwXtkvZ3A5lcg8/PNU2mGYZ+SNnyYux3V+nXEjWvIdtV3BR7rg== 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 GV1PR04MB10154.eurprd04.prod.outlook.com (2603:10a6:150:1ac::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.16; Wed, 9 Oct 2024 10:07:01 +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.8026.019; Wed, 9 Oct 2024 10:07:01 +0000 From: Wei Fang <wei.fang@nxp.com> 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 Cc: imx@lists.linux.dev, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: [PATCH net-next 08/11] net: enetc: add i.MX95 EMDIO support Date: Wed, 9 Oct 2024 17:51:13 +0800 Message-Id: <20241009095116.147412-9-wei.fang@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241009095116.147412-1-wei.fang@nxp.com> References: <20241009095116.147412-1-wei.fang@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR01CA0175.apcprd01.prod.exchangelabs.com (2603:1096:4:28::31) To PAXPR04MB8510.eurprd04.prod.outlook.com (2603:10a6:102:211::7) Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: <linux-pci.vger.kernel.org> List-Subscribe: <mailto:linux-pci+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-pci+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8510:EE_|GV1PR04MB10154:EE_ X-MS-Office365-Filtering-Correlation-Id: dd5c38f3-501a-44d6-233b-08dce84a1e6b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|1800799024|7416014|376014|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: FEdHiFuKdhN8l86bndPPnctkFY/fZUCNE9FA24DYGW/2o+Rzu0eBjptTxSzItnsKn787C42auMXBqH3xp0YBx+NpNynrDT8nlBq0h3U0KD5ayt3Km67WgC+If/S5hi/qqOwq2fQAJ59hQ9xZJpnq7icUxhfVOjwkgXfmV3538eUDI5thFNOgkOmzJTmGjiQgfysDjekqdaeFhzSoB+hXfvpCid0AHzk6oh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TH9OG2iorYyd7wFB7bHkL9Z/uFgsezz97Cz/p2E/HfT9u504eA89wtWccJYLq9IpnX0qDePaDPoZRTN9y00= 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)(1800799024)(7416014)(376014)(366016)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: qJrSLMgUFF/R2UxsbU8/fnQxQ5TY1SsacuGBg66ta5sk0SzZF0TCNjGSkVz0NYtsEVNKTrffIa5WOCd9y1RpVT2n4Ge4iE4khDGIs8EnSe2pIc0u3p8IdpTkmmAGEGCi7RHKVnMPswGezdpk7dSIjhRHtgw1scVbVFnA8sDsbbSKKA/JgkUxsDLsAvJlckM+XANSHPRHV4C5fF50cIyMapoUQ4JYIMru60HyOhHyWyiweaAK+dpv1KLiTMxu5OYlNubdopMvK63KPk/Jf8kKNv08vPLRT3ODQGRz2dDQFAjNdiqR4yk6PqOW+6Ni0o8Dgj1+8eHpPb+BMYCxOFBW4SwgnyY0RqJ6rdEEJ8rGxhFr02MOm1KAUeu5tCC3qdELjLLXYfvOiydLUFsQTjYraQ1EqcaQBMfC0IOpyXofotToX5EW/GY5oV9m8WT7V4sJrhq941RJO506LRYGT1JFm9m/eM34q5HZkfWqXgxBxMWfqOam01B67Gi94GEQJY2q5+7YPFsif3fGRtcHeTxQneSxytPJoh07qgsUDU/37DBA1+tLY8tmXY/3RH1sEP9G7bdtgUcoY9CVsgg2fIq21tsoQZZ5y7Ivk7A7So8MvfoQmrTdrUHOBVyX6zAfN8BwYxJDEAAXfO6JOVZuX0l8ju21kDfGmxAc4GphxNh4xxhwFwjhtWSUAcDbKe3xBtqvCXcV2sM8AwfOavBiUcKCLUA14uLIIiOBuFjDmbwwEtjBfp5fCEK8KyqUMtSet0NoaltPlhN743ketn4vMILZMPRrHQ2w18Bh6zQo811sxB4Gybi4hUWRHXidtWDLvDW9LCSREN6Bp93UBsK5N8s/HwTIjds5VDH8bX5KB1NfE+Ug4RUF57AknZvx0y/NojrnzIf3fNqdJeBQJvGPMn+4Baze7ngFr4FWG+Mp9Gl6SxPyJl4QyTtTOjP9oVGaS+dUHP/RdSaydbu3bVMDSUtVokR9a9psbbvPRUegcKgvQC5onCFpPyGynhKVHZ6uCzwz1Og83sb2WixNqe0ZVyj8kKyz3ctVUh4cXYjLBt07nZ9dCA+Dr0InPa61BahAeQQo1c2KgeVM4IfmTe8It1NG8hBUJlxKH3HzKflvjUQpHhNNnp6KUJ/+GBvtrwtGmgnOHLuqW14etkA8J9WdOwZnRDgu+t1ylINbnmN9ebrhYlb6JEkOQbCio6FMs27hEegNgWxwapgBkPv88xgEiqh4OfLThTyIqyjjHPpy0e2EiH3Urlvk6rTGbR+9BKHXC+teKYzlwld7hmklesBA+636GW6jbqBBTGozGdnrhHK6BUTg5dWU6BLtD+ah/Sr/sU4740CRMYFh+cl73I/29FqavSoCnMKfiFR1Qk5wtq8PjrEQdl6MEJjgZgq7O61jknAE0Qfp3xV5wFcxj8FEXbNFr+gz6pPr2BfWlzre1A6sqcAOZunu9tQS0J596aKAaSkHaYv0uXv5LQWCLTnveomHJa5dLYZ7fwQYXPb3cDvbrIXOX9WWzjG6fgNoekqDPdEPhkzqzTSm+uYd4u43zyN/Cs7cYAKYlVY5va6Sye/dKIhNxsyu4LpA+9G6gAKEHpj2 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: dd5c38f3-501a-44d6-233b-08dce84a1e6b X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8510.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Oct 2024 10:07:01.7082 (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: 6R1DmBfHXRJKJuYR5NTu3aJCEVZT9F++BXD4bF/J91mIzrr9WQHVo0N+K3h6GdjVqQZxkU2Lg6TRzTsqWEtm4Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB10154 |
Series |
add basic support for i.MX95 NETC
|
expand
|
diff --git a/drivers/net/ethernet/freescale/enetc/enetc_pci_mdio.c b/drivers/net/ethernet/freescale/enetc/enetc_pci_mdio.c index 2445e35a764a..9968a1e9b5ef 100644 --- a/drivers/net/ethernet/freescale/enetc/enetc_pci_mdio.c +++ b/drivers/net/ethernet/freescale/enetc/enetc_pci_mdio.c @@ -2,6 +2,7 @@ /* Copyright 2019 NXP */ #include <linux/fsl/enetc_mdio.h> #include <linux/of_mdio.h> +#include <linux/pinctrl/consumer.h> #include "enetc_pf.h" #define ENETC_MDIO_DEV_ID 0xee01 @@ -71,6 +72,8 @@ static int enetc_pci_mdio_probe(struct pci_dev *pdev, dev_info(&pdev->dev, "Enabled ERR050089 workaround\n"); } + pinctrl_pm_select_default_state(dev); + err = of_mdiobus_register(bus, dev->of_node); if (err) goto err_mdiobus_reg; @@ -113,6 +116,7 @@ static void enetc_pci_mdio_remove(struct pci_dev *pdev) static const struct pci_device_id enetc_pci_mdio_id_table[] = { { PCI_DEVICE(PCI_VENDOR_ID_FREESCALE, ENETC_MDIO_DEV_ID) }, + { PCI_DEVICE(PCI_VENDOR_ID_NXP2, PCI_DEVICE_ID_NXP2_NETC_EMDIO) }, { 0, } /* End of table. */ }; MODULE_DEVICE_TABLE(pci, enetc_pci_mdio_id_table);
The verdor ID and device ID of i.MX95 EMDIO are different from LS1028A EMDIO, so add new vendor ID and device ID to pci_device_id table to support i.MX95 EMDIO. And the i.MX95 EMDIO has two pins that need to be controlled, namely MDC and MDIO. Signed-off-by: Wei Fang <wei.fang@nxp.com> --- drivers/net/ethernet/freescale/enetc/enetc_pci_mdio.c | 4 ++++ 1 file changed, 4 insertions(+)