From patchwork Fri Nov 25 05:08:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: shravan chippa X-Patchwork-Id: 2209 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3776167wrr; Thu, 24 Nov 2022 21:11:31 -0800 (PST) X-Google-Smtp-Source: AA0mqf4OLPja/ynvFZKg1CoueDxoCZ1umYysjnKMnPok5CqN0bMe6xgGWRoO24WN6snsR8sVSFYW X-Received: by 2002:a17:90b:3544:b0:218:8666:f0fc with SMTP id lt4-20020a17090b354400b002188666f0fcmr34291791pjb.184.1669353090922; Thu, 24 Nov 2022 21:11:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669353090; cv=none; d=google.com; s=arc-20160816; b=q12/Y3pl1HE0hK8yB3+lO9+Fx8D8YLd5Layc8zP6ScFO55xTAa19Mk98Ck4Z/c3toO pBfvu/TN0XYD6zo+ZehjCANFqruWZMWlvmM2E9gamSPj/9o3dxVeSQUKaduJnIbCK4Pp KyQ2Ri17wStdJ8LdEgiJ4Zg7P+PQggtXFq8puL+zyTF7A47OAwi8mwiiCyHqN/hJ93BI ueXwV1cK6JgZe3gM3l0+m9cADY0rwbGYY6nRvdR0hLZ0RKujIxTcdG735F0hY6Wi3C8o df1ZR5A0TUkNMGD1YrBIzkQ8DJWqfYkZ1wiADgyLBRYHPqS2Il/QtHvA6PY/xFZrIXCl NMaA== 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=tr5jyCjzhsS6DI8x7DVp4B5zNywO2lslEFc9mHqbCnE=; b=TmndqiT45Bx5UIMf/1WGOJC6UNirurCM0by8rrpa1UPEKEtMFW4YxwictMP4T5emJr /cUH0s4vq2uZFgDw6DegIN8O7JZBxxYhMvp9TBSnO5AFE92rTVVTdk25N3G3bh+8JaI8 OyulPzfMy4WEewmVuoCImP9auTCkU4cK3FhdtEySiLUFuTK8h7OEOnYzre35lLTfpuYr D9XzkGH5kYdUcuOhYBI6BqkKrfkgaZluaMMQwFZwak4zhHCe3piTQsZJwyZGoFSL0yzv HqSUWthfmMOvJY6qZYFYEjpuxUh1TKD5YAfTjDAy24pM59FvcdCQc3uCRsrLE10kBR9r pbSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=h0DfmCC7; 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 b16-20020a170902d51000b00188d892999esi2985879plg.521.2022.11.24.21.11.16; Thu, 24 Nov 2022 21:11:30 -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=h0DfmCC7; 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 S229570AbiKYFIT (ORCPT + 99 others); Fri, 25 Nov 2022 00:08:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbiKYFIS (ORCPT ); Fri, 25 Nov 2022 00:08:18 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB74F27B0F; Thu, 24 Nov 2022 21:08:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1669352894; x=1700888894; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=+Iru+rPzbuM4DVegAhL9qv+EEr9L1O1AHIlf4byW/4Y=; b=h0DfmCC7CBjdy9PRidL3RwGO0t4MR5hYrEcK48UOg3JbcDsXVAQ+LI2p iUqhp/pOmGFboZWuCo6lmnkADUf99PawnhRDXo7fQuwwSCQHv/t84Une3 Z4UWWXpKnSq/jVdOkrdKQXrTxII7TF0ZqaZNmuYUDo52BqzBesODo1bql VE6sR/JjGcUMqGhf3kyTEo2mp5sbgY65qQYHv6dBeFbJqPOY1A1FOADXR fxBzdO0ZP5SMKTIZexeYJI6e5HiK2gmhjX3RElyCm7XM6PLm+kZYGQQyv bc+FyjfA7Hn5AHE33rzwjzEvai4Il0v6fAnSLLg9IzVih773PV6kndIGO g==; X-IronPort-AV: E=Sophos;i="5.96,192,1665471600"; d="scan'208";a="188604123" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 24 Nov 2022 22:08:13 -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; Thu, 24 Nov 2022 22:08:12 -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; Thu, 24 Nov 2022 22:08:09 -0700 From: shravan kumar To: , , CC: , , "Shravan Chippa" , Jacopo Mondi , Sakari Ailus Subject: [PATCH v5 0/6] media: i2c: imx334: support lower bandwidth mode Date: Fri, 25 Nov 2022 10:38:01 +0530 Message-ID: <20221125050807.1857479-1-shravan.chippa@microchip.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750443570999810033?= X-GMAIL-MSGID: =?utf-8?q?1750443586644267345?= 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 Sorry for taking dealy to send updated the series as i need to check the impact of my patch on 3840x2160@60 resolutions 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[] - Modified supported_modes[] to get higher resolution first Shravan Chippa (6): dt-bindings: imx334: modify link frequency in examples media: i2c: imx334: modify link frequency as for the configureation media: i2c: imx334: hblank set function modify media: i2c: imx334: add default values in 3840x2160@60 array media: i2c: imx334: support lower bandwidth mode media: i2c: imx334: updating pixel and link frequency .../bindings/media/i2c/sony,imx334.yaml | 2 +- drivers/media/i2c/imx334.c | 338 ++++++++++++++++-- 2 files changed, 311 insertions(+), 29 deletions(-)