From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=68.232.154.123 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796195801; b=H6zZ5nkEtfniVOzdBVP9XcEc15QhAcqzG1J/5s1imTGHfeouL182aLiAf2N9+f+TAtLb Nz1MzdbSh9HUK99Blj4AtvZDipo1CyA7L/EOtM89oLJNa8CJ+HKU9fPsk8fOPTFN/3PDt jleJ0MB/rl4XqRsEAO1rR3bWqQQ+nVgqLb+gl30/EINYmx37hLmWLHiZdLuerNUW8f3xg Pmu1CpuD+/X0CCSG2lS8AcVvXHtFqeU9rnrLqOzuQmgi2rsWL4VE8hV6gQ5Cj00gMuH5r G+AbAcCSbTcFaptUVnNsyxiEpUkfSd1Wp1Yu0ho3ynug73XfrQxI4sf4tynUBAhnKmA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796195801; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-Amp-Result:Received:Received:Received:From:Date: Subject:MIME-Version:Content-Type:Content-Transfer-Encoding: Message-ID:References:In-Reply-To:To:CC:X-Mailer; bh=ayHfglU2G8n9B+tvW555GBWiuM5GfolEIRFsXruISXM=; b=MPximmHgavrXm0D7kwKe1flpVBmUdOgCLLyY9VcUzTyV6MKbU5pT6Rb8oVEZkqDgIOlZ 7tHkoxkOR9COPQivgpY4acCAcsg7VqfbAmkcfBt4aAX2b1zi6DyKxOyVnv96+mVb9IbsQ bM8ZlBqvv3uvhjHwJ5d5hO6yzJAc8ULZkwrN23MZqSdlQM4G3XFERN32MmZ065j6NkOCj AvOdyJvavgH/DYclf3gTTFD0n/sKM5WqQXubaMlMNTZlHk3I0UaqpSSMBv+3XRoHnWcVg gjmUmeruo6Y+fIJnK1l9aZLcduPTVC9WzSjhiz2FCGqLyBSJb88pP2uT1IckOCRblzQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass header.d=microchip.com header.i=@microchip.com header.a=rsa-sha256 header.s=mchp header.b=VfH+h7qE; arc=none smtp.remote-ip=68.232.154.123 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BC981606A6AA for ; Wed, 2 Dec 2026 07:16:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org BC981606A6AA Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.a=rsa-sha256 header.s=mchp header.b=VfH+h7qE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1796195800; x=1827731800; h=from:date:subject:mime-version:content-transfer-encoding: message-id:references:in-reply-to:to:cc; bh=WrxN8rn50IcTBoCTwZbmVhU0Ng+ygSSYlpj+Q5QtOjc=; b=VfH+h7qEZctWmR765B5BkIV7czapdRgjdlpA0ixVqyFgWYppYhUqiNQV jIbPoRrvWaB8UItK1zxsRh0UVQQQ/tOvJSTkcWEbtIX3u7fElR5qEhGR/ jBS2v9dbvOz+dNbxOvjDVdoIokDgboRAVlyeWh3GWxGnedTZVw/Omp4hO f4UmZusshNa8Y8SIYJ4WoX3KwL3f74xRNdI5CL5BuSqfI7qsY+lwqLMmf XYZ34x6pvFbX0tGtih0TN1f8di2pbYBRMy+pVOPHgIeROv7XHgKLbMSJj lEm8PvnBhSrodR0Yla7eiEP6WgYzs8rR5nyz1zRWotFCHpmSMWjbb10sa Q==; X-CSE-ConnectionGUID: xha0VYxiTOm64Y45OsG7mg== X-CSE-MsgGUID: xxWhGIeCRZyDAMqoBfgWLQ== X-IronPort-AV: E=Sophos;i="6.27,246,1787036400"; d="scan'208";a="234357133" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Dec 2026 00:16:40 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.87.71) by chn-vm-ex1.mchp-main.com (10.10.87.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.2562.57; Wed, 2 Dec 2026 00:16:39 -0700 Received: from [127.0.0.1] (10.10.85.11) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.58 via Frontend Transport; Wed, 2 Dec 2026 00:16:38 -0700 From: Balakrishnan Sambath Date: Wed, 2 Dec 2026 12:46:21 +0530 Subject: [PATCH 15/15] media: microchip-isc: add driver documentation X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-ID: <20261202-isc-series-v1-v1-15-4e2f17c0271c@microchip.com> References: <20261202-isc-series-v1-v1-0-4e2f17c0271c@microchip.com> In-Reply-To: <20261202-isc-series-v1-v1-0-4e2f17c0271c@microchip.com> To: CC: , Balakrishnan Sambath X-Mailer: b4 0.14.3 Document the V4L2 controls and the pipeline modes of the ISC on SAMA5D2 and the XISC on SAMA7G5 and SAM9X7, and add the page to MAINTAINERS. Signed-off-by: Balakrishnan Sambath --- .../userspace-api/media/drivers/index.rst | 1 + .../userspace-api/media/drivers/microchip-isc.rst | 70 ++++++++++++++++++++++ MAINTAINERS | 1 + 3 files changed, 72 insertions(+) diff --git a/Documentation/userspace-api/media/drivers/index.rst b/Documentation/userspace-api/media/drivers/index.rst index 8d2c489b8453..a447331b7e2f 100644 --- a/Documentation/userspace-api/media/drivers/index.rst +++ b/Documentation/userspace-api/media/drivers/index.rst @@ -35,6 +35,7 @@ For more details see the file COPYING in the source distribution of Linux. imx-uapi mali-c55 max2175 + microchip-isc npcm-video omap3isp-uapi thp7312 diff --git a/Documentation/userspace-api/media/drivers/microchip-isc.rst b/Documentation/userspace-api/media/drivers/microchip-isc.rst new file mode 100644 index 000000000000..ac898c9933f9 --- /dev/null +++ b/Documentation/userspace-api/media/drivers/microchip-isc.rst @@ -0,0 +1,70 @@ +.. SPDX-License-Identifier: GPL-2.0 + +Microchip ISC/XISC Driver +========================= + +The Image Sensor Controller (ISC) on SAMA5D2 and eXtended ISC (XISC) on +SAMA7G5/SAM9X7 provide camera capture with hardware image processing. + +Supported Hardware +------------------ + +========== ========== ============== ================ =============== +SoC Controller Max Resolution Interface Hue/Saturation +========== ========== ============== ================ =============== +SAMA5D2 ISC 2592x1944 12-bit parallel No +SAMA7G5 XISC 3264x2464 12-bit + CSI-2 Yes +SAM9X7 XISC 2560x1920 12-bit + CSI-2 Yes +========== ========== ============== ================ =============== + +SAM9X7 shares the XISC pipeline with SAMA7G5 but is limited to 2560 pixels +horizontally. + +Controls +-------- + +Standard V4L2 controls: + +* ``V4L2_CID_BRIGHTNESS``: -1024..1023, default 0 +* ``V4L2_CID_CONTRAST``: 0..4095, default 256 (ISC), 16 (XISC) +* ``V4L2_CID_GAMMA``: 0..2 selects a preset curve, default 2 (ISC) or 0 + (XISC), both 1/2.2. The curve order differs per variant: ISC gives 1/1.8, + 1/2.0, 1/2.2 and XISC gives 1/2.2, 1/2.4, 1/1.8 +* ``V4L2_CID_AUTO_WHITE_BALANCE``: Enable kernel Grey World AWB +* ``V4L2_CID_DO_WHITE_BALANCE``: Trigger one-shot AWB + +SAMA7G5/SAM9X7 add: + +* ``V4L2_CID_HUE``: -180..180 degrees +* ``V4L2_CID_SATURATION``: 0..4095, default 16 (8.4 fixed point, 16 is unity gain) + +Custom controls (defined in ``atmel-isc-media.h``): + +* ``ISC_CID_R_GAIN``, ``ISC_CID_B_GAIN``, ``ISC_CID_GR_GAIN``, + ``ISC_CID_GB_GAIN``: WB gains, 0..8191, Q2.9 (512 = 1.0x) +* ``ISC_CID_R_OFFSET``, ``ISC_CID_B_OFFSET``, ``ISC_CID_GR_OFFSET``, + ``ISC_CID_GB_OFFSET``: WB offsets, -4095..4095 + +Pipeline +-------- + +Pipeline modules: DPC -> WB -> CFA -> CC -> GAM -> VHXS -> CSC -> CBC/CBHS -> SUB + +* DPC: Black level subtraction scaled to the sensor bit depth (XISC only) +* WB: White Balance gains/offsets +* CFA: Color Filter Array interpolation (demosaic) +* CC: Color Correction matrix +* GAM: Gamma correction (preset) +* VHXS: Vertical and horizontal scaler (XISC only) +* CSC: Color Space Conversion (RGB to YCbCr) +* CBC: Contrast/Brightness (ISC only) +* CBHS: Contrast/Brightness/Hue/Saturation (XISC only) +* SUB: Chroma subsampling (4:2:2, 4:2:0) + +Pipeline usage depends on input and output formats: + +* Raw Bayer input, RGB output: DPC, WB, CFA, CC, GAM +* Raw Bayer input, YUV output: Full pipeline including CSC, CBHS/CBC, SUB +* Raw Bayer input, raw Bayer output: pipeline bypassed on XISC, delivering + unmodified sensor data for a software ISP. The ISC keeps WB enabled +* Non-RAW input (YUV/RGB sensor): Pipeline bypassed diff --git a/MAINTAINERS b/MAINTAINERS index 70b6a8d49c01..a6af841e695a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -18194,6 +18194,7 @@ L: linux-media@vger.kernel.org S: Supported F: Documentation/devicetree/bindings/media/atmel,isc.yaml F: Documentation/devicetree/bindings/media/microchip,xisc.yaml +F: Documentation/userspace-api/media/drivers/microchip-isc.rst F: drivers/media/platform/microchip/microchip-isc* F: drivers/media/platform/microchip/microchip-sama*-isc* F: include/linux/atmel-isc-media.h -- 2.34.1