From nobody Mon Feb 9 15:26:00 2026 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) (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 C494933E374; Thu, 5 Feb 2026 10:32:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.167.242.64 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770287541; cv=none; b=pKwTvUhE9grI+4sOewoKjKGTZWWUytrSSzsYK1V9WU9t0S6Bp3KwbCp7kZMGLWB+IR9JaP8yzsQvWG7zbwcU0eCTsxPFF5JPDLcz9PUhHdNhU+//mZwdFc+qGFs91uGReKFuuPTRqGVS9rpepSQgL7ZGCFc5GC+r2Ndj1Aeau2c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770287541; c=relaxed/simple; bh=hK1yXrfEUR6Bg4NNCMPtRP8qXwXIu2XyoDJeiCE0V1k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Y/Pz59pa0xMMWuB2LdogpLJrVVXVczkVYCphGJH/HN0qdZYdGhT4jjCU68d6WaI7PoVA51Pr4QGwi7xVpzN5wBz2+1fQS+yinahIH7g+ObLzAm8sgNQ0Q2x5YcRWX6EpK0aCPw6bTS08z843+mjI1xM4O8fINVCEYEG+cvt2mFw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ideasonboard.com; spf=pass smtp.mailfrom=ideasonboard.com; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b=tVwpkCFi; arc=none smtp.client-ip=213.167.242.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="tVwpkCFi" Received: from t16.ideasonboard.com (cpc89244-aztw30-2-0-cust6594.18-1.cable.virginm.net [86.31.185.195]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 3B0963A4; Thu, 5 Feb 2026 11:31:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1770287496; bh=hK1yXrfEUR6Bg4NNCMPtRP8qXwXIu2XyoDJeiCE0V1k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tVwpkCFiA2Ra77lMKw0HLiCiO8JizM1N65yWIYZ/YvvBp0Xe8SZHP5G+FlAHwUHVS 0qMjjwWwDkGnurbgp08rgoXxQW1DE/tysTuOjID6VAyLg0orc1g+Mpl6OrvGc9m3QW BwCr5JJAC3GK2EKwzfA8nkkkiubgcYVWZUMndblw= From: Isaac Scott To: linux-media@vger.kernel.org Cc: dafna@fastmail.com, laurent.pinchart@ideasonboard.com, mchehab@kernel.org, heiko@sntech.de, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Isaac Scott Subject: [PATCH v2 1/2] media: rkisp1-isp: Set correct data mode for YUV bypass Date: Thu, 5 Feb 2026 10:32:06 +0000 Message-ID: <20260205103207.4020959-2-isaac.scott@ideasonboard.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260205103207.4020959-1-isaac.scott@ideasonboard.com> References: <20260205103207.4020959-1-isaac.scott@ideasonboard.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 Content-Type: text/plain; charset="utf-8" The rkisp1 features a 'bypass' mode for RAW and YUV formats. This disables all ISP blocks, and makes the rkisp1 display input data from the MIPI CSI receiver at the output, unmodified. To determine whether we can activate bypass, we can detect whether both the source and sink formats are YUV. If they are, we must configure the ISP to expect a YUV input, interpreting H/VSYNC signals as data enable / disable. Signed-off-by: Isaac Scott --- Changelog since v1: - Removed in_bypass flag - Renamed the patch to better represent the functionality of the patch --- drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c b/drivers/= media/platform/rockchip/rkisp1/rkisp1-isp.c index 2311672cedb1..21bfa0edbaf1 100644 --- a/drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c +++ b/drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c @@ -240,7 +240,9 @@ static int rkisp1_config_isp(struct rkisp1_isp *isp, } } else if (sink_fmt->pixel_enc =3D=3D V4L2_PIXEL_ENC_YUV) { acq_mult =3D 2; - if (mbus_type =3D=3D V4L2_MBUS_CSI2_DPHY) { + if (src_fmt->pixel_enc =3D=3D V4L2_PIXEL_ENC_YUV) { + isp_ctrl =3D RKISP1_CIF_ISP_CTRL_ISP_MODE_DATA_MODE; + } else if (mbus_type =3D=3D V4L2_MBUS_CSI2_DPHY) { isp_ctrl =3D RKISP1_CIF_ISP_CTRL_ISP_MODE_ITU601; } else { if (mbus_type =3D=3D V4L2_MBUS_BT656) --=20 2.43.0