From patchwork Wed Nov 15 12:38:15 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: 13456649 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4457F1EB35 for ; Wed, 15 Nov 2023 12:38:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="A3PIeiB+" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2753AC8 for ; Wed, 15 Nov 2023 04:38:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700051910; 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=Gerb354guZ6Hgg18Ujg20LrrXmMt/fWa/MZpQsozpCc=; b=A3PIeiB+BBJ8I3YSYtou+L5bg3Y76KZj9LapOBodMM8k/tJna9xSuLT7Y7ECZe4rk1FSod 441rtgZLW+4srcrMc/WAC5VZKHRtu09brVNTwx9gaeQ5Fx03fSpYaEhQ72JpNQmlmj+I1F HoAkJPlTYUI/hEmJ/PPAlHPiWijnEeA= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-228-DU7x6w-ZMu2nIBL95MmoFw-1; Wed, 15 Nov 2023 07:38:27 -0500 X-MC-Unique: DU7x6w-ZMu2nIBL95MmoFw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (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 03D60382156D; Wed, 15 Nov 2023 12:38:27 +0000 (UTC) Received: from localhost.localdomain (unknown [10.39.194.210]) by smtp.corp.redhat.com (Postfix) with ESMTP id 09BFF5028; Wed, 15 Nov 2023 12:38:25 +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 0/2] media: ov2740: Add support for reset GPIO and external clock Date: Wed, 15 Nov 2023 13:38:15 +0100 Message-ID: <20231115123817.196252-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.5 Hi All, On some ACPI platforms, such as Chromebooks the ACPI methods to change the power-state (_PS0 and _PS3) fully take care of powering on/off the sensor. On other ACPI platforms, such as e.g. various ThinkPad models with IPU6 + ov2740 sensor, the sensor driver must control the reset GPIO and the sensor's clock itself. This series adds support for having the driver control an optional reset GPIO and an optional external clock. Regards, Hans Hans de Goede (2): media: ov2740: Add support for reset GPIO media: ov2740: Add support for external clock drivers/media/i2c/ov2740.c | 60 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 58 insertions(+), 2 deletions(-)