From patchwork Tue Dec 5 09:05:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 751968 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tq-group.com header.i=@tq-group.com header.b="JFmHzEfR" Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B4EBFA for ; Tue, 5 Dec 2023 01:06:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1701767162; x=1733303162; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=KuDOk6Xf/GnHEv0tqTNVNp6Stwsy7PMvg8hwhOKR5xk=; b=JFmHzEfRz0NAB0z/f/MrpllOMP9I7lkslnsgd2faODU//kPW9eRa7L1X Enprrf+vpQRpMbCCPCN2IVgbXFqCApb87rroiyNPbNtlFEvjpyLrvwCL+ tliqSYAZ8kXeUs2wsDJIli8pQjfFP8QFfNHe/LWMJXxpStaK1vdVxIw70 wpqbsAfhqmDeG5nLzi3szSuWCqe50Jm5nRbsq4a6C41Ov30aoPsiqfKCg YXtV+pUOZjaJWzno3AWHlpt+HJr9TrksdWqHgxi0eM1VDms3wtzBKaPYM 1Y32yPA9dxOI+6tUtHWohTTzUddvm/0yDc6NEGKliNy8SosAWWhp2nN+6 g==; X-IronPort-AV: E=Sophos;i="6.04,251,1695679200"; d="scan'208";a="34328800" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 05 Dec 2023 10:06:00 +0100 Received: from steina-w.tq-net.de (steina-w.tq-net.de [10.123.53.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 230CE280075; Tue, 5 Dec 2023 10:06:00 +0100 (CET) From: Alexander Stein To: Mauro Carvalho Chehab , Michael Riesch , Sakari Ailus , Laurent Pinchart , Gerald Loacker Cc: Alexander Stein , linux-media@vger.kernel.org Subject: [PATCH 0/3] media: imx415: Add more modes Date: Tue, 5 Dec 2023 10:05:54 +0100 Message-Id: <20231205090557.298680-1-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Hi, this small series converts the driver to using CCI helpers. On top of that more clock setups and modes are added to the driver. These are all taken from the datasheet. I suspect they all can be calculated dynamically later on. Tested on TQMa8MPxL + MBa8MPxL + ISP + Vision Components IMX415 camera. While working on the driver I notived that imx415 sets mbus code to MEDIA_BUS_FMT_SGBRG10_1X10, while imx290 uses MEDIA_BUS_FMT_SRGGB10_1X10. But the datasheets show the same color coding pattern. But both settings seem to be correct, e.g. the resulting image has correct colors. I had to remove the identity check locally. I suspect that Vision Components interjects reading some registers. Best regards, Alexander Alexander Stein (3): media: i2c: imx415: Convert to new CCI register access helpers media: i2c: imx415: Add more clock configurations media: i2c: imx415: Add more supported modes drivers/media/i2c/Kconfig | 2 + drivers/media/i2c/imx415.c | 1013 +++++++++++++++++++++++++++--------- 2 files changed, 779 insertions(+), 236 deletions(-)