From patchwork Tue Nov 28 10:00:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans de Goede X-Patchwork-Id: 13470758 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="aiaSxJ6F" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3567019B for ; Tue, 28 Nov 2023 02:00:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701165658; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=kKEzWBQ+iX8vifh4JHHZmPL2RuqTHuFa9xV6LO2UezA=; b=aiaSxJ6Fr+rulHjRpNEzLlqqKKEUKW4oZY2Egue7AlWz7h9/bezNvRTvEDNyJA+z4zcD6B JqMJeaHRXeD1tKu/5Hmtsd1hmYG4YXEoIc+D2j3eXOjwarfhrNwm2neDLZfZiqBoqsdBNb oWt5v++zANYiv/YG1O/LmLvIGWx0W4A= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-445-2bL1HJtLMmGuQoc-YDj2Hg-1; Tue, 28 Nov 2023 05:00:55 -0500 X-MC-Unique: 2bL1HJtLMmGuQoc-YDj2Hg-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8BC33185A789; Tue, 28 Nov 2023 10:00:54 +0000 (UTC) Received: from localhost.localdomain (unknown [10.39.194.244]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6099B20268D7; Tue, 28 Nov 2023 10:00:53 +0000 (UTC) From: Hans de Goede To: Sakari Ailus , Tianshu Qiu , Bingbu Cao Cc: Hans de Goede , Mauro Carvalho Chehab , Kate Hsuan , linux-media@vger.kernel.org Subject: [PATCH v3 0/9] media: ov2740: reset GPIO, clk and 180 MHz link-frequency support Date: Tue, 28 Nov 2023 11:00:38 +0100 Message-ID: <20231128100047.17529-1-hdegoede@redhat.com> Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 Hi All, Here is v3 of my patch series to allow the mainline ov2740 driver to be used on various Lenovo ThinkPad models using the IPU6 + ov2740 for their camera. This series has been tested on a Lenovo ThinkPad X1 yoga gen 8 with both: 1. The out of tree IPU6 driver with Intel's proprietary userspace stack 2. The pending mainline IPU6 CSI2 receiver patches using raw bayer capture in combination with the WIP libcamera SoftISP code Changes in v3: - Add missing fwnode_handle_put() in error-exit-paths in patch 3/9 Changes in v2: - Add patches 3-9 which add 180 MHz link-frequency support - Fix code in patch 2/9 to stay in 80 chars limit Regards, Hans Hans de Goede (9): media: ov2740: Add support for reset GPIO media: ov2740: Add support for external clock media: ov2740: Move fwnode_graph_get_next_endpoint() call up media: ov2740: Improve ov2740_check_hwcfg() error reporting media: ov2740: Fix hts value media: ov2740: Check hwcfg after allocating the ov2740 struct media: ov2740: Add support for 180 MHz link frequency media: ov2740: Add a sleep after resetting the sensor media: ipu-bridge: Change ov2740 link-frequency to 180 MHz drivers/media/i2c/ov2740.c | 387 +++++++++++++++++++++++---- drivers/media/pci/intel/ipu-bridge.c | 2 +- 2 files changed, 334 insertions(+), 55 deletions(-)