Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp1984616rwl; Thu, 5 Jan 2023 23:43:16 -0800 (PST) X-Google-Smtp-Source: AMrXdXvpriGZY9M14q/pClpUzDBjX++pO3elzJWi3cMIeOmLjikRIpK8dKK4wdpK5LB8Cr/mxPbk X-Received: by 2002:a05:6a20:c113:b0:aa:1db4:d31 with SMTP id bh19-20020a056a20c11300b000aa1db40d31mr59519465pzb.54.1672990995825; Thu, 05 Jan 2023 23:43:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672990995; cv=none; d=google.com; s=arc-20160816; b=CbzQ0nI+7jw6/3dtU8ZJ0T74FhGicF3ywMcFuv9SOxTFEOEsfxIObLISjKVL1/p2Ys WpD1sArtbB/iws7d3+7p8O3UrQsYajHxs0iyK+R2X7acpoPDUlKFYMqiez0XuBIcCeLg SUWLkfN0zVlSGTkPiPzzrsvHP5zIEx4uTyBF84A0mE9YuVdMaKTHmRMc/WkSL9zbsWEO QwF2/HjxNWA6hql3WSUAWCFTV+cz/uOVU0bo1GCwmz9SQf5FlBCzqbecbfR8ev+jNKhu DypTX3CCne7pG4b3yM4lJOCA2FQ2V44XQaHQ7gZVGC296Sgc6fyH5Ukvae5Wv3hKv0oV L/ZA== 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=40H6xIxEU9zeYF78VhLDhtPW1jiSUQK2ccuMHS4HAak=; b=zkVCKSvesWMoHj65ST4ttlFLYUvM+k7ucuZPD2mogMcHDdYRVMudg0k9FJQFOxfh5x 9y4yvUBR/zID/+tKhB09hg0pyrwdA59pkkuYtSsOrju+R/wrBXvz0ArrdXuFGaMzXrdI payxj5R5U2Z4Vqwh/Nl5u3CQ16zfJQVGGV6MRFl7EQhjOis/NNt0PNzsETKq8/igANxb 9URzQzV8HNvU2xgXixGFYMVJ6oImna9+YfMiZOyDwt38qW+Gv5LKaIglFrCsDBwvbW8e rS+QtlKpcsV2SjPYPPzJwXZovZsPIdNM1IYhqzfkwIzJWBBOKnYE5kiZCg1hk9/eT1by Buvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=Euj4v68S; 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 x29-20020aa78f1d000000b0054342bb20e2si642944pfr.66.2023.01.05.23.43.08; Thu, 05 Jan 2023 23:43:15 -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=Euj4v68S; 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 S231404AbjAFH3w (ORCPT + 54 others); Fri, 6 Jan 2023 02:29:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230062AbjAFH3n (ORCPT ); Fri, 6 Jan 2023 02:29:43 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54B1D6F943; Thu, 5 Jan 2023 23:29:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1672990181; x=1704526181; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=+O1VVugWdTrOq+0unh3qWgyTEpIB4QUXCWrVkXCuuvk=; b=Euj4v68S9HfvYQyjjlwD6dwDWp/v0r3GRSpMUe6pU+A3hlf3cmOa+LjR bcMGTCuUs7uiB195sHXcyY27B1lEKrtwojf74v6LW0nMSZPIte05watU4 QDdTByPrGtDz0OyydI/CrpSUmLUVbAbUXmMXcgaJ2zrp/CK3SXUskgGQ/ Faz7t20YgNpeyFlSoqyfJKAbrNnbCJQ2nhPW4Z7u1HligoATUzBoGLejz KUwNSOn0ZRuHq/vyz35MsM+7Aud3jHwpT+Rk+cvBAlr6lwoq3epepHA04 5uh64reIahphCTsAbcLW+9bh3rT2gfNdOjg1RYBk+nkMUKs2gJOvb5VJW Q==; X-IronPort-AV: E=Sophos;i="5.96,304,1665471600"; d="scan'208";a="131104680" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 06 Jan 2023 00:29:39 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Fri, 6 Jan 2023 00:29:38 -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; Fri, 6 Jan 2023 00:29:35 -0700 From: shravan kumar To: , , CC: , , "shravan kumar" , Jacopo Mondi , Sakari Ailus Subject: [PATCH v8 0/4] media: i2c: imx334: support lower bandwidth mode Date: Fri, 6 Jan 2023 12:59:27 +0530 Message-ID: <20230106072931.2317597-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 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: 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[] Shravan Chippa (4): 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 | 335 ++++++++++++++++++++++++++++++++++--- 1 file changed, 308 insertions(+), 27 deletions(-) -- 2.34.1