From patchwork Mon Oct 14 09:33:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "G.N. Zhou (OSS)" X-Patchwork-Id: 13834530 Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazon11010041.outbound.protection.outlook.com [52.101.69.41]) (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 16825157466; Mon, 14 Oct 2024 09:37:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.69.41 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728898678; cv=fail; b=S/ORbp3jgyXTAT09VPFw/NU6+jVFSeJz5B4N8zSeoUqAiYRuM5awaN+5NO8JjM3Nq1JdNfsXrcr1ZUk2Sb+/eq9vdV//iXPRNXSR64s4MhJvyBAmYu4VAG7v+JL8/B2Dsl97WlkPfWgWS3EuAFUzMLO/vIXCBU41wppHOPttS18= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728898678; c=relaxed/simple; bh=lrm4+Kev6w38sMPrGQpGT6YJSIOfz3D4UVNCfLJTO+w=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=rkeAF+lK+8czlW+Ro6jbOrCYI7UGB0y0fRO6arUjroKXGWbAycvkZ901OBgh2U4dECRspScW8wM4wRTLmBeTd2fX+lM+g6Jqk2fYexsaBbISTwy7JP+nIkMTKixvpGHXyRW+4xyqOzSJd3APYFfia6Efm0wq/+046zwgB4IsfZY= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=wybKOIjj; arc=fail smtp.client-ip=52.101.69.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="wybKOIjj" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=i3LjkuU3452BWW32kEoW2s8wbUcAZIJ/eEMmqIGuXPtEUrSl4NR/pcnVRJxc+YTkhT5S1JHQiDHR+wH1KFd52BctlcYCPQ8UVTk+ElWj1zz/V8IiBQo7RTMDBf+dVNIck6hOovpMB3a3Rg+HtT06adtTl0USP4jNMhMB3DFYTceefaLF/zDps5bCQo8zXMUUOV9xIPtsDGElPOSTrzG35yTaJJ9J4UTzQa2rBsYIBnBUxqZu0Sd55Y5e4xEGOlQP+hrbvrxkRk3u53md+vQeK2i5V+i3kgfRytvVnOHdD7N1uIXIPJQ+7cOF3xTo7t2A4vBphrXmhntkPBIg+pCLsQ== 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=X7foQ8mCP4j5rUloG8PWgVJc3iKisntv3g7fbrnyyz0=; b=IHRj8pIk2Y43OnRYHI+mEv75L07P+KONSHT6QsCE440TfFSNSGwIr08RaHK90g4VxyysF7qSWSNi1waZ7O1vZls7GvcUosokLu2iZ4z7biETJOrjKjlEC7P07/XTeyYb466ouO2ttB8R1Qe9lPfnmXMWRb29mSRKYvgOxlnUeqSsUtJiUwK2fYFazOyd3DesWP8rs0B4/q1yAp6RoRTdWjWctGOjDgQLPd6OmjtDtz5LoygiJXdZqMp6z0CskVcO5cUe4i4ptd3D8xRTiMe30bldjXS0yvbk3Zc2O8YDMdTA9FnJYBZZ6w2Qfvz/bljJKzMM/pHp/bmWWuZrYTSOWQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=X7foQ8mCP4j5rUloG8PWgVJc3iKisntv3g7fbrnyyz0=; b=wybKOIjjXnQ6IeAkNcKxGpHbrw4yBFb+4yNd1yznbhTEU8OZdXIljaFrOq7pXQr1k3aTL2IykrOao7y7Dc1LEyj+QKZePfug7O+K+qzzox61urx51/K03vtDgSadMfLJDptvSrcD6PFlegoyXIQ92ScoLsvpHcA7iDmHf0qtqaFMLsOZ920u8yIMq2c8Apt1WRTemiz5tMCayyv4hjf365SHt6Hs28S1YYQijF4ej72aPCNFYbkvGjkbu5gMrW2a7pHceADi1hDJ3dnqEMkChWIgdrysoUzKEOjq6Njy6QdOU1q46WhgL1j02V9qi+fZZzvcFCyxtxHT4bfiEgO3Dg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from AS8PR04MB9080.eurprd04.prod.outlook.com (2603:10a6:20b:447::16) by GV1PR04MB10942.eurprd04.prod.outlook.com (2603:10a6:150:20f::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.26; Mon, 14 Oct 2024 09:32:46 +0000 Received: from AS8PR04MB9080.eurprd04.prod.outlook.com ([fe80::93bd:316b:682f:5e59]) by AS8PR04MB9080.eurprd04.prod.outlook.com ([fe80::93bd:316b:682f:5e59%6]) with mapi id 15.20.8048.020; Mon, 14 Oct 2024 09:32:46 +0000 From: guoniu.zhou@oss.nxp.com To: linux-media@vger.kernel.org Cc: laurent.pinchart@ideasonboard.com, jacopo@jmondi.org, mchehab@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/2] media: nxp: imx8-isi: Add i.MX8ULP support Date: Mon, 14 Oct 2024 17:33:13 +0800 Message-Id: <20241014093312.1588304-2-guoniu.zhou@oss.nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241014093312.1588304-1-guoniu.zhou@oss.nxp.com> References: <20241014093312.1588304-1-guoniu.zhou@oss.nxp.com> X-ClientProxiedBy: SI2PR01CA0011.apcprd01.prod.exchangelabs.com (2603:1096:4:191::6) To AS8PR04MB9080.eurprd04.prod.outlook.com (2603:10a6:20b:447::16) Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB9080:EE_|GV1PR04MB10942:EE_ X-MS-Office365-Filtering-Correlation-Id: 232f97a5-ba02-4b01-9f75-08dcec33293f X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|52116014|7416014|376014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?Mt6OQHLHIJTydtv1YzjNdd7v37fbR4L?= =?utf-8?q?KkML+8z3fIxxImBPucRdF44wjFSByAHr+rUEFBBhfugvt6ibdoLPs/1T3UeRNayvV?= =?utf-8?q?NRaX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vn5H4oiz1XFnCkvB05SQLq8qgbrAiKERC67PlOFd8SL4QMF8gQsUBGwihh?= =?utf-8?q?k5+P1ZhYZVgUeMOzX+vMlRVER/L5WiGPPGfpRKJ72rAqYGQsrGA2N8eH5ic19FFTR?= =?utf-8?q?Rs2myu2D6KfpPEpIt36YI8TGzEP4VQlGgyWUWSG02TDuyyNy8Ax0EWucMJL05SKNr?= =?utf-8?q?FBni3SrfBHPOh9fyJ7DQvXVGHSObuwNvUxTJGp+XGS+x2SqpMzoCGOSv+ocYmqcM+?= =?utf-8?q?KKjVNCDJtilNv14aGljFiCO/M4uUZ6hU++iSrEwUiKCu3uYyLow4w9aWLEVy/noCo?= =?utf-8?q?XapIGY/sPURQwIUJFDujpGKfUwuX7UwyIkg=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS8PR04MB9080.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(52116014)(7416014)(376014)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?PZnn415ALAEmS7JJvmq4TOkS2iCt?= =?utf-8?q?3rd+tZUhD4/RgESPrv5SCVRKJaE4UEMv+87HEwQiO1B38UxLo/nW+mo01zCP1YZaw?= =?utf-8?q?3OaNpB6h8p3PrlejcrbRJCqU+t63al9Dm0OvMvH2bKVkkAMrWsgF19GCFQb7Wi2Uf?= =?utf-8?q?TRNvPa8XOlMnWHbd46dWwmRwcS+m6djWthbSRAcfCguSjU31rT6wQ7IdM7ldNKqjg?= =?utf-8?q?4WuLSI+DettNyzLPx3KCJrlj/Gh4HEmUhntg8Z2I7wxp0C/P30iFSpzZWFt20Pun0?= =?utf-8?q?wfEeU6Wy8h5W4vBikPgu50ORGVso/pNhD9BeWnx9XSfK+G4CMlSkh3L7paWL2tIuJ?= =?utf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qDc+a?= =?utf-8?q?nkkr5wefts9QtXvPWEo7u0g0w34bD7kl+qgncbxV2QPpIuz62EVU/13BDuVlArIio?= =?utf-8?q?emYjSOPUmy2HPtVubl+1gvV9ZJmh5BFCtBASToyIxZvjmHCDsjKDZKn/AHP/uO6bo?= =?utf-8?q?A5wbye3siTCXKtzl+SMpnsllZkuA4PC2ziZXkzdWIc7/Mdpk/AS3aCh2ZzOQzg2pC?= =?utf-8?q?0X7NQWulpyFERWdzhOKJ1a7HX826WPd6aYi1T9TaswX+tdVXmX01MqgpekavD+hjg?= =?utf-8?q?ntiemrgYTpQhB70/6X5+iFgdbO7MrfiCwK21OpBAFSF013yghIv5Vs/OK4Mt9WCV9?= =?utf-8?q?S72IdoMjs9Xt?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 232f97a5-ba02-4b01-9f75-08dcec33293f X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB9080.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Oct 2024 09:32:46.2028 (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: VHxRzwpPobZaAxNK36bqbGt9QsBiFoCutwqBE8CCm1vP9nyDN3YREQYD95D3e5XwMgUCypXxrGMFs6SIlYu5Tg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB10942 From: Guoniu Zhou Add ISI support for i.MX8ULP. Signed-off-by: Guoniu Zhou Reviewed-by: Laurent Pinchart --- .../media/platform/nxp/imx8-isi/imx8-isi-core.c | 14 ++++++++++++++ .../media/platform/nxp/imx8-isi/imx8-isi-core.h | 1 + 2 files changed, 15 insertions(+) diff --git a/drivers/media/platform/nxp/imx8-isi/imx8-isi-core.c b/drivers/media/platform/nxp/imx8-isi/imx8-isi-core.c index c2013995049c..528e723114d5 100644 --- a/drivers/media/platform/nxp/imx8-isi/imx8-isi-core.c +++ b/drivers/media/platform/nxp/imx8-isi/imx8-isi-core.c @@ -307,6 +307,19 @@ static const struct mxc_isi_plat_data mxc_imx8mp_data = { .has_36bit_dma = true, }; +static const struct mxc_isi_plat_data mxc_imx8ulp_data = { + .model = MXC_ISI_IMX8ULP, + .num_ports = 1, + .num_channels = 1, + .reg_offset = 0x0, + .ier_reg = &mxc_imx8_isi_ier_v2, + .set_thd = &mxc_imx8_isi_thd_v1, + .clks = mxc_imx8mn_clks, + .num_clks = ARRAY_SIZE(mxc_imx8mn_clks), + .buf_active_reverse = true, + .has_36bit_dma = false, +}; + static const struct mxc_isi_plat_data mxc_imx93_data = { .model = MXC_ISI_IMX93, .num_ports = 1, @@ -528,6 +541,7 @@ static void mxc_isi_remove(struct platform_device *pdev) static const struct of_device_id mxc_isi_of_match[] = { { .compatible = "fsl,imx8mn-isi", .data = &mxc_imx8mn_data }, { .compatible = "fsl,imx8mp-isi", .data = &mxc_imx8mp_data }, + { .compatible = "fsl,imx8ulp-isi", .data = &mxc_imx8ulp_data }, { .compatible = "fsl,imx93-isi", .data = &mxc_imx93_data }, { /* sentinel */ }, }; diff --git a/drivers/media/platform/nxp/imx8-isi/imx8-isi-core.h b/drivers/media/platform/nxp/imx8-isi/imx8-isi-core.h index 2810ebe9b5f7..9c7fe9e5f941 100644 --- a/drivers/media/platform/nxp/imx8-isi/imx8-isi-core.h +++ b/drivers/media/platform/nxp/imx8-isi/imx8-isi-core.h @@ -158,6 +158,7 @@ struct mxc_gasket_ops { enum model { MXC_ISI_IMX8MN, MXC_ISI_IMX8MP, + MXC_ISI_IMX8ULP, MXC_ISI_IMX93, };