Message ID | 20221219061526.3169369-1-shravan.chippa@microchip.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp2220522wrn; Sun, 18 Dec 2022 22:17:53 -0800 (PST) X-Google-Smtp-Source: AMrXdXs356g/U8r4SjMkPItEfDFyPgmu7su0gR+dheuSN0DB7e6wVUUh98rbvFVzDpJ5fZ0nkGtB X-Received: by 2002:a05:6a20:b829:b0:ae:7f1d:1912 with SMTP id fi41-20020a056a20b82900b000ae7f1d1912mr7661191pzb.38.1671430673011; Sun, 18 Dec 2022 22:17:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671430672; cv=none; d=google.com; s=arc-20160816; b=rbHBfb0RCmcIyFBtBgAqBR6vgZ1MXb/ZbMWBDnSFWv1tUMfi4D2TyOLcZEZJzNQorR oxcbmJjYx23rQSkj/7qbwjAFNcCAyuoAtG39xHo8J/3MQrpb/zlZqYvODhohOKv29Lfp r1oq2qBAIzuFYxlWTJyO47RGdeKn9OgM39I9mIbJZiJNh+TJHom/YbtPgnguDKhMbLNq yLoC9zqZuZ+LaobtAKRiI67tPH36ds4um8GRFUpguf1/BDXlZjitrtzNzROS3vszSoEj z4atqRT16wPqA4bzWaTdGb8AnhxOUY1YAmvaFxYdRG6i7xJ6txTVvKasN8PIUa3LUX6G LCrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=UAG3qKHGC96POjPTPlDmzF/bdfxLwB31BQLnR/kv1tQ=; b=I2AZiuml7G+wUgBoZbC3kbk4bFowZV2/TP2tb+AUviG5Svq1+N/VcpDJ0TBX92mbRV VHEA/Jfj+G+CEQSHl6z0WrKlwxbVb+Q9lZqhjGALu/iJM/P/dSVgyjar+NNyL07xFJoE Q85d9bjN6Vbj607o2M0bcfXAvV+qz1SooUnMW6r71I5d1i8jMDWJm3JNPeo/BDaK58d9 rhzRe+LLpyrbqnqW6cpD26OkrCQMWLKhZsJrqUfYAeidESzz3qweJnia00l5KfjPUWst YhTpTqR7cCDMUEZs50KgLv18re1ekZ0eid2tOhvXcdna9LknPRH+0QVvin40FcNgf34B 1tsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b="Ajc/qBlx"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i62-20020a638741000000b004600f27528fsi9974904pge.175.2022.12.18.22.17.39; Sun, 18 Dec 2022 22:17:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b="Ajc/qBlx"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231197AbiLSGPj (ORCPT <rfc822;peekingduck44@gmail.com> + 99 others); Mon, 19 Dec 2022 01:15:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229473AbiLSGPh (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 19 Dec 2022 01:15:37 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2EEBAE4F; Sun, 18 Dec 2022 22:15:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1671430535; x=1702966535; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=kaoIjVv6b4eXs7I5lafr6gbla73lwxS6CcFhAbbL460=; b=Ajc/qBlxoY+ccG1nNlwWrlq0UF1iVC49a5CDw9Ea//woVy+ezVm+Mtno Wwn8ZqFQKbO692mQpMrCe/XCt4PnLFlDIUfaDXksI5KxuSDLgV3NNq+IM ol0LR6ACEK7zpBWo10HXmqVLyTVdqHQn+1ltmA9L2zBtf88d1odLSgJ7L kIkksfR8cLCumuDNy3E7Yd0zJRkJjp2kRaDgxuXKHLJWO9rdnM0hh/cZq f4wd9OqDQo0jNAN2kL3HkdTLnrkbCGevSlB7PY1pOSEHltZmarZv8fJI4 1cqvoDxlWtm1ynL7kHTpJqAOZiK3SxtiReD7UXxv9ZkjoJwrY86//Fq3L A==; X-IronPort-AV: E=Sophos;i="5.96,255,1665471600"; d="scan'208";a="193603869" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 18 Dec 2022 23:15:34 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Sun, 18 Dec 2022 23:15:32 -0700 Received: from microchip1-OptiPlex-9020.microchip.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.16 via Frontend Transport; Sun, 18 Dec 2022 23:15:29 -0700 From: shravan kumar <shravan.chippa@microchip.com> To: <paul.j.murphy@intel.com>, <daniele.alessandrelli@intel.com>, <mchehab@kernel.org> CC: <linux-media@vger.kernel.org>, <linux-kernel@vger.kernel.org>, "shravan kumar" <shravan.chippa@microchip.com>, Jacopo Mondi <jacopo@jmondi.org>, Sakari Ailus <sakari.ailus@iki.fi> Subject: [PATCH v7 0/5] media: i2c: imx334: support lower bandwidth mode Date: Mon, 19 Dec 2022 11:45:21 +0530 Message-ID: <20221219061526.3169369-1-shravan.chippa@microchip.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752622089345750670?= X-GMAIL-MSGID: =?utf-8?q?1752622089345750670?= |
Series |
media: i2c: imx334: support lower bandwidth mode
|
|
Message
shravan chippa
Dec. 19, 2022, 6:15 a.m. UTC
From: Shravan Chippa <shravan.chippa@microchip.com>
Hi
This patch series is for imx334 sensor driver support for lower bandwidth
Some platforms may not be capable of supporting the bandwidth
required for 12 bit or 3840x2160@60 resolutions.
Add support for dynamically selecting 10 bit and 1920x1080@30
resolutions while leaving the existing configuration as default
V6 -> V7
Reloved: kernel test robot warning
"drivers/media/i2c/imx334.c:767:15: warning: unused variable 'i' "
V5 -> V6
-Drop the dt-binding patch
-Optimize the code to avoid duplicating the lines
-Added proper mutex while imx334_mbus_codes array
-Modified Function __v4l2_ctrl_modify_range arguments as per the review commants
-Added hblank dummy set ctrl
-Removed Redundant comment
-corrected code alignment
-All commit msgs are re-written
V4 -> V5
-Added 5 more patchs as per the review comments witch has below updates
-Updated 1782000000Mbps link frequency for 3840x2160@60 as per the mode
values
-Updated 1782000000Mbps link frequency in dt-bindings also
-Updated 3840x2160@60 mode array with default(reset) values
-Updated hblank __v4l2_ctrl_s_ctrl() to __v4l2_ctrl_modify_range()
Suggested-by: Jacopo Mondi <jacopo@jmondi.org>
-Current mode update only when we try to set V4L2_SUBDEV_FORMAT_ACTIVE
-Added link frequency (891000000Mbps) and pixel rate (74250000) to
1920x1080@30 mode
Suggested-by: Sakari Ailus <sakari.ailus@iki.fi>
-Updated commit message
V3 -> V4
- Make the 12 bit and 3840x2160 as default
- Set bus code SRGGB12 if set format fails
V2 -> V3
- Fixed the warning reported by kernel test robot
V1 -> V2
- Addressed the review comment given by Jacopo Mondi,
Which has bug in imx334_enum_frame_size() loop function,
- Renamed array codes[] to imx334_mbus_codes[]
Shravan Chippa (5):
media: i2c: imx334: modify link frequency as for the configureation
media: i2c: imx334: replace __v4l2_ctrl_s_ctrl to
__v4l2_ctrl_modify_range
media: i2c: imx334: add missing reset values for mode 3840x2160_regs[]
media: i2c: imx334: support lower bandwidth mode
media: i2c: imx334: update pixel and link frequency
drivers/media/i2c/imx334.c | 337 ++++++++++++++++++++++++++++++++++---
1 file changed, 309 insertions(+), 28 deletions(-)