From patchwork Tue Dec 17 15:55:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Riesch X-Patchwork-Id: 13912181 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BB735E7717F for ; Tue, 17 Dec 2024 16:25:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:Message-Id:Date: Subject:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=qC0SkfQczUk6dlgrpZMpqCfBG6rqySW7LGP/aKrjR+U=; b=jxQ+qHa9chx1KH AZZn9vyPX9Q2zGfnBCACFB/Furl1Xjv4dxbbMZOMdDoVUZ9WlQpuo6CLXBfPmcT3WwXqzfPH3t0My SFf7KrDFGaQfT8h7gBEfTAUi9/WGZ7iL/FAk6yrsofAIQ2ZTuS/UiQ2ZLuEMGr/FUwWR05sxL1Fbc 3Hsvs38caLV3MeAtT7Bi+QG0cYbVuVWaRpZnILlKT8GzhG/9/ZMdlVZXkhFbIr1qbjblSmj/p1O2p bL/aLD52bTEco/b91HaXxr/FXo43hEVQyNM7C11v0sqg1mYLpsvUPUGTxCK3O5kuk3+fIKUcSiyGb fo9I9qdueVblbAJ28fkw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tNaNt-0000000EACT-0dRg; Tue, 17 Dec 2024 16:25:21 +0000 Received: from mail-northeuropeazlp170110001.outbound.protection.outlook.com ([2a01:111:f403:c200::1] helo=DB3PR0202CU003.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tNZuw-0000000E2po-1Iwr; Tue, 17 Dec 2024 15:55:27 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=lqvZIFR6M++5CyDhub1V16ihkXERokqfRApjqLgvsQxKVyijLZcIasZZXyWeItT0F2JAR4j+nXnuXsHXiOziSJUtedD7nFMhGq+HLwsQ4We1y+YJ4ss5ulXMHsfoLtMoE9RGT+pA9ER+Jady2FtL+bZiBAXA5FFu77EtKD1idCJU1MXbbw3swBKuPAWRlrql6XlCdEZvr92F32U8VYOzW8+vE+17SyIgx/9SysowoSMBfCnijzbfwf7p5XxgI3OF80nuZIayGdv6jGCtyEKy4RijQe6vnQcSXqxVQjOgFxtWxWarqFLLANPtWO+punce3pEN7OgHlYGggau7Q41KDQ== 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=qLUB6MPewbyNQIpMjX0irXUit4lYkxxXdSgzqb+dSWE=; b=CujlkRcCdte+rV4onyfXNg5FtcP3CP/DCnzTvMDpQKAu4UCPtlNHXa1achFfkfn1Scyk1hXInV8+zQHO2wbDU75x+Tf8ZxBIQtCnUn266gf99wBkjm5ySVcgxP6h5WUa1jXjsiv+T/quGraw+E94nwSg675a0lZbkW4ehgluFie9W2bQ8ckhKix37376XIJ6y5XsnDQXH3pinZ+lJMyy+NLGtvvG2eYsd8nK9ZOSfxFQBqazSN8Lwqc/SrDzWBsR5+ZvuGrBC8DvmSmYRbwQgOCpuWUI6mUqPHYgizAr4G/PPv1Kxxriv2TqeGpXc3V84981DkMDeZ2I10RXNDDWHQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qLUB6MPewbyNQIpMjX0irXUit4lYkxxXdSgzqb+dSWE=; b=nh5B+McfXeWnl8mqVT9jzwwb4l4/xyqoouuKPdkCLsQ8AQdu82OwIgsyqlzgK1XWu97wL1kGBugqsJRAYu6iOb843uMvgok/RoFmHP5h2KHEtwlgJKPtTKAsARU5aW/rU7LoMW3un1IggzQguZUTbSvE+y9pCcCDVT3al55Zjmo= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from DU0PR08MB9155.eurprd08.prod.outlook.com (2603:10a6:10:416::5) by AS8PR08MB10149.eurprd08.prod.outlook.com (2603:10a6:20b:63f::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.21; Tue, 17 Dec 2024 15:55:20 +0000 Received: from DU0PR08MB9155.eurprd08.prod.outlook.com ([fe80::4e72:c5d4:488e:f16d]) by DU0PR08MB9155.eurprd08.prod.outlook.com ([fe80::4e72:c5d4:488e:f16d%5]) with mapi id 15.20.8251.015; Tue, 17 Dec 2024 15:55:20 +0000 From: Michael Riesch Subject: [PATCH v2 0/6] media: rockchip: add a driver for the rockchip camera interface (cif) Date: Tue, 17 Dec 2024 16:55:12 +0100 Message-Id: <20241217-v6-8-topic-rk3568-vicap-v2-0-b1d488fcc0d3@wolfvision.net> X-B4-Tracking: v=1; b=H4sIAOCeYWcC/4WPQQ7CIBREr2JY+w1QSlpX3sN0ARTkR4UGGtQ0v bu0HsDlm8lkZhaSbUKbyfmwkGQLZoyhAj8eiPEq3CzgWJlwygXlnEKR0MEcJzSQ7k0rOyho1AS 6143re946IUhNa5Ut6KSC8Vv+af2IUFizeVOyDt9763Wo7DHPMX32EYVt6v++woAClx1VzCkpq L684sP9DpyCncmwrusXkBIp7N8AAAA= To: Mehdi Djait , Maxime Chevallier , =?utf-8?q?Th=C3=A9o_Leb?= =?utf-8?q?run?= , Thomas Petazzoni , Laurent Pinchart , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Kever Yang , Nicolas Dufresne , Sebastian Fricke , Alexander Shiyan , Val Packett , Rob Herring , Philipp Zabel , Sakari Ailus Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, Michael Riesch , Mehdi Djait , Gerald Loacker X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1734450919; l=6549; i=michael.riesch@wolfvision.net; s=20240405; h=from:subject:message-id; bh=84dAzvqqi6ZbaS/ArkaMH7z+FZ528a0O4/ApO7qsY2M=; b=c/3NKPXuFcBnl/xU/u+fcfJCPSRrWqkavGYpwxzwCO/wSFWeQv4xPnuSgfZcRDib7EE+TneqK wkESEkTBcdSD3w2rWfexrbSghsH3yYNjqBm+XeAuy5EbOliFNTuHjnJ X-Developer-Key: i=michael.riesch@wolfvision.net; a=ed25519; pk=cSJmgKSH3B6kdCIDCl+IYDW1Pw/Ybc6g9rmnUd/G7Ck= X-ClientProxiedBy: VI1PR08CA0244.eurprd08.prod.outlook.com (2603:10a6:803:dc::17) To DU0PR08MB9155.eurprd08.prod.outlook.com (2603:10a6:10:416::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR08MB9155:EE_|AS8PR08MB10149:EE_ X-MS-Office365-Filtering-Correlation-Id: 2e3fc888-e4da-440e-90ee-08dd1eb335d3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|7416014|366016|52116014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?RWcYTnOnePK3GdLqF0S3Njwhv7MbjoW?= =?utf-8?q?rKskzzo4IaACoet5zcevoh2Lj2MK1nYcp1Z1PI/dglfGDD2NRIGFv0gxxvNEM16XU?= =?utf-8?q?AwPvw3pMDGxmENHX6zW4/tjMPtHiRszx0W6nDUOzGxWRoAfmoYF4cRlMGqCGIhoz1?= =?utf-8?q?P+uBdR+DpvqRVShXsWhuhVqKN1dR/vwgWBRmllZvtLHPPosYkaS4Z1ITfnvYf2tBl?= =?utf-8?q?UE6cTe6bywSEFgf5jHfzFc1t/AfhjQ02DZxIu3Qp2O/VpTotUa4/rVN0WLaKMm1rE?= =?utf-8?q?uPM9f2REZniZJrR38B/DYYPB764W+CsJ5zl+Rx76goFDyVJxBiGrwJDKanOACffMu?= =?utf-8?q?ovQ/PjMb3XGNIWoHXy2cW3qi5Yxr64ZdzHmv+3/ALO2BpGrlP3JM46jWEmIOQ7HnI?= =?utf-8?q?Ff4/zCfZPzV8FbghtPAG4L4rk2xp6x9urUHifqB9HV2rb2XAZPW+7vIu6LkqBHf9j?= =?utf-8?q?4wc46Bqq0ikEcoH8DkRwkSTvLwAJPeZTNrT1U4F9dURxp8Pru2lZ+iAcQRGIY4oax?= =?utf-8?q?zSXtBj5UWtcJTFLKQIIYHxL3dFaOk/ZhhfsFuPIqeuhnRXjCynVfCQiuu4yC/VrVk?= =?utf-8?q?kZG4dtOFEpOhPCkfRLJFaXpXOZnFV8N0OdWTN35F97y5+zGBWNnlF03EW3Ei5xVrL?= =?utf-8?q?ZPgOz9FVRg1JdEkJZHUizM9d1cIkyItpm9W1XMdknaa/doK3C6PG6hvJWmO2eWVYz?= =?utf-8?q?fo/LxpyGvaM7JSWkCXMfWESRFJ/ejGD8j5MmHT+g9yoWjQoxGAg84D28e536XT4KF?= =?utf-8?q?17xmMykNXEy6GOzhdU6jweR2CbaJVojXfceo00pua7Y8n7sM0lXWGQ80O2lCxpRxB?= =?utf-8?q?TJ8O9k+4QpL/WbSLV3lr8UbDAwP5UUjg/FvQ4HJF/y1zsLi0L7lPgb1TSrY1GTSx0?= =?utf-8?q?IrsMPmmS4p8+Pu4rOz0qnephJ9y3ksNARqODVGqGJ0oXphpBJ3PuaBRAQfe4X5Sap?= =?utf-8?q?Kr8MOgJ7N2yVFNyfYJe1L4S5UC/QFPTwqpS9kopxddwFRUX8V+mao7UhyTdg46tIo?= =?utf-8?q?XK3iX3B/PR5ogVUjmPKEnzpKFX11GiFfwVxrDJyTHxMD4n8k8Y15wzSTNAX1ezTFZ?= =?utf-8?q?OsHrxrahq6r3htou5RnWJ2efDkF9aa/f3ibV2Gj8Z0mo5zcRVKpnhRuzzvsivc4Gl?= =?utf-8?q?D5BczKXWtNOJ0FoUAGUiE4GCk5zuYjS0Ndl36Cqc7o/5DyF1RyoHb/YYvZNClsoGe?= =?utf-8?q?yC1einogxLkkzwbJ38263dzG4VyNyaTpE21fA1vlMHUYsm6tcKiz8ewi+tH+zfxiG?= =?utf-8?q?E29NJv6sCR7md8dcwrPij/0YyHTjdbSvl6I3pVl/oAHegPQXKRmz/ay1u01ow7Byi?= =?utf-8?q?cglfBUzDwiZwDl1x2QsGBFZmHws6Sr0m2IU3s+N4gqRUYulfXi7Ue4yd4D/7HQw29?= =?utf-8?q?viySmdeMueU7c3Ayw4cQK/iT7uol9m00w=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR08MB9155.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(376014)(7416014)(366016)(52116014)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?9tCk91CAYFdqAHbLLn5Rif4XRDrg?= =?utf-8?q?f3AsWv+FN8KC4dkhmcBY13SnpRYx28adVemmDyc+7GjkqsIh6TdYyydAm453ahQr7?= =?utf-8?q?p9TgRaCdHoFVx1hg6ZPKIs6geBaRMPWDjBkx5pgCxx3X/ihKtgsg/ehwapelfGnyI?= =?utf-8?q?FH6PEkn/Fxf+YaoyWSUegtqhsuSWKuxLNXhW8RSSpT5XyIk8znfK54/ElM0xB+NtO?= =?utf-8?q?RM4CJSIkE2IBn4d5l+m/K9Z9yrvmWCWucRANpGEXZps9oWy4FNFh89fT6X7r03/nx?= =?utf-8?q?7SN7qjX2IapBBAyV4Onsj10iEhrO66es7Y/V7fcS+gvbIcF/4wIAYMUNQ7PzOFUHW?= =?utf-8?q?MDtguVIWALk08jvW6Ap0M0c0f6eq7lL2hDfhMKorwrMkG4P+ux+IaflWplitRzy8E?= =?utf-8?q?xt0VGi4SZ6QElFmPuONo957B9C5uBmtXlueeEAqlIFEPegZpdAAf2Nb4Z18FZTsYS?= =?utf-8?q?qHZp6xgkKrTnmvVFyI1UzYxWlxkh69tmgn6ALXcU5orU/RqmAFMDyAxjS75kIbv1I?= =?utf-8?q?c6AeSpAhNWtKeOJ2t2sUVtZT6dOVmrrpdcpZ6feG8atraH6bx7ECySEPybMtykc8c?= =?utf-8?q?UpIWgasrcirr3QR114p5gng7j7xs+nAhHAlXCCAKj5og7jW4EKh02xVnW2Bh28qp6?= =?utf-8?q?n3Tctg4DVgrYRsuxDzxjFnbrmAi6GE1Sq074cWML8SNtiHbi5rZA5qRk4OWS0vRLV?= =?utf-8?q?LPZ6pZuqDRZsublo02BkpjeTK5aLqKVdZF/HLx1nOaTIsQfqdFtXcXWfMb0b/tidh?= =?utf-8?q?gOBKgV3rXTJedILFco46xZGI+rrr/McpnbH6H/sbiaLkvt/Owt0PPKKbxGUwNYE3T?= =?utf-8?q?SSwwmGYhiubh+9d+SusiaC6ulcxZE/zZnlJNWQNp6qeOIsZ/x7MNp4usuRCuhwnKU?= =?utf-8?q?mH5F+9eBqMyanBkEieNG0jbuVTODLLbIx/cXn/6IASpAl5bJwP+KBJYzPOolauEBA?= =?utf-8?q?WcX8VOZmBnMqw2/fedu+1s08n+WhUvW4VyxORWQ+qMxKTHG4dInBVYiqO0NZ9vQd6?= =?utf-8?q?sLpniKNWYudC6bYpFgd8hbKNx8ZPe/pY97cY24NQPMLBe54/ZAw1X8AXTgg1Dz3AQ?= =?utf-8?q?FYAecrXQuF0DeGOZzII9/96YiYqnU/IhxgjXblOuKZ/xGkCjL8giF4HCsXpooqpWI?= =?utf-8?q?041M6A4MB5CcbaKMT1yVyKqFZyx4NQGKm3e8NZa0xW4y92Vt6tJXy6wK9m3KiG/iv?= =?utf-8?q?xvi4CEKC0f2QACvSN6iDWI0K2izeN6zOMnIf5RLEFFM3SpjvUqGXFBczqPmfG4xb5?= =?utf-8?q?2N1MRgfZSVcIom7UmBMG/gZBIWtRiry1ZOwHoszRek8cZxWDqbMqzirWoSdVaUWoA?= =?utf-8?q?ydX/G+RUruDu6XSXRQVWEH++zb3IHgrTAp5k9HGhuuut9LTJNzNI3xx9c+0YEFagn?= =?utf-8?q?POAPPryXTvQ7KmtWguGyqEdY2+1WwL0NtWCIiimdlwO/CWzGFb+eRujzQU2U2Zqcc?= =?utf-8?q?bHlIq0fkJJhHHPBpV03gbtWUR5AkbXENrL4QOgVwSBtmM50LoU2+uOrBtZ6PiKhlq?= =?utf-8?q?RbQ0IwEbB3WdN227nXy+fNSGhPK//x/yqg=3D=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 2e3fc888-e4da-440e-90ee-08dd1eb335d3 X-MS-Exchange-CrossTenant-AuthSource: DU0PR08MB9155.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Dec 2024 15:55:20.8575 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: rYL9nqOnUdDEH1ppiZjL6dR7a9+/5AipVgAL11mJcSffll0ZU1Z0WzS/ZXxLkPkkTbch97fB4yPJNiOJ4CUCptJIFhZlUf+1iprEzmgJ8Ao= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB10149 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241217_075526_513018_EFBC7BFA X-CRM114-Status: GOOD ( 14.41 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Habidere, TL;DR: This series introduces support for the Rockchip Camera Interface (CIF), which can be found (in the form of variants that differ significantly) in different Rockchip SoCs in general, and for the Rockchip RK3568 Video Capture (VICAP) variant in particular. The patches are functional and have been tested successfully on a custom RK3568 board including the ITE Tech. IT6801 HDMI receiver as attached subdevice. The IT6801 driver still needs some loving care but shall be submitted as well at some point. The long story (gather 'round children): The Rockchip Camera Interface (CIF) is featured in many Rockchip SoCs in different variations. For example, the PX30 Video Input Processor (VIP) is able to receive video data via the Digital Video Port (DVP, a parallel data interface and transfer it into system memory using a double-buffering mechanism called ping-pong mode. The RK3568 Video Capture (VICAP) unit, on the other hand, features a DVP and a MIPI CSI-2 receiver that can receive video data independently (both using the ping-pong scheme). The different variants may have additional features, such as scaling and/or cropping. Finally, the RK3588 VICAP unit constitutes an essential piece of the camera interface with one DVP, six MIPI CSI-2 receivers, scale/crop units, and different data path multiplexers (to system memory, to ISP, ...). This submission bases on the work of several Bootlin developers who have been tirelessly submitting support for the PX30 Video Input Processor (VIP) block for inclusion in mainline. This process has been going on for several years now, with Maxime Chevallier working on the topic up to v5 [0] and Mehdi Djait taking over until v13 [1]. In the review feedback on v13 a major rework with a media controller centric driver as a goal was requested. This motivated me to take over (with no clue about the MC framework whatsoever, though). I decided to merge Mehdi's v13 with my v1 of the RK3568 VICAP support [2] and refactor the whole thing. The resulting v2 of the series now adds a basic media controller centric V4L2 driver for the Rockchip CIF with - support for the PX30 VIP (not tested, though, due to the lack of HW) - support for the RK3568 VICAP DVP - abstraction for the ping-pong scheme to allow for future extensions However, several features are not yet addressed, such as - support for the RK3568 MIPI CSI-2 receiver - support for the RK3588 variant - support for the scaling/cropping units that can be found in some variants - support for capturing different virtual channels (up to four IDs possible) This needs to be in the scope of future work. Finally, please forgive me if I forgot to address reviewer comments from the previous iterations. Between v1 and v13 they have seen significant feedback including renaming the complete driver twice (from rkcif to vip and back to cif) and I am pretty sure that I was not able to gather everything. Looking forward to your comments! [0] https://lore.kernel.org/linux-media/20201229161724.511102-1-maxime.chevallier@bootlin.com/ [1] https://lore.kernel.org/linux-media/cover.1707677804.git.mehdi.djait.k@gmail.com/ [2] https://lore.kernel.org/all/20240220-v6-8-topic-rk3568-vicap-v1-0-2680a1fa640b@wolfvision.net/ To: Mehdi Djait To: Maxime Chevallier To: Théo Lebrun To: Thomas Petazzoni To: Sakari Ailus To: Laurent Pinchart To: Mauro Carvalho Chehab To: Rob Herring To: Krzysztof Kozlowski To: Conor Dooley To: Heiko Stuebner To: Kever Yang To: Nicolas Dufresne To: Sebastian Fricke To: Alexander Shiyan To: Val Packett To: Rob Herring To: Philipp Zabel Cc: linux-media@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-rockchip@lists.infradead.org Signed-off-by: Michael Riesch Changes in v2: - merged with Mehdi's v13 - refactored the complete driver towards a media controller centric driver - abstracted the generic ping-pong stream (can be used for DVP as well as for CSI-2) - switched to MPLANE API - added support for notifications - Link to v1: https://lore.kernel.org/r/20240220-v6-8-topic-rk3568-vicap-v1-0-2680a1fa640b@wolfvision.net --- Mehdi Djait (2): media: dt-bindings: media: add bindings for rockchip px30 vip arm64: dts: rockchip: add the vip node to px30 Michael Riesch (4): media: dt-bindings: media: video-interfaces: add defines for sampling modes media: dt-bindings: media: add bindings for rockchip rk3568 vicap media: rockchip: add a driver for the rockchip camera interface (cif) arm64: dts: rockchip: add vicap node to rk356x .../bindings/media/rockchip,px30-vip.yaml | 123 ++++ .../bindings/media/rockchip,rk3568-vicap.yaml | 168 +++++ MAINTAINERS | 9 + arch/arm64/boot/dts/rockchip/px30.dtsi | 12 + arch/arm64/boot/dts/rockchip/rk356x-base.dtsi | 44 ++ drivers/media/platform/rockchip/Kconfig | 1 + drivers/media/platform/rockchip/Makefile | 1 + drivers/media/platform/rockchip/cif/Kconfig | 15 + drivers/media/platform/rockchip/cif/Makefile | 3 + .../media/platform/rockchip/cif/cif-capture-dvp.c | 794 +++++++++++++++++++++ .../media/platform/rockchip/cif/cif-capture-dvp.h | 24 + drivers/media/platform/rockchip/cif/cif-common.h | 163 +++++ drivers/media/platform/rockchip/cif/cif-dev.c | 405 +++++++++++ drivers/media/platform/rockchip/cif/cif-regs.h | 132 ++++ drivers/media/platform/rockchip/cif/cif-stream.c | 676 ++++++++++++++++++ drivers/media/platform/rockchip/cif/cif-stream.h | 24 + include/dt-bindings/media/video-interfaces.h | 4 + 17 files changed, 2598 insertions(+) --- base-commit: 40384c840ea1944d7c5a392e8975ed088ecf0b37 change-id: 20240220-v6-8-topic-rk3568-vicap-b9b3f9925f44 Best regards,