Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp374418lqp; Thu, 21 Mar 2024 04:13:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX7UQv1K08uCjJx837AeHTrHOVmz/RDW24HQ8tuYyjAhuas7jIvFU1U+WCTXJAHzlQjN6ggGVrBWxqKMGL///379Rv93RAdK0sOrtnKPw== X-Google-Smtp-Source: AGHT+IHHQnTPKik855dWQvU703ph48s/QFsEburPtajNT/CP+oaFROSTdk++OVMy5DZuM5vV9qKT X-Received: by 2002:a05:6808:5d1:b0:3c2:5ee1:9d2c with SMTP id d17-20020a05680805d100b003c25ee19d2cmr7604361oij.6.1711019586658; Thu, 21 Mar 2024 04:13:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711019586; cv=pass; d=google.com; s=arc-20160816; b=nw/p+jXAF+yiUy3Lgv9+3eDF62gvvwP2YQgyQBkY47tNdRJK7F5NpdA0ksfKeuKrXz AeacrD5ovvsIpli3ZeaPlmWvZSieTxBmQbCfgT/DKesSoG2pFS7QVGoryh9x/aPE6/0X oejglTgCgivdluxTsLupcx4gB8rPLLJFv2mKaRg2fK86Kq/qAOfB34fX55claftBxpBu ao8Uz1ppOnCPpTKr2VPWAsPyG6lYXM2U68nH4yEQrOWhlJsMtw/JJFKAl4+Pjg9PLBLE B6IT80jXLaO+91AwAYTZ869HdM6Y72HWG/q5ZzT3xL0blFBP1PPyVIiMBo70Vl48Z3em uphQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=cDOFYzCIkkMNKuccNcB9ASq+p1vKmOxWA3ZyM0AQxMY=; fh=VB0zLWcJHcVCx9ooleiQvfkeE/C63ypkfsdq7dQrK5s=; b=rbFUtzoep+GWUirZdTQtHjcilboOSz82f7ND2xRnd4zr2rg6AbG878qnFhxoTndySv ibSoCngGoBjPe3TFgZemxwK5NagTwQ/+4m2ps0Mb/qX5X5+TDqBZ3rRsFDgHGMOM2SgN sR8GS6mB15AuE4fWvlyMNEqax6iriM5bE0BpqOzfLbWXPQNMgFcmLQlosBh0s9nG1oms vSUgDKH0IzI2Ugp6BzyR8rhVErKBWqhNQOhlFPih5yQJO8xvCZO8wtL2u5H25i7qOt0b 3+ugDE0iS2CsJZHKAImFoNRQ+VsapcDyUm57kNktzqJU8gDyBRTsGu6bp8zgLsnMJgyh Kokg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=UrV3KXCb; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-109924-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109924-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id v9-20020a05622a144900b004310a041b3esi3052137qtx.406.2024.03.21.04.13.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 04:13:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-109924-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=UrV3KXCb; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-109924-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109924-linux.lists.archive=gmail.com@vger.kernel.org" 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 6083C1C212A9 for ; Thu, 21 Mar 2024 11:13:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9FD6558138; Thu, 21 Mar 2024 11:12:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="UrV3KXCb" 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 DCAA857311; Thu, 21 Mar 2024 11:12:54 +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=1711019576; cv=none; b=bjwt9goHlpGc95U+y+TMIDncvTQ2fcP8e0uH9yTPkEWSMV7WUnnMmjYaPrkxdS02cBQJLQqge5mbCN7vLPzjrOz25KZUoxxIS3zw7O+2obed+Bjg7CFKO6FEs/0y8cTuw24N0FlfFEE3c2WeaFCTD5nKOMBZdTESDcnbtacPMMc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711019576; c=relaxed/simple; bh=Y1vEpjXP+hUSiO75YanMSSda5LJPJ5/Uc3Fh6hMJB3o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lAKzFF8EdZlYtlGsv/9MQwBd/kIn05dbdPpZhNs8KcTIBGWcjSGLm7wf62fr1MFH3TA+KNjNsT4vme8qGcS5OAtvrhBtCcN6+evZPCTV8hVpOL/vkny4wTGKfHEjejnGROAvy9F5r/Dwr7fsXc1VjevofAwzgMRPHetWmUEECX4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (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=UrV3KXCb; arc=none smtp.client-ip=213.167.242.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ideasonboard.com Received: from umang.jain (unknown [103.86.18.138]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 38DAA7E9; Thu, 21 Mar 2024 12:12:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1711019545; bh=Y1vEpjXP+hUSiO75YanMSSda5LJPJ5/Uc3Fh6hMJB3o=; h=From:To:Cc:Subject:Date:From; b=UrV3KXCbceAkCKZa88ecK4iAyv7+O9XsMURdZ9UwMQtyXgLmKaGBzwTIUy+Bu3G8N v/GOwNpCak/bMAwk6yr8YUea/ANzV7YDIXSnB3DjZThiu0YUH6RdAHr1iFpGiRcI8r +EVXLV+Ak2lAmjKW7+olf1EHaBXsWtHf7Pb55Dyw= From: Umang Jain To: linux-media@vger.kernel.org Cc: Alexander Shiyan , Sakari Ailus , Kieran Bingham , open list , Umang Jain Subject: [PATCH v3 0/6] media: imx335: 2/4 lane ops and improvements Date: Thu, 21 Mar 2024 16:42:33 +0530 Message-ID: <20240321111239.808735-1-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit (Re-sending as previous time, I forgot to CC linux-media@, no wonder I didn't receive any feedback on this series). Another batch of improvements of the imx335 driver. Patch 1/6 adds support for 2 or 4 lane operation modes. Patch 2/6 call the V4L2 fwnode device parser to handle controls that are standardised by the framework. Patch 3/6 introduces the use of CCI for registers access. Patch 4/5 uses decimal values for sizes registers (instead of hexadecimal). This improves overall readability Patch 5/6 fixes the height value discrepency. Accessible height is 1944, as per the data sheet in all-pixel scan mode. Patch 6/6 fixes the max analogue gain value. changes in v3: - fix patch 2/6 where we need to free ctrl handler on error path. changes in v2: - New patch 4/6 - Drop calculating the pixel clock from link freq. - CCI register address sort (incremental) - Fix cci_write for REG_HOLD handling and add a comment. - Remove unused macros as part of 3/6 Kieran Bingham (2): media: imx335: Support 2 or 4 lane operation modes media: imx335: Parse fwnode properties Umang Jain (4): media: imx335: Use V4L2 CCI for accessing sensor registers media: imx335: Use integer values for size registers media: imx335: Fix active area height discrepency media: imx335: Limit analogue gain value drivers/media/i2c/Kconfig | 1 + drivers/media/i2c/imx335.c | 646 ++++++++++++++++++------------------- 2 files changed, 310 insertions(+), 337 deletions(-) base-commit: 54ee11761885407056f4ca60309739e2db6b02dc -- 2.43.0