From patchwork Fri Aug 30 06:34:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Zapolskiy X-Patchwork-Id: 1978765 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=UQn1fci/; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:45e3:2400::1; helo=sv.mirrors.kernel.org; envelope-from=devicetree+bounces-98239-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org [IPv6:2604:1380:45e3:2400::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Ww7gM6zCPz1yZ9 for ; Fri, 30 Aug 2024 16:35:11 +1000 (AEST) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 66871285635 for ; Fri, 30 Aug 2024 06:35:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C743A14E2D7; Fri, 30 Aug 2024 06:35:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="UQn1fci/" X-Original-To: devicetree@vger.kernel.org Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DBA4514D420 for ; Fri, 30 Aug 2024 06:35:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724999706; cv=none; b=n3j9efraRfaWnNruY/QWIXouKz9ZVYhwrsVpKgEXKWbUcPf059wjkCg2d2Qfw74Qe2W6tsx2prUmmg40FqDwphR6PrngSCT4Ch04iR+T/dXyZ9oFxW6gd48CmLfiu23JYM802nV4c5ZwMmUXXTu1J7YCpjCw6GFMfMiX2cMdNKE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724999706; c=relaxed/simple; bh=SS9fXxH3VoyBjmFZPFaxsc0VsNSPJvIu5TKSPiboAjg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TlCZ6AcCUDeRGQFJBClsvpGuS0Uz3RBMdN4GmZn+aexwY3XJgrwD6CetxGA+nMzyilTa3SXFqgIfOiiFoMxfRtyU+iVKC+JqOL1gyne8ODMt39q70jy6fnMXf6un3O2Ko5bVoKiSVz5P7xRNC2KP7X1sUteICH0M/k6FAwHOF3U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=UQn1fci/; arc=none smtp.client-ip=209.85.208.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lj1-f170.google.com with SMTP id 38308e7fff4ca-2f3fcdfa099so1129901fa.2 for ; Thu, 29 Aug 2024 23:35:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1724999703; x=1725604503; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=OuzaFf05L8J4fgAxusny/qESzZ92lsZab8WC1NT5JfU=; b=UQn1fci/wmKfWZkkPRYS3K0ZeLtL93yQT+cXyx5RyyUy5Y3uAZkufGkaR5KbquTfxX fUHV0jIBq5B+oFNo/KrBnp6x2NCsFYp0VwBrvFtKGlnuDTuZmt5IEzMNKfOTwzpnfqdL Yl1crFxgME16ZcsQiOE0SzNGe+mgQjeB0gyPq5WbwvQOUBt3yts4Dh4Kw5cco6KCv8vw 1grmv/KuBmJ5YXC7kCdt6eummyH0Cebk6rIy/KgkWzEPMbj/GXS4n+WX5iDLeWR6kIUS KXDBEp53iuppR6FwA6J7OelGzTrhpjuu7urdqsFfX1Yr9GwAW80wUIGDQL+T49u4ZZ3M TL+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724999703; x=1725604503; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=OuzaFf05L8J4fgAxusny/qESzZ92lsZab8WC1NT5JfU=; b=RVLh/uJ/lB6GF7TMqPM86DHTZlnJqU38a3e7ejMlR3sf1XC2P6VHnba0G8+ke30fsK uVgcNG4HY1do5ldGxH2+Yi9KFqKKTlz3CFHTRobF66mGmTOyHeJ1aKoB+asPkNxYS8BP fMlIlOGdVVElKeE/GIeDJJvclgfzyMYJ+gi6c4f8o2nuRJcd4nzyvD48yzgsUC/I88Sy 4TVLRiRavt2FSK8YZVp3MiEkh16hXDTITHdrEXcDegk8qynYBM+6R8uvNw9b33O5WozI mYmdw3iCo1s4tjdpOGqqc66Kzj590MmqJ6EQmChDpD6NLHpPDXIrcJH0BVTCW81INK/s 9FJg== X-Forwarded-Encrypted: i=1; AJvYcCVwG4isyP6MqMMzSFgZY+p5eGX/h0ZyHYBeacTE7XsnZMTGFlFflj84XuNXCeenm29g6qAWWQkAOJVi@vger.kernel.org X-Gm-Message-State: AOJu0Yw4fEANQaCRuUQHejQr0XoCmP87gJCSBadb6T7UGe6lBEWWaGia cZ+aDOxID9C02pw0UQTkJRCRyEAoEuocrfU0pHXjQTFxdAIFDSIiDxGyPdP7nNX8uAZeG+CMA8U t X-Google-Smtp-Source: AGHT+IECBAzYuRQVXIyCTTslKd+vLutFaNZSxSBOn57mqzHVwdBqdN8y/7a2eGosLZiJmio+ZCbp4w== X-Received: by 2002:a05:651c:198c:b0:2f3:e2f0:5140 with SMTP id 38308e7fff4ca-2f61e0266e7mr3980151fa.2.1724999702650; Thu, 29 Aug 2024 23:35:02 -0700 (PDT) Received: from localhost.localdomain (88-112-131-206.elisa-laajakaista.fi. [88.112.131.206]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2f614f00860sm4879441fa.45.2024.08.29.23.35.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Aug 2024 23:35:02 -0700 (PDT) From: Vladimir Zapolskiy To: Sakari Ailus , Mauro Carvalho Chehab Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-media@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v4 0/6] media: i2c: og01a1b: Add OF support to OmniVision OG01A1B Date: Fri, 30 Aug 2024 09:34:53 +0300 Message-ID: <20240830063459.3088895-1-vladimir.zapolskiy@linaro.org> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The change adds basic support of OmniVision OG01A1B image sensor on OF platforms, and a few follow-up changes from the series extend runtime power management support. Previous version of the change is found as a shorter patchset: v3 https://lore.kernel.org/all/20240823102731.2240857-1-vladimir.zapolskiy@linaro.org/ v2 https://lore.kernel.org/all/20240813102035.1763559-1-vladimir.zapolskiy@linaro.org/ v1 https://lore.kernel.org/all/20240620124745.1265011-1-vladimir.zapolskiy@linaro.org/ Changes from v3 to v4: * inserted correct delays in power up/down sequences, thanks to Sakari. Changes from v2 to v3 (no code changes): * fix of a typo in a commit message found by Kieran, * updated a commit subject per ask from Rob Herring, * added a review tag given by Conor Dooley. Changes from v1 to v2: * updated device tree documentation according to review comments received from Krzysztof and Sakari, * extended runtime power management support, added functional support of optional XSHUTDOWN GPIO, XVCLK supply clock and 3 supply regulators. Vladimir Zapolskiy (6): media: dt-bindings: Add OmniVision OG01A1B image sensor media: i2c: og01a1b: Add OF support to the image sensor driver media: i2c: og01a1b: Add stubs of runtime power management functions media: i2c: og01a1b: Add support of xvclk supply clock in power management media: i2c: og01a1b: Add management of optional reset GPIO media: i2c: og01a1b: Add management of optional sensor supply lines .../bindings/media/i2c/ovti,og01a1b.yaml | 107 ++++++++++ MAINTAINERS | 1 + drivers/media/i2c/og01a1b.c | 187 ++++++++++++++++-- 3 files changed, 281 insertions(+), 14 deletions(-) create mode 100644 Documentation/devicetree/bindings/media/i2c/ovti,og01a1b.yaml