From patchwork Thu Feb 15 20:44:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 13559134 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 44A52C4829E for ; Thu, 15 Feb 2024 20:45:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=lzUvdmaF9br1I3L2OJ8hisT7vE9T8UdqG77RxAXsaJs=; b=zF4WVtSPuwcDZK jSfIIv7tY0jsIfEGEgIytroqUrkcSdy1NcVzc0mexYjfsxbgJlV9KmAyxGSpsNBxucpSFLSzUg7Eq uZ/iZZQrn/07+dhyIEm+0xORxf3cg4XotwH//KUyGkaxsH5uM9e9ReVjfZyR9QaYx6f/hmlhxWdMY +LZdvS3CHfLJcelfUcFME83Iele770JhwiGiq8ycr7w3fNab2wIvcGUfnrZi2a7kvm+PXA1N0WNQH Ysu3QgGtZYHz6MIGmnaeQoyVS71JcHqxTnmtCOx50+czeb68S+ja/BKtLmOEIk9Dbbmtl0Cb3GS/u OmTBC89JTJLyVfE/UZ0A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1raibG-0000000066T-3NCq; Thu, 15 Feb 2024 20:44:54 +0000 Received: from perceval.ideasonboard.com ([213.167.242.64]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1raibD-0000000064u-3Co5 for linux-arm-kernel@lists.infradead.org; Thu, 15 Feb 2024 20:44:53 +0000 Received: from umang.jain (unknown [103.86.18.214]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 1D18D1325; Thu, 15 Feb 2024 21:44:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1708029881; bh=7+C+nuf2HLU4u1NNutFvy9AsrXNIpxJuVzWnH369IPI=; h=From:To:Cc:Subject:Date:From; b=aSnG0L2jd2x7PXkKXGbkfdM0+RGIiflExiCWgzAvNKic1JeJOE8YAj012n7UphuHW CLF+gmXaK1ovZ9SS04tksD3E3J5RrcBEVUgJp4uSRrdj/w7PK9fSrgNdg4jUiEwusc SivjosE2+w0BTs6INL9gJtb2zKL5Wz3m9wDkvbDs= From: Umang Jain To: linux-media@vger.kernel.org, devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , NXP Linux Team , Fabio Estevam , Kieran Bingham , Laurent Pinchart , willl will , Sakari Ailus , Umang Jain Subject: [PATCH 0/2] media: i2c: Add imx283 camera sensor driver Date: Fri, 16 Feb 2024 02:14:33 +0530 Message-ID: <20240215204436.9194-1-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240215_124451_970701_39639C09 X-CRM114-Status: GOOD ( 11.48 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add a v4l2 subdevice driver for the Sony IMX283 image sensor. The IMX283 is a 20MP Diagonal 15.86 mm (Type 1) CMOS Image Sensor with Square Pixel for Color Cameras. The following features are supported: - Manual exposure an gain control support - vblank/hblank/link freq control support - Test pattern support control - Arbitrary horizontal and vertical cropping - Supported resolution: - 5472x3648 @ 20fps (SRGGB12) - 5472x3648 @ 25fps (SRGGB10) - 2736x1824 @ 50fps (SRGGB12) The driver is tested on mainline branch v6.8-rc2 on IMX8MP Debix-SOM-A. Additional testing has been done on RPi5 with the downstream BSP. In the driver, CENTERED_RECTANGLE macro is defined to center the crop rectangle. Possibly that should be removed, and a V4L2 helper can be introduced if more use cases are identified. Kieran Bingham (1): media: i2c: Add imx283 camera sensor driver Umang Jain (1): media: dt-bindings: media: Add bindings for IMX283 .../bindings/media/i2c/sony,imx283.yaml | 100 + MAINTAINERS | 9 + drivers/media/i2c/Kconfig | 13 + drivers/media/i2c/Makefile | 1 + drivers/media/i2c/imx283.c | 1601 +++++++++++++++++ 5 files changed, 1724 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/sony,imx283.yaml create mode 100644 drivers/media/i2c/imx283.c