From patchwork Sat Oct 28 08:41:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Apitzsch?= X-Patchwork-Id: 16000 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp1109628vqb; Sat, 28 Oct 2023 01:43:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE+DBOqMqqjquJJjaGlckN9oFk8Y6ysa5NJtK2tVSACxl19UG1Cuk3be+JgrlRtgOTHtMHW X-Received: by 2002:a17:902:904a:b0:1c3:c687:478c with SMTP id w10-20020a170902904a00b001c3c687478cmr4942743plz.8.1698482617542; Sat, 28 Oct 2023 01:43:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698482617; cv=none; d=google.com; s=arc-20160816; b=WvDsEPSa0eKB1Y16H65VrIlW39vdMYW8Wv9STVjcofNSH1nPvlr7G7BixqpsqCbUu/ HJ+eosf4px0AjkT0Xg2HUv8cOL+PwfpUGS/MI9gmM0njkZmSfzyOl5MVXrpx0cbD4Qtj SqLsrUE8xLt1TRvAOPIDnxQ0V5IE4kH4nIWpTkp842eO4mJ4jb4iHdPjcTeNRWE9oVAK sRLe6KvTD7hxGmf+ZpNvbe+zaTdOV1WgNbfff8niwmU6QnavBrtqC/90EC1gSNpYos+K vMiFVtoiYS2eGqtovj8Qw6w5eqdWskZnpdcWhu4TYPAvOewmBTiHpMBcld3yWqRZpSQW Qwcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from; bh=v0JCF6cSYuKejN31kiKhxHW2kM5ks1b9zMBX0+3xHhA=; fh=Zgky+q+8PvhHkxojJIPDJHGW0QVIUIBdH6AVhu4TA4w=; b=VkBEI5OLfSadcGVHgRDtg7BIlNoREtGo4tNJpYz1rk6/UEUWtO7cLfviEFZPn6PVwp HPWHWVbl7dnHPv15ehcokG81qB79xXtbN7QNomLNi5IfN3N4cGIUMbhS5mdawDUIa1Jl kd4P5J8BwKK8w8mT+6FgoFNFveEtfyljews+WTLnrvFU6CTSa/x//yCHtsKLnCliejic smMwfVA3OhD9Aq7wWv6ToBHbCYOHUvu+JkPkLcgH/ibfcCaYR8set44srJdpWpH4J0jM zOWJLddefh5CG5/YLVs/W8uwPvUqfNnbV+p2VOhw+nFowVELcbyDpNNJgpkTa3GD+gqr 8ELQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id d9-20020a170902cec900b001c5c344a425si516515plg.418.2023.10.28.01.43.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Oct 2023 01:43:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 5F2A8809ABF5; Sat, 28 Oct 2023 01:42:40 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229591AbjJ1ImY (ORCPT + 28 others); Sat, 28 Oct 2023 04:42:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229520AbjJ1ImW (ORCPT ); Sat, 28 Oct 2023 04:42:22 -0400 Received: from smtprelay07.ispgateway.de (smtprelay07.ispgateway.de [134.119.228.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72BC4107; Sat, 28 Oct 2023 01:42:19 -0700 (PDT) Received: from [92.206.139.21] (helo=note-book.lan) by smtprelay07.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.1) (envelope-from ) id 1qwetb-0006mt-2p; Sat, 28 Oct 2023 10:42:15 +0200 From: =?utf-8?q?Andr=C3=A9_Apitzsch?= Subject: [PATCH v3 0/4] media: i2c: imx214: Extend with sensor size and firmware information Date: Sat, 28 Oct 2023 10:41:44 +0200 Message-Id: <20231028-imx214-v3-0-cd4bf77f9690@apitzsch.eu> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAEjJPGUC/2WMzQ6CMBAGX4Xs2Zr+kFo9+R7GAy1b2YNAWmxQ0 ne3cDAaD3uYzTezQMRAGOFULRAwUaShL6B2Fbiu6W/IqC0MkkslyjG6z1LUTBtXK4PWW+6gjMe AnuYtdLkW7ihOQ3hu3STW718iCcaZVcoLa1vhnT83I02v6Lo9PmCNJPktmo8oi6iPjfH2oHir8 VfMOb8B9RQXXtcAAAA= To: Ricardo Ribalda , Sakari Ailus , Mauro Carvalho Chehab Cc: Kieran Bingham , Jacopo Mondi , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, =?utf-8?q?Andr=C3=A9_Apitzsch?= , Ricardo Ribalda X-Mailer: b4 0.12.3 X-Df-Sender: YW5kcmVAYXBpdHpzY2guZXU= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sat, 28 Oct 2023 01:42:40 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780982795791832280 X-GMAIL-MSGID: 1780988109403765424 Add the effective and active sensor sizes and add functionality to read rotation and orientation from device trees. Signed-off-by: André Apitzsch --- Changes in v3: - Squash patch 5/5 with patch 2/5 - Link to v2: https://lore.kernel.org/r/20231028-imx214-v2-0-69a8fb730d6e@apitzsch.eu Changes in v2: - Use integer representation for default exposure (Kieran) - Replace dev_err_probe() by dev_err() - Increase number of pre-allocated control slots (Jacopo) - Fix typo in commit message (Jacopo) - Add r-b tags - Add patch to fix ctrls init error handling - Link to v1: https://lore.kernel.org/r/20231023-imx214-v1-0-b33f1bbd1fcf@apitzsch.eu --- André Apitzsch (4): media: i2c: imx214: Explain some magic numbers media: i2c: imx214: Move controls init to separate function media: i2c: imx214: Read orientation and rotation from system firmware media: i2c: imx214: Add sensor's pixel matrix size drivers/media/i2c/imx214.c | 175 +++++++++++++++++++++++++++++++-------------- 1 file changed, 120 insertions(+), 55 deletions(-) --- base-commit: 66f1e1ea3548378ff6387b1ce0b40955d54e86aa change-id: 20231023-imx214-68c438ebfb0c Best regards,