From patchwork Wed Feb 1 17:06:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 4828 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp402238wrn; Wed, 1 Feb 2023 09:18:26 -0800 (PST) X-Google-Smtp-Source: AK7set98hoNXBEnh/FBOcLGhxLX5W628DK7ikt6pGjAzN8owDiBBNotJ9CMXSN9vBIsQpkVgZYyH X-Received: by 2002:a17:907:724b:b0:888:9bd6:34d2 with SMTP id ds11-20020a170907724b00b008889bd634d2mr4019447ejc.63.1675271906409; Wed, 01 Feb 2023 09:18:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675271906; cv=none; d=google.com; s=arc-20160816; b=YOrRYqXhTxJzkH7aVcu3u6oMWtpU4S1SrDex5Uk8MfWD66+BZatGlSwZXsmGiiqeeK vn0fjyun208dXgDHO8qOY3JqjPk5U6R2ZCiBGHogMSMpdcGYlnbo7FUsrrEPojhPaZR3 ojIiVt/dAbpsGPM+tyHPMI0lgNiScrzf3Go9MHa1nD7EergEo2dVwDHLgj2Zlz4u8VvV leSDEe72MtNWl0dwcJ+xPLUg5qAA+YvY9LvClBw4/4UZaRJ7JjlDC/yHBvl2rA623Jjs hXTfpNVsY24/0sqj0UyRV1mmf2AY3zH+zqZ41FF5rozot/lh00+/QOUDmPX52G2/r8cV x25A== 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:dkim-signature; bh=78sTJ10ci1HTbeNoJRixmd0tNb6Kwk3kn+QgOFe4ZNo=; b=F3Nm+703sjLaKuK8m7cNhbIxICk2V12nGuYLA1ubpMWB5QG8mKDYPQPX9CTcaxM/lI j2HmaeeJtVxDqtgGlUjVCGJrq6nseimg6VMRyfu+AnzRgW38Bu/9RqrtaeLAFyXtNza5 JWIveS947Xv+Y/0yvuaWAlqoIPizJQwMMZlnJST9819GwKx6snlLo9/yLO2BrGxNcvUe VrE7UlZJ7gtYPanUiNFpJkUbridF5/rYl8JfZ00bDMenYn9oROQRCk4qrq005dj8ajyQ ioIYjAzNWJIve0kOKxeaZTysddqr33xxg2zLYKRKEby1wXpXmnNS2l9thQS2tx+/5dRB sdXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=hcc5QWaX; 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=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id eq21-20020a170907291500b0087ba1dc96cfsi15082584ejc.824.2023.02.01.09.18.02; Wed, 01 Feb 2023 09:18:26 -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=@z3ntu.xyz header.s=z3ntu header.b=hcc5QWaX; 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=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231888AbjBARHv (ORCPT + 99 others); Wed, 1 Feb 2023 12:07:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231835AbjBARHt (ORCPT ); Wed, 1 Feb 2023 12:07:49 -0500 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21FE813D77; Wed, 1 Feb 2023 09:07:46 -0800 (PST) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 716F7CB5D3; Wed, 1 Feb 2023 17:07:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1675271234; bh=66Z/Bpdu6zld3PM5oO20Gu1y5mfDkdE01d/tlgt/Ifs=; h=From:Subject:Date:To:Cc; b=hcc5QWaXwoG/7DvgzF7LNNbsP87PV1H0UXzZnenh66nrKaIkLbeVfK7hgxryjsaip GfGAiL/0V00uoU0+7+kqs+M7JHGLVC5A5KZ0APCuVaKvgaP1w5EOxf7qhcANCJgmz5 I8kS0LhyynZOTG10CcB4uZLarwdm/gUAoWrsrLrQ= From: Luca Weiss Subject: [PATCH v2 0/4] Improvements for OmniVision OV2685 driver Date: Wed, 01 Feb 2023 18:06:57 +0100 Message-Id: <20230129-ov2685-improvements-v2-0-210400f2b63e@z3ntu.xyz> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIADGc2mMC/32OTQ6DIBSEr9Kw7jOA1kpXvUfjAvBZWQAWLPEn3 r3oAbr8JvNlZiMRg8FIHpeNBEwmGu8y8OuF6EG6N4LpMhNOeUkZF+ATr5sbGDsGn9CimyIoWqp O90xzQUk2lYwIKkinh8P9aG/BRtuIewV1wYoFtLQYJD/KY8DezOeFV5t5MHHyYTkfJXak/8cTA wo9b5jqKlEKoZ9r6aZvMS8rafd9/wGWr+pS4wAAAA== To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Shunqian Zheng , Mauro Carvalho Chehab , Jacopo Mondi Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1070; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=66Z/Bpdu6zld3PM5oO20Gu1y5mfDkdE01d/tlgt/Ifs=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBj2pw+yJf9TMjOYWheJSe51np1cXJewhoyfolq/pif 5XU8vKaJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCY9qcPgAKCRBy2EO4nU3XVoxiEA DNI8lKcgBVIBox6DMA8LoGqoN6RJQkPFbJRIBTDQkYpkZrGuePbqRwHEBqwHaBenWa9f1cYKRXkXIO L4RV39OE1lg8cFOZG/wxlzxsSSv2nkuSx6qBAuclykiXbvBp0i7IrryZs3ul6Lxqs6L8O0yYlW0iPY 0gN+SYNgQLNAKzjgRt543IFQ8S6n6E4OoUbxV00lIvJ/R81TY/bG1QNEjzV03NyOoGbo6D7oqEZ9Vx ZmXQWJGCLHvsnt/0d48eqPl60ls9OEc9ZSGboyP6Vna7L0W84cAbWYDM79hIUMN5AfSF1KhjvQAK5O K9xX5mmeKIRepsG9ooP7RaWZqI2tmFWO/rGu0Uq7SEzE2jv+BJmH/0WzHkjjfryuhGHQQc+alAbZN6 eAMsacMY45MKdtmfjNCg5f0aa9UQ7CxCDrGobr7vNB7IE+1WMFY+Pz260wY3aPN11Ul8oYLd1sK2gH jr/n4nxNYpDrGnIhNUikp7rjYXjyJ4rYmJo2k8MSpvQCdGyKmtxZ0f1LByO/WKW6cmV/S3mik+9M75 XoJwxLeXKNQ5avCAjaBxQyNL5y2gnD13OlT9GlVYUmiOFvlDhgNP1pgfQn6boapcngmjXQbGWuez1j hR0e5xWzS/cFPlXkSkokz5ytoHSfCL48iP999r+Q+GeDvKRWdylsfcnP4wRg== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD, FROM_SUSPICIOUS_NTLD_FP,SPF_HELO_NONE,SPF_PASS,T_PDS_OTHER_BAD_TLD 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756649914645212578?= X-GMAIL-MSGID: =?utf-8?q?1756649914645212578?= The first two patches make the sensor work in my setup, and adds a missing error print that can happen when the dts is wrong. The last two patches add extra API support for orientation/rotation and get_selection that is wanted by libcamera to function correctly. Signed-off-by: Luca Weiss --- Changes in v2: - 3/4: Reserve more space for v4l2 handler for the new controls (Jacopo) - Pick up tags - Link to v1: https://lore.kernel.org/r/20230129-ov2685-improvements-v1-0-f281bd49399c@z3ntu.xyz --- Luca Weiss (4): media: i2c: ov2685: Make reset gpio optional media: i2c: ov2685: Add print for power on write failed media: i2c: ov2685: Add controls from fwnode media: i2c: ov2685: Add .get_selection() support drivers/media/i2c/ov2685.c | 80 ++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 77 insertions(+), 3 deletions(-) --- base-commit: b4c97ca9bb2381580a132a6c71b0e93ac6a4524a change-id: 20230129-ov2685-improvements-b03bdcf1c290 Best regards,