From nobody Mon Dec 1 22:37:15 2025 Received: from SA9PR02CU001.outbound.protection.outlook.com (mail-southcentralusazon11013029.outbound.protection.outlook.com [40.93.196.29]) (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 828C0303C8F; Fri, 28 Nov 2025 09:20:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.93.196.29 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764321631; cv=fail; b=byGpDGImKLjE81E1m2ok2m3oxbHRQHxnqZLj7ti5JSSSEVhHU6AZfMMw2R5K8BOKca6hJdu4hc0TPc9dTn/cuaIoEClZmtwLLIuKSJAfiQwxRJVcVvhYcFrlLGxctDh6nllV2LEGbBYvvdVNeIDeyPLNsM9S3qu50i4G/5VcO2Q= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764321631; c=relaxed/simple; bh=VqaKGs5GC4+VwSwomfOLfAZcdY3RTwKr9xADgAF+dOM=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=i41LNEQwiAvXWrUdynNoq+1RNeUJeBmPmA0GAPqazAu4AgFvf+paXlg7WxpzpU9q/LPh+jqvnHoPwDeAHQXYA54s/+RRgJBlNIzJG6V8osgs5XmfcUpNGILsW/Jpwgz/Bn8ahuX+TDnO4oLnuA4g88bq3eY5O17puvTBs37x7Is= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=pgQwZV6R; arc=fail smtp.client-ip=40.93.196.29 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="pgQwZV6R" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ugwMqTNshgJjZfr5K7IFYvr1oXqlzXRCodsPJzLNzlKJ1YN4rGkt8GsFMDGA5kW2Hv8BnJrHRAreEpGlJ52g+JRd7IBEGr8UDEWoXE7GlQwwe1dHhqMxsvFIdrnBbjtiLuLQY7KDhMkRvR/r7cxtAtIWWVohZwha6DMtPFGTxKVr9Lm1MPY5fzOIfg6JaWcate9E+YuHPtsqkHgqmTN9UXjI9SysPXQatTppQF2Ng9273ZwcSjVvycyU0OM1NAcJ+hdAeS8zznqlJPiWV4azEiMJEokswZWrhvDnC/AwWbzF52qm37TYM2Qb7j+2mvBXMW3CccYQLG2MeSkTzqPopw== 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=vD5/tvLCzDURBVoq9TkyCVI5Tx6gEsa6IHDU+rSUyWo=; b=IuNTOOhPHBbFck8jvHin/lKMzXG/8KAVmJw94zhjdkad4e6s2rHQOQryXdW7bw5fOeH41ubYIsQJXEBSoz+/CP3/NCXHitDSg62ATXXdjJHbqLcqlDI/idKlJBvN9LrA25ClAXGINIBfAJUK4nGwd8LRddMvpU23gE9gSA+vJ5h10RVPcVDV+ihlURcNOKPEyzcdxUYK5P3jsRVbz99FQyQ1pq1ZSYukZNp8MaYNor0ONp1StL5Dx2C6D+2TZiabCfNzbCxN9YD9MFCQzuscO/vn9VEwEn3wBIRSxaL2xMQfGsnh1PRcZmG7bXP8R7rLjqolKNC8oOYIAxI0/PRcLQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vD5/tvLCzDURBVoq9TkyCVI5Tx6gEsa6IHDU+rSUyWo=; b=pgQwZV6RghcqeG3gV6fyyCBl0ATgCKLYucWlkTyz8DWTWtgy3FaV5+tFYjJoFLNyVvbJN8RFKNrQ4NBJLdxTpbrvMTdS0O0j/OM0rUgWneBCF/+u1DllO+Yr+r+Lk7f4cTpd5vTBvlSe5NY5S4nW29a0dyUEG7SGvYKT8t8Sn8k= Received: from DM6PR03CA0100.namprd03.prod.outlook.com (2603:10b6:5:333::33) by CH1PR12MB9717.namprd12.prod.outlook.com (2603:10b6:610:2b2::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9366.17; Fri, 28 Nov 2025 09:20:25 +0000 Received: from DS3PEPF000099D9.namprd04.prod.outlook.com (2603:10b6:5:333:cafe::d7) by DM6PR03CA0100.outlook.office365.com (2603:10b6:5:333::33) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9366.16 via Frontend Transport; Fri, 28 Nov 2025 09:20:25 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=satlexmb07.amd.com; pr=C Received: from satlexmb07.amd.com (165.204.84.17) by DS3PEPF000099D9.mail.protection.outlook.com (10.167.17.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9366.7 via Frontend Transport; Fri, 28 Nov 2025 09:20:25 +0000 Received: from 555e2b870847.amd.com (10.180.168.240) by satlexmb07.amd.com (10.181.42.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.17; Fri, 28 Nov 2025 03:20:20 -0600 From: Bin Du To: , , , , , , , , CC: , , , , , , , , , , Bin Du , Svetoslav Stoilov , "Mario Limonciello" , Alexey Zagorodnikov Subject: [PATCH v6 7/7] Documentation: add documentation of AMD isp 4 driver Date: Fri, 28 Nov 2025 17:19:29 +0800 Message-ID: <20251128091929.165272-8-Bin.Du@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20251128091929.165272-1-Bin.Du@amd.com> References: <20251128091929.165272-1-Bin.Du@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: satlexmb08.amd.com (10.181.42.217) To satlexmb07.amd.com (10.181.42.216) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS3PEPF000099D9:EE_|CH1PR12MB9717:EE_ X-MS-Office365-Filtering-Correlation-Id: 2ae3408f-0269-42b2-cc48-08de2e5f5d3d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700013|82310400026|1800799024|7416014|376014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?zthzgLi3Xy7eJt8n12uUL7e9Scgz++pSLH/wqr77tXynd4Wx8L3s43/Xqkfj?= =?us-ascii?Q?r7SI1pNIPUuxjv0e17WmQapU8OZcgLeo8JpRfzq+LCJM9DzeRMJ0IOIpoDWm?= =?us-ascii?Q?IViE8oJ1d/YxNSmFRQ8FkyB9IhloEcJk0eC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Qb6gUY0p4QhzXlU1q3FPgLByl3Da4MYEhL9R6Q1Oa3GmZKhpFEikGiUnd91E?= =?us-ascii?Q?SCBFFPaSOhSNLICQeM/lXPxXcgwMuIIy5oOzG9OfE/n9oF22ZNMzkRv0Boc2?= =?us-ascii?Q?8gEZCjLHyZlrcJfj0zwyAwuZHj4aUCCBg5wFPnmrhFLKhq3oFoGMY5gxeod6?= =?us-ascii?Q?8QG/4xRLPBWXTvsZcqi2RbiiRTgQtVTicivy4T0G13tVSxPrtlL6kSD0NEyI?= =?us-ascii?Q?XaV8kpaY66xRWLUpEKH2/tXXMmnrq2la5bmDwjfglDJ8g2vzl49WdFAbs9Xs?= =?us-ascii?Q?Zf5o5vve4BT2eUE9iMtAMtfI4lbWKvBq91TbPRQLalsi5dw40yDasnDvb55E?= =?us-ascii?Q?36cITaBGvXuLLKq3a188xeDNNMeosx5SgFyMkEgkk3d1Kpk4NZamW7b9/ST1?= =?us-ascii?Q?1+JaVxQhL9V5CNq6irkD0WMx6JZyiBPy9keleU1RH9rnCmUfNmxjKG3OfhTF?= =?us-ascii?Q?vWxORqjGY5uVOAEPiyclcLL+uVjzQjXqKQioZaes/E+RPhlhZupqdHySBeeZ?= =?us-ascii?Q?wq870Q1lqhfPOlD27C4=3D?= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:satlexmb07.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(36860700013)(82310400026)(1800799024)(7416014)(376014);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Nov 2025 09:20:25.3486 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2ae3408f-0269-42b2-cc48-08de2e5f5d3d X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[satlexmb07.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DS3PEPF000099D9.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH1PR12MB9717 Content-Type: text/plain; charset="utf-8" Add documentation for AMD ISP 4 and describe the main components Co-developed-by: Svetoslav Stoilov Signed-off-by: Svetoslav Stoilov Signed-off-by: Bin Du Reviewed-by: Mario Limonciello (AMD) Tested-by: Alexey Zagorodnikov --- Documentation/admin-guide/media/amdisp4-1.rst | 63 +++++++++++++++++++ Documentation/admin-guide/media/amdisp4.dot | 6 ++ .../admin-guide/media/v4l-drivers.rst | 1 + MAINTAINERS | 2 + 4 files changed, 72 insertions(+) create mode 100644 Documentation/admin-guide/media/amdisp4-1.rst create mode 100644 Documentation/admin-guide/media/amdisp4.dot diff --git a/Documentation/admin-guide/media/amdisp4-1.rst b/Documentation/= admin-guide/media/amdisp4-1.rst new file mode 100644 index 000000000000..878141154f96 --- /dev/null +++ b/Documentation/admin-guide/media/amdisp4-1.rst @@ -0,0 +1,63 @@ +.. SPDX-License-Identifier: GPL-2.0 + +.. include:: + +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +AMD Image Signal Processor (amdisp4) +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +Introduction +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +This file documents the driver for the AMD ISP4 that is part of +AMD Ryzen AI Max 300 Series. + +The driver is located under drivers/media/platform/amd/isp4 and uses +the Media-Controller API. + +The driver exposes one video capture device to userspace and provide +web camera like interface. Internally the video device is connected +to the isp4 sub-device responsible for communication with the CCPU FW. + +Topology +=3D=3D=3D=3D=3D=3D=3D=3D + +.. _amdisp4_topology_graph: + +.. kernel-figure:: amdisp4.dot + :alt: Diagram of the media pipeline topology + :align: center + + + +The driver has 1 sub-device: Representing isp4 image signal processor. +The driver has 1 video device: Capture device for retrieving images. + +- ISP4 Image Signal Processing Subdevice Node + +--------------------------------------------- + +The isp4 is represented as a single V4L2 subdev, the sub-device does not +provide interface to the user space. The sub-device is connected to one vi= deo node +(isp4_capture) with immutable active link. The sub-device represents ISP w= ith +connected sensor similar to smart cameras (sensors with integrated ISP). +sub-device has only one link to the video device for capturing the frames. +The sub-device communicates with CCPU FW for streaming configuration and +buffer management. + + +- isp4_capture - Frames Capture Video Node + +------------------------------------------ + +Isp4_capture is a capture device to capture frames to memory. +The entity is connected to isp4 sub-device. The video device +provides web camera like interface to userspace. It supports +mmap and dma buf types of memory. + +Capturing Video Frames Example +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D + +.. code-block:: bash + + v4l2-ctl "-d" "/dev/video0" "--set-fmt-video=3Dwidth=3D1920,heigh= t=3D1080,pixelformat=3DNV12" "--stream-mmap" "--stream-count=3D10" diff --git a/Documentation/admin-guide/media/amdisp4.dot b/Documentation/ad= min-guide/media/amdisp4.dot new file mode 100644 index 000000000000..978f30c1a31a --- /dev/null +++ b/Documentation/admin-guide/media/amdisp4.dot @@ -0,0 +1,6 @@ +digraph board { + rankdir=3DTB + n00000001 [label=3D"{{} | amd isp4\n | { 0}}", shape=3DMrecord, st= yle=3Dfilled, fillcolor=3Dgreen] + n00000001:port0 -> n00000003 [style=3Dbold] + n00000003 [label=3D"Preview\n/dev/video0", shape=3Dbox, style=3Dfilled, f= illcolor=3Dyellow] +} diff --git a/Documentation/admin-guide/media/v4l-drivers.rst b/Documentatio= n/admin-guide/media/v4l-drivers.rst index 3bac5165b134..6027416e5373 100644 --- a/Documentation/admin-guide/media/v4l-drivers.rst +++ b/Documentation/admin-guide/media/v4l-drivers.rst @@ -9,6 +9,7 @@ Video4Linux (V4L) driver-specific documentation .. toctree:: :maxdepth: 2 =20 + amdisp4-1 bttv c3-isp cafe_ccic diff --git a/MAINTAINERS b/MAINTAINERS index 8478789ac265..c34137e27b55 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1139,6 +1139,8 @@ M: Nirujogi Pratap L: linux-media@vger.kernel.org S: Maintained T: git git://linuxtv.org/media.git +F: Documentation/admin-guide/media/amdisp4-1.rst +F: Documentation/admin-guide/media/amdisp4.dot F: drivers/media/platform/amd/Kconfig F: drivers/media/platform/amd/Makefile F: drivers/media/platform/amd/isp4/Kconfig --=20 2.34.1