From patchwork Tue Jul 30 03:01:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mank Wang X-Patchwork-Id: 13746467 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on2132.outbound.protection.outlook.com [40.107.96.132]) (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 3E8AE29A2; Tue, 30 Jul 2024 03:01:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.96.132 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722308469; cv=fail; b=NYjAVqpxWqytLDG81762z7T4ObEKuRkCowNnRJdUYKjdeLKUPs7/QdnumAMep+Lx91a4sjxzRmPBCmZws/N016hzjLytpJ2kPlWWuCx5GOquNefxIT2TmJcHgP4kcEppdI8riQv28OxdyowhkWjtVxCSXxIOKnbocdP2QRy+Mow= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722308469; c=relaxed/simple; bh=LBH458roW4Fs53izHfkbwU2H9Bzxp4twxzNowClMlFs=; h=Content-Type:From:To:CC:Subject:Date:Message-ID:MIME-Version; b=MmzOxdUZLI7u7gmzT73ZIRKGaTQOz//SRa6zApHJHcrCQrGESVrAYWfrRzuJusbLsYm/Pg4YHDorsj2bOBJ28PM7pbOkZ9nj5iKeJRs6dvOUXIMinxhpiJAydkYIpyl4pXoDbybGb35gsFidPqf62U3cFlyRopohEnUsCL7xQZg= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=netprisma.us; spf=pass smtp.mailfrom=netprisma.us; arc=fail smtp.client-ip=40.107.96.132 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=netprisma.us Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=netprisma.us ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=AmP1e+xTN/hRY4s4SsQ9tBR/oml8g+ZRujbXZXGILv8XHQZix7qxwNOAhYjP2YhzNALels+TUzPPy+/9jMJbRjcRzjMe+WdWbCalCWrc9hlD+Kka9ap6vpPx4ousXhNXeK0NJnXd3p4IDcrJuiGOqWldk3s1QCFGz/aFoWxHn773g2Kjz7XRzdknLLnoc8dP3XrWg5/xkv8Xp5WLdzSD3WQ4v7usUWdFpmdA3QJ9zNCW0RpE2wz3F8y7eBT2jjYP3pGXVd9Kufld2c42O/Jj/2G2hom3Khn9lbTTmycXc24HeGR2NoDZK4jQ0Fy2JP1KtTot8n78MqA22oAWsyk2kg== 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=G8ScYXhgDGyyTyA8bQhpBXkkApj9Ei2JW82le1prGAc=; b=iNpmEgxuXJalzkVe72hWJbv8nxyQ+q10oeRKQFvR87sKzYhCeg73gyrhc3D3RkMvbEmj2lcdTRSDFi/X432o1qGaJbbFjKvKg6bTZ5aHvmwMtOMSPn9Sm5Yt8Ahg4+tLkQ+t3SlSPymdE0uX2kuYe/R++Q57RAJ5V+JKTvR+5q7gSbxagkpCfVLihbn9eGwz0cMfnVNe2jKfIe/HfZyr2eVgW2MEuoMhm9YUw/eW5POXv65m9zTnaH7f1y0pOpOPZz+MZ9ECTud3Sgi1djvZW/8urzT1WCToUaCVg2hTKdQlEzX/H6TgSOxYife4rhF5WezWRy6+K5cWneeoyKjn0A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=netprisma.us; dmarc=pass action=none header.from=netprisma.us; dkim=pass header.d=netprisma.us; arc=none Received: from PH7PR22MB3038.namprd22.prod.outlook.com (2603:10b6:510:134::12) by SJ0PR22MB3251.namprd22.prod.outlook.com (2603:10b6:a03:40a::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.27; Tue, 30 Jul 2024 03:01:06 +0000 Received: from PH7PR22MB3038.namprd22.prod.outlook.com ([fe80::5bbd:4bf9:3952:a57b]) by PH7PR22MB3038.namprd22.prod.outlook.com ([fe80::5bbd:4bf9:3952:a57b%6]) with mapi id 15.20.7807.026; Tue, 30 Jul 2024 03:01:05 +0000 From: Mank Wang To: "manivannan.sadhasivam@linaro.org" CC: "duke_xinanwen@163.com" , "loic.poulain@linaro.org" , "quic_qianyu@quicinc.com" , "mhi@lists.linux.dev" , "linux-arm-msm@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: [PATCH] bus: mhi: host: pci_generic: Add support for Netprisma LCUR57 and FCUN69 Thread-Topic: [PATCH] bus: mhi: host: pci_generic: Add support for Netprisma LCUR57 and FCUN69 Thread-Index: AdriLLSmIA1eKqAqRNK24Kol0vuwnA== Date: Tue, 30 Jul 2024 03:01:05 +0000 Message-ID: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=netprisma.us; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH7PR22MB3038:EE_|SJ0PR22MB3251:EE_ x-ms-office365-filtering-correlation-id: db0ac99c-86e9-4abd-5dfe-08dcb043dac6 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|1800799024|376014|366016|80162021|38070700018; x-microsoft-antispam-message-info: ojq25zGNS8878Z38Vb3D9K/5XpbBhv5WzRGkk5SwMNObIB3u4GPDIUoqW8xfWXlqlbxYGPErf0Ok5eIrqpwyby3Db3YYVWu5kdAaaU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T4xzNV8H37F9zp+IeH3AMtURRo5KFDs537521Iz3i3pCAA3TY3bNv3//N/A7z7uks9WbQ1RDu8WG+aT1TehNIYQ0vNjYb43X6/yQSOTatRtdU1kx1MiGmPrbhZnmZ1w/V6Iv9upRlqoMaKYV7WH1GgOznMKR+ma+Q2VPzvAQAs6KLQKsXmi6jnW+SZ/0PNk9pNqCDE5jcMgIDHton4r5ULo1S7icqhAYbYAafD+rai68B93aVHtszfWiFkwzcxz6FaFHQOc6LO6vOUpJHPE= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH7PR22MB3038.namprd22.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(376014)(366016)(80162021)(38070700018);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: 5HuNOfHEHplY4LK5ObS9N1i8mxyPQwjJIIRUHxJxmwz01r35DW7ZJYNWiNQSUgscV9nMld7cy9gK9YFmPB/M1uQwn+Kz6yMjcT7jGvZ404vIbzo1cMmP4Gj3mpP0BDAMvcJl5PdxyWXH0zGajJEttRdblqtGVFFbahtA9FDc5le7uqouqOvpiByTQPXWBT61cMmdyJL4DULuCmUwMoVNgtNGnqFjG/Y/q2vbz1AzBGkGWQFaXEN6atfS5moC0vxUw2cIUPz5WZ60F2RbdoAnjYG7HXoDlvVoqTffETJbr/THqnzkTX0KSlC9ZxcxbEbx1dz6byDI4jXbab54KGibKNkh7bXzOKz3nInJv1T2OYGtCoH8fyntSstpp8DFwu9+1aV1egmpX/uWs9IFeB9j67JZ92hH8B9VHdK9vaBe5b5Sb271gSEylsFDnkujIDJPdKDthF+c4Qy4ggyY7viBEKKNy7GpBvYOe27wMqzWgXS3Ttm78Frz8rl6u+AXipIeHS4x9R/s0rg8DLesazSFGWYZ4HecSXvj0eRUWZvoCaobFt6WCwvPqZuTa6AOnuE3wXH5qXuicbEN800eDDqaD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version: 1.0 X-OriginatorOrg: netprisma.us X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH7PR22MB3038.namprd22.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: db0ac99c-86e9-4abd-5dfe-08dcb043dac6 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Jul 2024 03:01:05.9070 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: fdc90941-0026-4225-aaa0-15fff5e87036 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: v1faRiQwCYjeryv5XcB5ozXtIT38lF81h1eTg+mL+i4H0heElxIjRvq3Wrl8/NPh5GHXkqeKSh0DHx++e1Q1Rw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR22MB3251 Add Netprisma LCUR57 and FCUN69 hardware revision: LCUR57: 02:00.0 Unassigned class [ff00]: Device 203e:1000 Subsystem: Device 203e:1000 FCUN69: 02:00.0 Unassigned class [ff00]: Device 203e:1001 Subsystem: Device 203e:1001 Signed-off-by: Mank Wang --- drivers/bus/mhi/host/pci_generic.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/drivers/bus/mhi/host/pci_generic.c b/drivers/bus/mhi/host/pci_generic.c index 14a11880bcea..054420ca4c8f 100644 --- a/drivers/bus/mhi/host/pci_generic.c +++ b/drivers/bus/mhi/host/pci_generic.c @@ -26,6 +26,7 @@ /* PCI VID definitions */ #define PCI_VENDOR_ID_THALES 0x1269 #define PCI_VENDOR_ID_QUECTEL 0x1eac +#define PCI_VENDOR_ID_NETPRISMA 0x203e #define MHI_EDL_DB 91 #define MHI_EDL_COOKIE 0xEDEDEDED @@ -680,6 +681,28 @@ static const struct mhi_pci_dev_info mhi_telit_fn990_info = { .mru_default = 32768, }; +static const struct mhi_pci_dev_info mhi_netprisma_lcur57_info = { + .name = "netprisma-lcur57", + .edl = "qcom/prog_firehose_sdx24.mbn", + /* LCUR57 uses the same controller configuration as quectel_em1xx */ + .config = &modem_quectel_em1xx_config, + .bar_num = MHI_PCI_DEFAULT_BAR_NUM, + .dma_data_width = 32, + .mru_default = 32768, + .sideband_wake = true, +}; + +static const struct mhi_pci_dev_info mhi_netprisma_fcun69_info = { + .name = "netprisma-fcun69", + .edl = "qcom/prog_firehose_sdx6x.elf", + /* FCUN69 uses the same controller configuration as quectel_em1xx */ + .config = &modem_quectel_em1xx_config, + .bar_num = MHI_PCI_DEFAULT_BAR_NUM, + .dma_data_width = 32, + .mru_default = 32768, + .sideband_wake = true, +}; + /* Keep the list sorted based on the PID. New VID should be added as the last entry */ static const struct pci_device_id mhi_pci_id_table[] = { { PCI_DEVICE(PCI_VENDOR_ID_QCOM, 0x0304), @@ -778,6 +801,12 @@ static const struct pci_device_id mhi_pci_id_table[] = { /* T99W175 (sdx55), HP variant */ { PCI_DEVICE(0x03f0, 0x0a6c), .driver_data = (kernel_ulong_t) &mhi_foxconn_t99w175_info }, + /* NETPRISMA LCUR57 (SDX24) */ + { PCI_DEVICE(PCI_VENDOR_ID_NETPRISMA, 0x1000), + .driver_data = (kernel_ulong_t) &mhi_netprisma_lcur57_info }, + /* NETPRISMA FCUN69 (SDX6X) */ + { PCI_DEVICE(PCI_VENDOR_ID_NETPRISMA, 0x1001), + .driver_data = (kernel_ulong_t) &mhi_netprisma_fcun69_info }, { } }; MODULE_DEVICE_TABLE(pci, mhi_pci_id_table);