Message ID | 20221205051937.3897001-1-shravan.chippa@microchip.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2076010wrr; Sun, 4 Dec 2022 21:23:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf7bIBR6BTHX5CI8WUTNppJv8dKIiwu+dPmSjqS+zzrwQdOvD79ELzCeWxJm7Av7lHqQuCUO X-Received: by 2002:aa7:cf82:0:b0:46b:34b:5804 with SMTP id z2-20020aa7cf82000000b0046b034b5804mr32145807edx.240.1670217816303; Sun, 04 Dec 2022 21:23:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670217816; cv=none; d=google.com; s=arc-20160816; b=MRuaNEuLYn6bh2iTsKLl2mb71W+PsALJChJ4D0syQiO6Oft76vQ8x9GZGxfoEZpO84 yOSonLoffquXyzTNqkFr8loTn3I753W11reHWw+GSXWPa+qRYotXDgC0Y7Yjr4L8+D3q xw7EtA9I4KFPO6+iFnciCMArniHfCocZtvYJvP5Hs9lrnJ1BE3BvX8Ad6jZKQdN957Uc OYtsYAlfqbOtDd7BLpVsfB+AAKD/qM66XCTzDjkVfBMwYCbjWZ18r6N9N85FG3+WTQW8 CwGyaVASqEKY4wSNN0i18zcecKFK00CfsaVm6w6+blpEXjjWfrmQi2Vi7i3ztKAvecDP T4oA== 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=co71sPukozXqNXPbEql4uWjcWpOMKekxeTwCNxEtylg=; b=lVFOD2hoyuaY1cBv6pc1opIvSXZJV/403SPf7XXZwogYzXWfhVNr0FQe9vgo8mvAR6 guOVLKT6WaIT6RBp8KM+0cScjsPgaUbAeay6Y/ioVQwgHCg/CIM4POiB0J8MAfUBqOXz Ui3bDfPx1JrmCr04s3TdhHR4Fo3Rc6qnY2az7wY+8eRo04dXUSNea+pHjoYSuFiwwvlV p0Xmy5dOjJlOX15Yg+QvYYxNQjZ1Z20FUfW3cszlZq83sr2hhYrNfgAT7gAWuJdxRygZ GZk3Mfc8bo1lOeMPWo6nZxW/doWNFyI3Q0yG1VnsoBmGFrKmEvhEwe51RaYIlzoM8c/G XoIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=Q7maIEis; 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 p10-20020aa7cc8a000000b00458bbd3a0d2si10113235edt.602.2022.12.04.21.23.10; Sun, 04 Dec 2022 21:23:36 -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=Q7maIEis; 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 S231584AbiLEFT4 (ORCPT <rfc822;jaysivo@gmail.com> + 99 others); Mon, 5 Dec 2022 00:19:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230446AbiLEFTy (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 5 Dec 2022 00:19:54 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 245F0FCCF; Sun, 4 Dec 2022 21:19:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1670217591; x=1701753591; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=q3Ut3q7aI+xQY83lmW78t2KRKhAbYz+7CfmCtArJ3Ng=; b=Q7maIEisof3pOxsSVjwOVbzbRoW/F8XoNRnS6qQZh0XXKpsu/zHTUbC9 qaPqS7iTYd9g35Bs/3aEUv3RNbdpv3cNS3ZZdBSGzTiTJPc9ZMRNueXqO IQuHythKy0bzfXR2OrzCjE7RWSqK+mhJ+BlCc9o6iOZcC3MnvJUc98yuD LvxDQNaZDwYnJ5qb36hV+yAIk+/FPyST/BplLHQ5Fvaje3cskkfSSkFjx JZHZwd5b5NC6E7LqdyFXbp/fpHN3X0uXxstmalpE+9hwUBftqWQ1qdvMj 7MyWdn+bEU4OMnbeBpQfv4S3xz23Gg6L/ZOUbccryxipOlT3WzBsUStBU w==; X-IronPort-AV: E=Sophos;i="5.96,218,1665471600"; d="scan'208";a="186499735" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 04 Dec 2022 22:19:50 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Sun, 4 Dec 2022 22:19:49 -0700 Received: from microchip1-OptiPlex-9020.microchip.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Sun, 4 Dec 2022 22:19:46 -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 Chippa" <shravan.chippa@microchip.com>, Jacopo Mondi <jacopo@jmondi.org>, Sakari Ailus <sakari.ailus@iki.fi> Subject: [PATCH v6 0/5] media: i2c: imx334: support lower bandwidth mode Date: Mon, 5 Dec 2022 10:49:31 +0530 Message-ID: <20221205051937.3897001-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, 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?1751350317018924221?= X-GMAIL-MSGID: =?utf-8?q?1751350317018924221?= |
Series |
media: i2c: imx334: support lower bandwidth mode
|
|
Message
shravan chippa
Dec. 5, 2022, 5:19 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
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 | 338 ++++++++++++++++++++++++++++++++++---
1 file changed, 310 insertions(+), 28 deletions(-)
Comments
A gentle ping! In the meanwhile the kernel test robot also reported a warning. "drivers/media/i2c/imx334.c:767:15: warning: unused variable 'i' ", I will fix this warning. On Mon, Dec 5, 2022 at 10:53 AM shravan kumar <shravan.chippa@microchip.com> wrote: > > 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 > > 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 | 338 ++++++++++++++++++++++++++++++++++--- > 1 file changed, 310 insertions(+), 28 deletions(-) > > -- > 2.34.1 >