Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp907690rwb; Thu, 19 Jan 2023 04:21:56 -0800 (PST) X-Google-Smtp-Source: AMrXdXtg5ZpjetB1mYZX9OT9cpS218RFVQeijIi+HOh3Ce0cv+1PN2dcyWRiJegIQAGIdemMSEkl X-Received: by 2002:a05:6a21:3287:b0:b8:66d3:30aa with SMTP id yt7-20020a056a21328700b000b866d330aamr14373393pzb.50.1674130916412; Thu, 19 Jan 2023 04:21:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674130916; cv=none; d=google.com; s=arc-20160816; b=YR71FM7b+PoBsnRYFUuW7YB6KoU9jLsknN4FCmz9KXieBQa1PSiw/5cAmVKT1Vp77A xeBK8/bgx3BKi42CYGr7DWTjTwJHukF36OPFnC2wGsbPdZqSNEzdYKwzn9oDkw2gst5b DBo9EUjIaBR09BF4YqjbvJ/dRDA8u/2B3u3lnaKJMADUDn86/E3QHPiGzDvD7207D6Jc set6maiK/eL85Vhit9dYqOcrB8buqw3kYO9xiL4pZsoN8vpcMHIBUNlsGHOdkv9tctlr oX4ZEzKV2nHbhWopBvCL2C2pyiQGhHEv4wmLTR7N50l2FVSloeXaUsUm0Ifr8fUZxqUF RVmA== 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=yiAGKLpvi523+rEpZtd14F9kmeWEbgLCZAyPvQjQfyY=; b=O1hdHjs7sPJeSqD9XeEUndJQMZpFnM+1YytFRz2RLVRs2LhBhm0eqg2cu7XB+6vV51 jrwwCec5eEu/tGn7J4fHbqbnhJPZgF9E5eBb8pWMAi2iQ3yIRUF8VfbpgJOmdXtemfKJ VAoDFDfvfRgSyazMi5a0aOYMsR9Q2QmoeYVCA5DP8GtNo+cicKoZiiZ3uCCr4tEi6tXV disyYDVhwENMOmvnKLvNMfKdhf+1uvK45m846WEA2iXjJaKzZ2YmG8bf5HdNPehCH1Jv jfD6kbgfCZNZZKlcJUWDR9x9t+VbcAqcuVcktccnXjdfOqz9k1+MKWngWx7ArVwdqaSh M9QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=BVreKkIZ; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k193-20020a6284ca000000b00557c5641be2si36423565pfd.248.2023.01.19.04.21.51; Thu, 19 Jan 2023 04:21:56 -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=BVreKkIZ; 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 S230206AbjASL3C (ORCPT + 44 others); Thu, 19 Jan 2023 06:29:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230126AbjASL27 (ORCPT ); Thu, 19 Jan 2023 06:28:59 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EFC770C4F; Thu, 19 Jan 2023 03:28:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1674127737; x=1705663737; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=DcMuBWFFR6Z1Zscg6mz2qkHW2S/lYlqIKkXOk0ulIV4=; b=BVreKkIZ3WqzOsfdVsKsXBOvAoQTehiTooO63KOy9QMSZ1RND6h1YtR3 DexLzTEJ+npSvd51i3BfmaXnP+LK086snmxalx+o92WafzaHRZknzNktr 4tnE7bXLF/F5++DxuLGXNRzQ6vuEomBRDkFIwEKFoFrbH9Oi6UeuPart/ BkzuwgO9v+aSr8Tl++I/oXPlWq1BETLhjcSkWkouulIOpc21APAln1ui5 vkAv1dKYKrkhXw8l+EGuZR6+VzmGRGp3PyuaVEUNYAgC2XitsfWUm3u9k KSBSeFeRtTSC/o4uzmAcDLjqKBWUTJ39thfEEJ+Sb8qlmq2vU63ihllBo w==; X-IronPort-AV: E=Sophos;i="5.97,228,1669100400"; d="scan'208";a="208443525" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 19 Jan 2023 04:28:56 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Thu, 19 Jan 2023 04:28:55 -0700 Received: from microchip1-OptiPlex-9020.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.16 via Frontend Transport; Thu, 19 Jan 2023 04:28:52 -0700 From: shravan kumar To: , , CC: , , "shravan kumar" , Jacopo Mondi , Sakari Ailus Subject: [PATCH v10 0/5] media: i2c: imx334: support lower bandwidth mode Date: Thu, 19 Jan 2023 16:58:43 +0530 Message-ID: <20230119112848.3523273-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: X-Mailing-List: linux-kernel@vger.kernel.org From: Shravan Chippa 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 V9 -> V10 Added new dt-binding patch added support for handling multiple link-frequncy minor changes on coding style V8 -> V9 -Updated all array values with samall later to get unifamity in mode array values -corrected hblank_min, hbalank, pix_clk for 1920x1080@30 updated according to link frequency -corrected mutex use for imx334_get_format_code function -corrected the fmt->format.code value assinment -in function imx334_get_format_code variable "i" value comparision corrected V7 -> V8 -patch drop "mimx334-odify-link-frequency" as per the commnets linkfrquncy will be half of the line bandwidth -changed 1920x1080@30 mode link frequency from (891000000Mbps) to (445500000Mbps). linkfrquncy will be half of the line bandwidth 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 -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 -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: 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 dt-bindings: media: i2c: imx334 add new link_freq media: i2c: imx334: update pixel and link frequency .../bindings/media/i2c/sony,imx334.yaml | 2 +- drivers/media/i2c/imx334.c | 361 ++++++++++++++++-- 2 files changed, 324 insertions(+), 39 deletions(-) -- 2.34.1