From patchwork Sat Oct 12 08:47:33 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: 835010 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2050.outbound.protection.outlook.com [40.107.105.50]) (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 C71E2145A05; Sat, 12 Oct 2024 08:47:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.105.50 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728722849; cv=fail; b=udVNfKB0t5yk5HOjH7U7nYL2gOvONZjlWp5USsRAg8m3YlfKA7OKIHY9OjOXuDTU/DU86tjJEXw6faa+s8pyNaigKGmTafcTIr1o/QgonHB4DJgiVap6lROfobVo9hXnbWPkv11ZP581XDbRakmOl7qdtSHmB+C3czRY2hcc4VQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728722849; c=relaxed/simple; bh=qfZ75ITeE8q0Ygq1GJnAPuOrSlYpGmj7W5O1cu5hpVE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=ec29Kcb4mvdIQjru5Gx9d5wEX9RcZlUt8y73Hxj52QvNcxVDwVXdraXMR0310Hb3pnLjo9fdbGPS4NxiBTbx/xNAoqJA6itBCT22QCvApp53CD9uzyNifm4xATn1S90e6f2hRDAiygJK7uu8gHN6GD/ObkCLnUKCe7obehWuXyU= 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=SNdTdlyv; arc=fail smtp.client-ip=40.107.105.50 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="SNdTdlyv" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=kLFCkGmUv1IXzku+oI1ryKFAkBIGRZrxbtYflZAg4AWKBuvYLF3RrMOxGB3us7DFN0tCB7HgYMgdwMhB+3r37D5NjKR3Mof1aIpSJLlEA9XRO7RGsUVWrd3ag1zXF7JqzTbI2nZD0hpixzjn/3I7bvgmQ/B/sRnlrJsjrHMHvvD9gySJze5ChxMHaOlAZxP5r61ZgglD5GXoIb+mnOcalaDgBPP52APFJiTflvdbgR3ciSAyJPMuHiyCMq/xKUrDmVw/5elaMvQpx9PRfi0hn6sX3DfowQZ5flRMUlT64l99y4y5mhQuF/fIy/gf7YIdTmsk/H1YGeiapC0Zv8HS9w== 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=9mw4mUMW9T53GCniS9zvIlP8T6Wh3I3XQnkcvvObvl4=; b=OT6wz3Lq9k+m+xz+s1H6QlszqGa7mLCpBbJjHTs12DpYzSczg2h0LSZPLUJgq+T9z8Fq844ufkpD9Zc4tNYgu/yOe7/s7Vmhktj0PVNo7aPkYcr4m5t1YjcCTIGhv/UW1TphyR4Hn6tRGNWKjHdVA1Fw8odEwiEnjps1+5yNdRCRxybVN/UtXzvxiGyYLs1fTnxgMDMyU7Zp0SigwB3ZEXm3JweQyrMzsEbL60GcMY+EusZQWesgBQ2yfvTBF0yhwOwzD3qz2wTKVh5KcbRtCX8pYb6fUSmqwspxNtcV9elJkkZ5NgXVd5fFMkB6dW71Krl3MhNAFkPDnAPhGCsT9w== 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=9mw4mUMW9T53GCniS9zvIlP8T6Wh3I3XQnkcvvObvl4=; b=SNdTdlyv3QjUIDgnrHcLaBYFUYTfeZYWKS+3NL4j/YKhZI57EZq1qV+LymBW3R5FN78cddz45GECBH7TJZmjaRL6zDLxVzxY7yShT178CSiXRpDXtWdAIS0SFwnxmRgG5BG4pRNOgTySuIGrwOlZmfUfC71G7LB0MA1elUL+pnpcTZaWPmPD+AU333Oc5Sd9fbdLvTDodbTJcCXYFz0FFqfydhTNBcL1XOnyvN0mHBToGjFLFxaHzh/O3X7U02WzhS3h9PTXdDN0Qj/UICJWC6HxtFuELaQi5OI0vttktW5YLQT1gphv1U8MOutNB1S00pXQ7wI1KabSAj1dWaiCTg== 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 DBBPR04MB7562.eurprd04.prod.outlook.com (2603:10a6:10:1f6::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.21; Sat, 12 Oct 2024 08:47:24 +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; Sat, 12 Oct 2024 08:47:24 +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.d, festevam@gmail.com, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] media: nxp: imx8-isi: Add i.MX8ULP support Date: Sat, 12 Oct 2024 16:47:33 +0800 Message-Id: <20241012084732.1036652-2-guoniu.zhou@oss.nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241012084732.1036652-1-guoniu.zhou@oss.nxp.com> References: <20241012084732.1036652-1-guoniu.zhou@oss.nxp.com> X-ClientProxiedBy: SGXP274CA0002.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::14) 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_|DBBPR04MB7562:EE_ X-MS-Office365-Filtering-Correlation-Id: e92f7342-540d-4a72-7b1d-08dcea9a7e73 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|1800799024|376014|7416014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?/ISFt5k/34PmJQnso5j/CmAYqzvErFh?= =?utf-8?q?I0E3yWxehk4RnxvhD/LqTezGGx6ORgIh8zYyQ1+P2PYvv490X9g70DJxgZLqKb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Qpj+8n1JThDd?= =?utf-8?q?JcCxXgnj1Rde+DZHDw7JsAFO9wPsjetRLZFqBYh69zHRM8qTd0G59B52KWFibljIh?= =?utf-8?q?/98d/J0uydN51VsyFeCdNOunHIeHQlFi1IIy0DuExx8fjFq2UqFuH3PvPpw0sH/IG?= =?utf-8?q?LmGBXEXNUc6mGq+gCfE2b6dK+PxIr6NfKSmCY8b1kQ8o9FrVtdunAacXlY4O+SUNT?= =?utf-8?q?hp8VAWPUY0yGli4kh6CNagM+Yl8tOEQsEKDy7fzhJnT8drK6DhREudZVf1/nGcGYK?= =?utf-8?q?1fZppI8ZdlUq93SKLF5Ib6XCYFtQeBQv5E0MVojeoSJmBu2GBcGnIZtVRJ7ov8/6S?= =?utf-8?q?1SLMpuWyBDN9oNhaYmTpLDmqxuhkbU93MbA=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)(1800799024)(376014)(7416014)(52116014)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?vDrpdjKlboDCFYUbLljg7oYqnH8V?= =?utf-8?q?BJ05SRT+vOb6LKY/wM5eev2TWIHvo/vFF7f7Doo9oo67Sm1mbqOZNJUhrNpB9pit6?= =?utf-8?q?BVCvw/39PY3Ryn1mIwHrLwo+jSjg73pGmhAF8a9PGhnlkU/F6maaTqBWYimgPAonl?= =?utf-8?q?Xc46ia28+qmO6NB9IrngQv7gHrj/h1w5W8bE3/GI8JJZ5NhlA1kSS6jDcbnhWFjtw?= =?utf-8?q?oDZo/lsBx6N7aRpEasX2HLec7pu3JANDukUbMp6bFgt0IVfaAA2TRLNomDpGAnXEJ?= =?utf-8?q?Ij6Ntjk7YZR9PKdJfcNGg+pa7jowk55KMI+ChAm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acY3Awyu97ZK1+5vLwlz9OsNYx79f6zwk9O75J9Y9Oo/?= =?utf-8?q?PtpDWySDB/7ttCJsD3VrDhf9m4s4z9KjwEScrgRfHGA4xzwNYvRws/6uKXYftdjvS?= =?utf-8?q?Xvw/ZZLXsX5kgwh02kOA8HXoo62PIlGQtAiwW+nZKSVLEXWdw7IdgdZm9I8Voak4B?= =?utf-8?q?d2q8FdbhZ1SIQbZJqwxS88rKtI2JBj/agHfk+g5twdz4vcw+f/PZG9K+vtValu06h?= =?utf-8?q?K9fYOSz/Vvak7Sr23oNCuJ2c/67HgvrzzXAFerZr/svyYKVzwiD78e+zcNCf+9jMV?= =?utf-8?q?CqHpg06Qh82atGeCnpEoqWKERytolh7FmmpG+VpR6YtKS00HcuTTq5XN2C/FCNaBK?= =?utf-8?q?FWsMxLakaSqG?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e92f7342-540d-4a72-7b1d-08dcea9a7e73 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB9080.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Oct 2024 08:47:24.8785 (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: fvNQOz6+BG7p6Tnj8qWpp8Ixzl2Ol1GWSI0xDVY5aBaMWQyXnxfZ0cDEDWkP5Pmx8t18KoPMAym4EJTipNzOfQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7562 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, };