From patchwork Mon Oct 23 21:47:49 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: 15782 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp1571368vqx; Mon, 23 Oct 2023 14:49:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHCpQ16BljITLyCk66SCnAuUgky/id+11EybuQJRtpgfNUO97w0GLcFbQ7OkRW0maTuLTnn X-Received: by 2002:a17:90a:19c5:b0:27c:eb7f:cd00 with SMTP id 5-20020a17090a19c500b0027ceb7fcd00mr7399284pjj.22.1698097787994; Mon, 23 Oct 2023 14:49:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698097787; cv=none; d=google.com; s=arc-20160816; b=rDDbRywGZF01XP0UwvRe6AZ8NnOlNG7v327ykGW/XP+AERgnM6o0bZRR0P3ru+WLiT LAiVICSsuGYrHdAZisiagEYiBZ5HCg89Oi2CU9rOvto4MUqjg8r8WcRRpj+57SFMczxe RMZ+Q0DqE7LcHalpf6wXTZ8bU4CaDiUJlNnk5oqt4wwH/jJszwxVMWJ2eW4aTafg/v1O Dip/smoazRnljTypJ9i/JFfuZgILCF5JubMDmtPf4HzbXoIElEL+EmDG1QLcQZGCnN/c +bnWY7tPM7p7CUxao+TFcKxKkCqPcLZGhQyMETAH6JUzkPXTXKJdREQ8RCj0lmflqMy4 ZE/A== 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=SdkvnvTZRNa8gcDaTgPnOQUodO7y+1TiMyX2faZcGlk=; fh=p+mi5Td8bOurAzEd8CdVTJhDRtapyUXUHLHoRH6vUVQ=; b=kxv8vy6yTKb8Qx/uCnI2X+ViOgQQuSS6VFDjFCx9Ar8gLetKonnZYYmkfzbByoIKTk nDOOiQILVQl4nypptsTT19V1RlcW9lilNt/jbAZS5A4HdZ6hMwRsaSC/tLERC+h2z4AC eb8Si+zW4fuSq46bNoqpDVYlreDzFdIcuNAaEedKY/c+tL6M6KGnur5QAIH0oY1sVr6x aOvkMdxqfBp+SPWIOd2I+GKmU0mVhCkcd//x+toaX4AnL+pRvmJmR9YXs1rPHvSKn+MF w/9QabPK9/+FZh85VfU5iaIWQCGP725KQvSiOwz8q1iMinTx6/f56PYK+Twd+7d4phUc rERQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id nu10-20020a17090b1b0a00b002772ff87ee4si10098233pjb.82.2023.10.23.14.49.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 14:49:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 53CAE80C0568; Mon, 23 Oct 2023 14:49:47 -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 S232165AbjJWVtm (ORCPT + 27 others); Mon, 23 Oct 2023 17:49:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230483AbjJWVtf (ORCPT ); Mon, 23 Oct 2023 17:49:35 -0400 Received: from smtprelay01.ispgateway.de (smtprelay01.ispgateway.de [80.67.18.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B64F410E for ; Mon, 23 Oct 2023 14:49:32 -0700 (PDT) Received: from [92.206.139.21] (helo=note-book.lan) by smtprelay01.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.1) (envelope-from ) id 1qv2ng-0004Kz-0W; Mon, 23 Oct 2023 23:49:28 +0200 From: =?utf-8?q?Andr=C3=A9_Apitzsch?= Subject: [PATCH 0/4] media: i2c: imx214: Extend with sensor size and firmware information Date: Mon, 23 Oct 2023 23:47:49 +0200 Message-Id: <20231023-imx214-v1-0-b33f1bbd1fcf@apitzsch.eu> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAAXqNmUC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDI2NDINbNzK0wMjTRNbNINjG2SE1KSzJIVgIqLihKTcusABsUHVtbCwAFW6l 0WAAAAA== To: Ricardo Ribalda , Sakari Ailus , Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, =?utf-8?q?Andr=C3=A9_Apitzsch?= X-Mailer: b4 0.12.3 X-Df-Sender: YW5kcmVAYXBpdHpzY2guZXU= X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, RCVD_IN_VALIDITY_RPBL,SPF_HELO_PASS,SPF_PASS autolearn=no 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]); Mon, 23 Oct 2023 14:49:47 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780584586567252132 X-GMAIL-MSGID: 1780584586567252132 Add the effective and active sensor sizes and add functionality to read rotation and orientation from device trees. Signed-off-by: André Apitzsch --- 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 | 171 +++++++++++++++++++++++++++++++-------------- 1 file changed, 117 insertions(+), 54 deletions(-) --- base-commit: e8361b005d7c92997d12f2b85a9e4a525738bd9d change-id: 20231023-imx214-68c438ebfb0c Best regards,