From nobody Wed Dec 17 10:47:52 2025 Received: from BN1PR04CU002.outbound.protection.outlook.com (mail-eastus2azon11010038.outbound.protection.outlook.com [52.101.56.38]) (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 580E233A03A; Tue, 16 Dec 2025 09:14:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.56.38 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765876475; cv=fail; b=OrEGLVaHRdhx/8rsuWGi6iRYm2Wxw5VV+jBSQVxuWl1/c0UwXOB43mZUABjs13/3vo5yAuWl/bbomPehkNXsz6MPTQ/aZ+9Swu/PfJEg6i6B9Z59kI9fc/qKwGidmNUKINNBCFjvhqCUIatOwxmn9WHR5VnRsD+72UiYRs98DTo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765876475; c=relaxed/simple; bh=VqaKGs5GC4+VwSwomfOLfAZcdY3RTwKr9xADgAF+dOM=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=b0WMmPLef19rFtnqlgeiBH0wLyb5Q+3YMJKoREzB6KXI4wtb2tsYpEnec6OlVhio+Qu1+fY5inikmUg5FxZZ7Ig9GLDBrKqWyZr2uWovQsQs44w68Mnjt/8hxadS4nghMwRB8MsDiT9EI5mYYHUbS5IJP8HlIkZJ4adKBv8px6s= 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=dQgr1VK9; arc=fail smtp.client-ip=52.101.56.38 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="dQgr1VK9" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=u+4MYEhmymMBgkpAub85YZ6E/uoHfuMHeqz7bYYPLt2Qp6V+RzBM/JxY/PlUvnUcu/NGdcSSVbkK2n1OjywzJdnjwt14L+89IobVzeJZdnp04lZ4N+6IyAlVok+OQsgQehRgJn04ZQsmubOiM32wuuKQ+Kf/5SO29zROUzFWFLNJxPB+92hSdTG26RsRH8bgiTqLoILxlnUd6nYhMTg72mPVOA+FW/4IPAdNt8iZiVMhcPEbrg0ixmw5/te8bbsDWa90ATkSHuv1l2tS6j2v26aRCPPJ6YKj98ROX2AH+ywCfP9v59/5j7deBTyeC2pH+x7u3egMafTCd9/u10b8iQ== 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=lDipv2v+oZyx4lHqkTv2gdv6qquF1196dcUSP/EoTwnOb6HmqtIJq/IEHtolkCPi+uWzf/VUxaXL2S7bJP8aznD2no/etszzMWbZLugQPfy1Ba/pWVrhn0HXak/MkDb5oLu10pqdBE06PWt/XtSfrscuzSFD0vwiUlINlY6LKPynOKXwpJOg4hYqR+6umV5T73KGGqp5hpbv35r9mVMkUa6+0bm4EtkbRkNznuz2L+1ITx6EICnpHm1Z7vVpDZgw8tHD5nGeRmFfk6CjMzwNvWV4GR5ITPDmZcP68Fc23wtHSWGcCjflo7QnC+N+qtBGpo7O5ODffNEM2TScQhzPiQ== 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=dQgr1VK9HXSjppwlulOEYW8FCw8iQEMJuGfJZCIaUI1Jo2AaLKWQ8xPzXM+VxYK6SoYLAF4KsUCMKGZIqduGgovKCAIDPZjA69IdrwyzMm9FGptuU7vJMG8IzLY/txHh3FWy1fSjdKY/o098BI+b4ilUXo3wubUG4r4IrUj8kcQ= Received: from SN7PR04CA0239.namprd04.prod.outlook.com (2603:10b6:806:127::34) by PH8PR12MB6769.namprd12.prod.outlook.com (2603:10b6:510:1c4::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9412.13; Tue, 16 Dec 2025 09:14:26 +0000 Received: from SA2PEPF00003AE7.namprd02.prod.outlook.com (2603:10b6:806:127:cafe::ae) by SN7PR04CA0239.outlook.office365.com (2603:10b6:806:127::34) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9412.13 via Frontend Transport; Tue, 16 Dec 2025 09:14: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 SA2PEPF00003AE7.mail.protection.outlook.com (10.167.248.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9434.6 via Frontend Transport; Tue, 16 Dec 2025 09:14: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; Tue, 16 Dec 2025 03:14:20 -0600 From: Bin Du To: , , , , , , , , CC: , , , , , , , , , , Bin Du , Svetoslav Stoilov , "Mario Limonciello" , Alexey Zagorodnikov Subject: [PATCH v7 7/7] Documentation: add documentation of AMD isp 4 driver Date: Tue, 16 Dec 2025 17:13:26 +0800 Message-ID: <20251216091326.111977-8-Bin.Du@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20251216091326.111977-1-Bin.Du@amd.com> References: <20251216091326.111977-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: SA2PEPF00003AE7:EE_|PH8PR12MB6769:EE_ X-MS-Office365-Filtering-Correlation-Id: 7fc29974-43bc-4afc-01fd-08de3c838259 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700013|376014|1800799024|7416014|82310400026; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?n3B+L3qkYLQVj1EtfdRPT2laQXnYds0KCVA2y0QEa488J4JNt3taaO08z9+R?= =?us-ascii?Q?tAbxwRdpu8FjhKMtUnUWOWcqzlmcfmjRAHOQI8IFrdAqm6X/H+EK1iwBM2mA?= =?us-ascii?Q?/rMd3a9d35bIoicuPISS4ETjEDM74UZrDrbNgVr5XXyl/9vvAJSNlXL4cob5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cnWFv+KZblOwiEezZgk?= =?us-ascii?Q?gsFrJvZ8ji3uJlThd8cd1yRAMU4NuQS82iLWKIkP6pXAcnVhcn2+ZsB/Ss9Y?= =?us-ascii?Q?jdahh2+P5Vo5xBXC7eJD0o8Y7WH0872yGRQekYkrORro9u2I71vgAVxvSP8X?= =?us-ascii?Q?CTYkgpmrLaU/aEq+aUT2rwwUWg5F5PT3FPprgALrB1KtUxwwyzdRoUgwwQWc?= =?us-ascii?Q?SatPL8exRUvykzYIxa+cjl2hz+y4B+pVD0oHCH3WHQy86EO5VuMRqo3VBJHm?= =?us-ascii?Q?IEx7jJL1RgIn11Mg/QTpoH1484vqhNk81a1x5edUOUDvnF1SDwaqWanSRc9s?= =?us-ascii?Q?DjwQAoEaVuguUTSDSgBEPxpTbSjRK+ngjTlghonDVTHhGo6pr/ps5f7xctmd?= =?us-ascii?Q?nbVgG1pBv7146aljYmQHn+Z+FSQ3V0C+kE6SSyx8lshF7ZAWDXMOHuUQg7Um?= =?us-ascii?Q?4OSmu0OYcQKw0GyQtOcPziQjlgrCW0P2sKQiSeUQGEgScRlLYldt1UVN9OsJ?= =?us-ascii?Q?ESk338oWZFIfUC5wXIo=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)(376014)(1800799024)(7416014)(82310400026);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Dec 2025 09:14:25.7782 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7fc29974-43bc-4afc-01fd-08de3c838259 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: SA2PEPF00003AE7.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR12MB6769 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