From patchwork Fri Dec 8 15:07:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 97824 Received: from sv.mirrors.kernel.org ([139.178.88.99]) by www.linuxtv.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rBcSd-00EyxE-No for patchwork@linuxtv.org; Fri, 08 Dec 2023 15:08:16 +0000 Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 6A29F281BE2 for ; Fri, 8 Dec 2023 15:08:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4DFEF208DB; Fri, 8 Dec 2023 15:08:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="OQSBdrjy" X-Original-To: linux-media@vger.kernel.org Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0D76199A; Fri, 8 Dec 2023 07:08:03 -0800 (PST) Received: from umang.jain (unknown [103.251.226.108]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 5467E512; Fri, 8 Dec 2023 16:07:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1702048040; bh=XdE5oS+/0plOEZHGfKkHkn9BwZSH6QN5Lw//bCz3XJE=; h=From:To:Cc:Subject:Date:From; b=OQSBdrjy6cHooeV9AJTuEHYNizuvW912lQ2KtBflkt2DxTsgYk1qErrkivVwW3c6H U1xu1uEKOlc5QsuhmschNb0lKTB9zWGjWWAVkNEu3wwXB1uJmcQ2CV8OgwNK8gpkz9 USjAi+O4UsPk++q6JnqdjnsDyyZnKH1WyRVi1ktQ= From: Umang Jain To: devicetree@vger.kernel.org, linux-media@vger.kernel.org Cc: "Paul J . Murphy" , Daniele Alessandrelli , Sakari Ailus , Mauro Carvalho Chehab , Umang Jain Subject: [PATCH v3 0/8] media: Sony IMX335 improvements Date: Fri, 8 Dec 2023 20:37:46 +0530 Message-ID: <20231208150756.124720-1-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.41.0 Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-LSpam-Score: -4.8 (----) X-LSpam-Report: No, score=-4.8 required=5.0 tests=BAYES_00=-1.9,DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,HEADER_FROM_DIFFERENT_DOMAINS=0.5,MAILING_LIST_MULTI=-1,RCVD_IN_DNSWL_MED=-2.3 autolearn=ham autolearn_force=no The Sony IMX335 is not yet compatible with libcamera, as it is missing the get selection API call. It also misses a way to describe how to power on the sensor. Now that I've got this camera functioning on Debix-SOM and Pi5, I expect to be able to do quite a bit more cleanup to the code here. But these patches should already be valid for consideration. The series provides the bindings required to reference the power supplies, and then performs some initial clean up to the driver for error reporting before adding the regulator enablement, implementing the get_selection api (as well as set selection, which returns the static configuration) and restricts the hblanking to match the configuration. v3: - Remove #define and use ARRAY_SIZE(imx335_supply_name) directly in 4/8 - Add two new patches for 10-bit mode(7/8) and multiple link frequency support(8/8) v2: - Supplies are no longer 'required' - media: i2c: imx335: Fix logging line endings - New patch - line endings are fixed - error paths are handled for the regulator in imx335_power_on - set_selection is defined alongside get_selection Kieran Bingham (6): media: dt-bindings: media: imx335: Add supply bindings media: i2c: imx335: Fix logging line endings media: i2c: imx335: Improve configuration error reporting media: i2c: imx335: Enable regulator supplies media: i2c: imx335: Implement get selection API media: i2c: imx335: Fix hblank min/max values Umang Jain (2): media: i2c: imx335: Support 2592x1940 10-bit mode media: i2c: imx335: Support multiple link frequency .../bindings/media/i2c/sony,imx335.yaml | 13 + drivers/media/i2c/imx335.c | 297 ++++++++++++++---- 2 files changed, 257 insertions(+), 53 deletions(-)