From patchwork Thu Oct 24 06:53:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Fang X-Patchwork-Id: 13848419 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2059.outbound.protection.outlook.com [40.107.22.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 D6E701B21A4; Thu, 24 Oct 2024 07:09:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.59 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729753773; cv=fail; b=fj3qUhuQpW2zqHgA5L5gekwUtdZWB0Fg9N1+Nfq1KN6swjMN2KfoL8Hd/8YeO5ZMfBsjr9vog0h0qMqee7hNNcvFpdqKKgKexwMBtr54jMwwWI2FGqrH4DVNo9XUa8kTKIu583WXsKTAJoroUzM533vJ2AU1D2Fqe+Nfmq96R2g= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729753773; c=relaxed/simple; bh=dfiezfPnwfj8kZhHarcT9H1rmttJHrwAW+JAdA0ijjM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=HtMGPVVyX2as2WsYvt/VAp76wrNPYitUFzOsMWKDDcyo5EdGx/g38ip29F3nXT1jtoMJCIMAC1HW1AEeCcvDpf44uy63kyuA+63M+SPcDUPmKj6MCL9VvVpMUw+iZAMQxOacbazjFPHFdDODL0aS7ECYTFDzgE4uXv0p9tKw1RU= 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=fH+FEFCk; arc=fail smtp.client-ip=40.107.22.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="fH+FEFCk" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=nPK9GjXIjhZNvXQpvOgZlSE0ekpZ8taqMMB28xQjcgJWCMTt5+Z7Q/xGkOxfXKf9Mttr/hN4U/z/gMzgXjd3Oq35f6Z7CNJEfzjfuKlhl2e7qFxXuxA+YRaur2nGP60SCyJ+1ahBTD2SuUd0rxnEd3GUnV53iwvCX3OfSnHnWVxiV5g4I1X631ZsqOqkJEOJB4780OU7sJskAb31JZ70+5+VjM/q+lyBeM8ONf+3DvpLfvxasRzWy2vkT2wvOvPIm6xudh/nGboYbuvM2tIVgQmgeuL4xuxek8SLofsQKzacUGyMEbhi1ZeCJpsT0inmdck8OMEAQE/KC2vZbznAPA== 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=kWfM/tVQ77rN+9LWuO2m6Xtk/LNlxj2H3IU+Zbxpv7Q=; b=IFahPUem5988cW0BDkjRPHlKLz2RsSYWR3o/mpeKSvfwNyt87AFErEIMqm1AQTb7u8vJgmcf9osgk0sNg2mCFRAWSd/5Q1maIv9oND41flJ8yPqdaS93OmJ5bOmC7fX9eaFWKh56TPKbnx1rSwNInW3S2fwzka88RbO+BttdOgdS6VoccVS6yWt4IM62oZBxBPzIC17EpoYfqDKUHtlhCkL9QZvrH/SFCIa/miUJ+B0Nio+YqI/yXbiRxP4L7cK9xl2XqI+JAlnfr+Qit/tcUjUGEr7LqiMTATi218Gz4AInkKVbr29DRFJtUy6L6hW35BmoAwomXWN0n2fUtrcOiQ== 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=kWfM/tVQ77rN+9LWuO2m6Xtk/LNlxj2H3IU+Zbxpv7Q=; b=fH+FEFCk6yuFO0CkAOqMhg6p37+hKykcFDI/7eAgF08VkFHNXbq1lM0jZDtbKzB5f6wNcY7BN5I3ZThFS+95UPIx/3P5WF4BnozgxZxByBYcUto8Z3Fi3BFpT9yP6PrEjNudkNxDTdsXHrsHpPhzoeIzRbGZvg2WF+SSgZs9nFYrANY620yal43k6yVn6Ej9QrmopkqYdxE5MAwywKhibarsgSDg253Hmcg+FQKMgvYD0PrrA4Ezm4flRbuLPYZluuJ7ILgKWG54jCjlMrMyuy2d7OuiMyUzzvpP5KWMMg5Bg3QZ4MxW8AGeCwgUD4VZRFdtqtrD7dgN6vexpiAeqg== 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 AS8PR04MB8627.eurprd04.prod.outlook.com (2603:10a6:20b:42a::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.16; Thu, 24 Oct 2024 07:09:28 +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:09:28 +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 08/13] PCI: Add NXP NETC vendor ID and device IDs Date: Thu, 24 Oct 2024 14:53:23 +0800 Message-Id: <20241024065328.521518-9-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_|AS8PR04MB8627:EE_ X-MS-Office365-Filtering-Correlation-Id: d52f4834-196f-4b3c-633b-08dcf3facc79 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|366016|52116014|1800799024|376014|921020|38350700014; X-Microsoft-Antispam-Message-Info: ePzczA/qE1/PEtK9Oh5H15PgNa59fZwd16+CfUTmH7nkIB44cCVaedYSR4cx08yJxXRl1tzWkSOumlS6XY32Vm+CgPQ+HY8UbzSnRF+mVN/FXczuYDjTeyN1CUukKMKP83lqtt0VjgK/IcJlwcdmu1Z9l4vNltoWVRZxl3mK5AyO+yzTYy5XAXOiIEW7c/T6b3NakiuSo00lZ0vblMyFwz3Tjfo/H/mJTwgeWKPpi3H91fYT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1XJ2QZC0ZwHzb391IYN5v4PT8FLLN7ByQ4nKE74FBn/HiZQMekOKC1QMRQwHRGYdm3/xsmLCZ+j9I4davnzWdRn 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)(7416014)(366016)(52116014)(1800799024)(376014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: AleHlVW4VpRC2nvMJot23aVOu3a8TsWIccTShELDYFeQYM3/wXUeJrog02uX/l8+mC7zra691IUEeF9dKwMy8IBhrJTe8JMen+qBLRmosOSPI+mOAvcASitgIYxB4+MxnPdshWokaP9ltpj+9ouOLIucsoOM6m1D80rjDdZZehyh41sCezfb4INX7NdGcEgy/NW01FtSrnP3w0OBbce+fiwXoOrPlluPZbF6VE0RiunL6feNchxiCQRYPtI3+P9p2mmfgE4/u5WhdW8HYiGTi/7kAdq3J9bUGSdmf5SgZsZJfDVB0FgZaGSUwQaAeVcTCXvB8QB5WXWq9HaZ7LzYoe7tbBwxTE018+UwNm8pRrv6gAtYaZ5ezZqrvO3fWaEOqkmAwBseUNXu5mciRRtoU8ekPWkd4tEhzzxcist/YRIy/Z5Jwrnb0r1X3hWQVib9hi+G1lEAAgX87cf64lBEagoSzKA8N1ErhKq/OLCE0utFqPWf5HQ79lLhciCq4/p+qFfjO7lu2hgPnZwqQ3TpiFhquqSAbB6bz+OhaDwECGWqJkVh1tqIlNLyp4UPv/Htw9jaIZuhsMokDPOx4q5S7H7wSyGpYJGf2bsoUCi/YCoTaEHQuUaduvmM2EKlVTSac1HS4vYNnRXRuKGGdU41BenGhWS5b+AL2+yyK9SNaBXbbiD/u1GKd+1v9wg9DfP3ksBWcFiemK7u1oonbngRMlfxzB+ECj07n6gvj9Cne+8W+mKaJRXCW/vgrHqRy2az/B/uoM13tgGpKn0WCv/hBihXpDQPmYGcQCV/MM9tXGBYw0KdWQdq5k6G8AzuRF2KRM6UROlDEvCD1zi7NSXRoXT6MnI+nPmsuw2PuzrXydrgUmwwkOcDFGzDtXf2MUhk+PU3zdMLbsVcCgCjEZEZqbG8rml9CC5VlEe6hgcWFW57TtEEqgO1sU+z/AIS0+HdWx2u/NJbPosKQnsivzYXEbTf2aDevAdgsVYx5d1xryu+VRAhDixWXj9uOuQ7agg9q3O5laD8f5KwW9WXSqoVCzyynVVUf/firHBSfJmtr3k1c3UIUmI44TNRaMtCBgsib9M9Lf4d0vOiqXnTbL7s4/tx8brzghJt3prkA/uvIkzvZWuvPbvssqC2+8PEzOdpWd1NBz9RaZTPV5N/7Ue8B6gp41hABsvPV4X4m2hVBKsX/WwpxDvrCwS1Yz1fA0X2L1qwP5roUmcQ5Xnoam5bdNZpNAMxTaN9jOGyjy5sqPzzqZnbH6qI4qmJfEGsAkcbDnESPGw2bNCrNZJhuGn9MRBo1j2B++P9RMPJpcKm6jZIAAZ/8GXitH9goz+fvCeyKfUv76fhQyFi0t9HP+b+Ul4KF0J3u5vYGenZxE63Supc9teRficwt/5yRTbt8uiTnypu0ErEs8IaL8y16LMsaJLuGyHbBC8dijW8W0gI9TrBvlZTDkQ1GqDMe2SOfyOFkJGkff/f8yCihHNjFggA/hotQF1KBX+ZQijf/Kc//S2CUsgxpK/ExU7bGJiH+GwSWBya+cqFbPTYuMxUlH65FA5t2xzmanMJ1+yeEDw3f7kMThyLkDeNQHlQFRy26l17 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d52f4834-196f-4b3c-633b-08dcf3facc79 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:09:28.0720 (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: L3g3NXX2ibrfZlpbdRRR2Uwd+aZmE+xm+xS/0e60t+Qn0sigFDIjak9OfGG1V7HC/Ea/OjbtqrrkUlqXRP84CA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8627 NXP NETC is a multi-function RCiEP and it contains multiple functions, such as EMDIO, PTP Timer, ENETC PF and VF. Therefore, add these device IDs to pci_ids.h. Below are the device IDs and corresponding drivers. PCI_DEVICE_ID_NXP2_ENETC_PF: nxp-enetc4 PCI_DEVICE_ID_NXP2_NETC_EMDIO: fsl-enetc-mdio PCI_DEVICE_ID_NXP2_NETC_TIMER: ptp_netc PCI_DEVICE_ID_NXP2_ENETC_VF: fsl-enetc-vf Signed-off-by: Wei Fang Acked-by: Bjorn Helgaas --- v5: no changes --- include/linux/pci_ids.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index 4cf6aaed5f35..acd7ae774913 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h @@ -1556,6 +1556,13 @@ #define PCI_DEVICE_ID_PHILIPS_SAA7146 0x7146 #define PCI_DEVICE_ID_PHILIPS_SAA9730 0x9730 +/* NXP has two vendor IDs, the other one is 0x1957 */ +#define PCI_VENDOR_ID_NXP2 PCI_VENDOR_ID_PHILIPS +#define PCI_DEVICE_ID_NXP2_ENETC_PF 0xe101 +#define PCI_DEVICE_ID_NXP2_NETC_EMDIO 0xee00 +#define PCI_DEVICE_ID_NXP2_NETC_TIMER 0xee02 +#define PCI_DEVICE_ID_NXP2_ENETC_VF 0xef00 + #define PCI_VENDOR_ID_EICON 0x1133 #define PCI_DEVICE_ID_EICON_DIVA20 0xe002 #define PCI_DEVICE_ID_EICON_DIVA20_U 0xe004