mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Robert Ijtsma via B4 Relay <devnull+robertijtsma.gmail.com@kernel.org>
To: Sakari Ailus <sakari.ailus@linux.intel.com>,
	 Mauro Carvalho Chehab <mchehab@kernel.org>,
	Rob Herring <robh@kernel.org>,
	 Krzysztof Kozlowski <krzk+dt@kernel.org>,
	 Conor Dooley <conor+dt@kernel.org>,
	Jacopo Mondi <jacopo@jmondi.org>,
	 Todor Tomov <todor.too@gmail.com>,
	Daniel Scally <djrscally@gmail.com>,
	 Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Antoine Pichot <antoine.pichot@gmail.com>,
	 Dave Stevenson <dave.stevenson@raspberrypi.com>,
	 linux-media@vger.kernel.org, devicetree@vger.kernel.org,
	 linux-kernel@vger.kernel.org,
	Robert Ijtsma <robertijtsma@gmail.com>,
	 Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Subject: [PATCH v3 0/4] media: i2c: ov7251: software reset settle, autosuspend, and non-continuous clock
Date: Mon, 30 Nov 2026 21:10:32 +0100	[thread overview]
Message-ID: <20261130-ov7251-strobe-ncont-v3-0-cc706dd0e716@gmail.com> (raw)

This series adds four small fixes and Qualcomm SC8180X enablement
changes for the OmniVision OV7251 sensor binding and driver, rebased on
top of Antoine Pichot's v3 OV7251 series [1]:

1. Issue software reset (0x0103 = 0x01) explicitly in
   ov7251_set_power_on() and wait 5-10 ms before writing
   ov7251_global_init_setting[] so the sensor settles before the common
   register block is programmed.
2. Use pm_runtime_put_autosuspend() in ov7251_s_ctrl() and
   ov7251_s_stream() so the 1000 ms autosuspend window configured in
   probe is actually honored across stream restarts (preserving the
   common register state introduced in [1]).
3. Allow clock-noncontinuous on the CSI-2 endpoint in the ovti,ov7251
   Devicetree binding.
4. Support V4L2_MBUS_CSI2_NONCONTINUOUS_CLOCK by setting
   CLOCK_LANE_GATE (BIT(5)) in OV7251_MIPI_CTRL00 (0x4800) during
   power-on when requested by the CSI-2 endpoint.

[1] https://lore.kernel.org/linux-media/20261113024059.1087031-1-antoine.pichot@gmail.com/

Signed-off-by: Robert Ijtsma <robertijtsma@gmail.com>
---
Changes in v3:
- Add patch 3/4 documenting clock-noncontinuous on the ovti,ov7251
  CSI-2 endpoint binding (Sakari Ailus).
- Collect Antoine Pichot's Tested-by tag on patch 2/4.
- Link to v2: https://patch.msgid.link/20261128-ov7251-strobe-ncont-v2-0-9428bbb6347e@gmail.com

Based-on: 20261113024059.1087031-1-antoine.pichot@gmail.com

Changes in v2:
- Rebase onto Antoine Pichot's v3 OV7251 series and drop patch 4/4
  (V4L2_CID_FLASH_STROBE_OE) in favor of Antoine's strobe control patch
  (Antoine Pichot).
- Move the software reset (0x0103 = 0x01) out of
  ov7251_global_init_setting[] and wait 5-10 ms before writing the
  global init table rather than after it (Antoine Pichot).
- Drop redundant pm_runtime_mark_last_busy() calls before
  pm_runtime_put_autosuspend() and point Fixes tag at commit
  207f4162f1c9 (Antoine Pichot).
- Program OV7251_MIPI_CTRL00 non-continuous clock gating once per
  power-on alongside the global init registers.
- Link to v1: https://patch.msgid.link/20261127-ov7251-strobe-ncont-v1-0-cefa8c6c020b@gmail.com

To: Sakari Ailus <sakari.ailus@linux.intel.com>
To: Mauro Carvalho Chehab <mchehab@kernel.org>
To: Jacopo Mondi <jacopo@jmondi.org>
To: Todor Tomov <todor.too@gmail.com>
To: Daniel Scally <djrscally@gmail.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Rob Herring <robh@kernel.org>
To: Krzysztof Kozlowski <krzk+dt@kernel.org>
To: Conor Dooley <conor+dt@kernel.org>
Cc: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Cc: linux-media@vger.kernel.org
Cc: devicetree@vger.kernel.org

---
Robert Ijtsma (4):
      media: i2c: ov7251: wait for software reset before global init
      media: i2c: ov7251: use pm_runtime_put_autosuspend()
      media: dt-bindings: ovti,ov7251: allow clock-noncontinuous
      media: i2c: ov7251: support non-continuous MIPI clock mode

 .../devicetree/bindings/media/i2c/ovti,ov7251.yaml |  2 +
 drivers/media/i2c/ov7251.c                         | 45 ++++++++++++++++++----
 2 files changed, 39 insertions(+), 8 deletions(-)
---
base-commit: 299860c8390892ac175e8d3e13aa5b086c735dd1
change-id: 20261127-ov7251-strobe-ncont-188241b553be

Best regards,
--  
Robert Ijtsma <robertijtsma@gmail.com>



             reply	other threads:[~2026-11-30 20:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 20:10 Robert Ijtsma via B4 Relay [this message]
2026-11-30 20:10 ` [PATCH v3 1/4] media: i2c: ov7251: wait for software reset before global init Robert Ijtsma via B4 Relay
2026-11-30 20:10 ` [PATCH v3 2/4] media: i2c: ov7251: use pm_runtime_put_autosuspend() Robert Ijtsma via B4 Relay
2026-11-30 20:10 ` [PATCH v3 3/4] media: dt-bindings: ovti,ov7251: allow clock-noncontinuous Robert Ijtsma via B4 Relay
2026-11-30 20:10 ` [PATCH v3 4/4] media: i2c: ov7251: support non-continuous MIPI clock mode Robert Ijtsma via B4 Relay

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261130-ov7251-strobe-ncont-v3-0-cc706dd0e716@gmail.com \
    --to=devnull+robertijtsma.gmail.com@kernel.org \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=antoine.pichot@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=dave.stevenson@raspberrypi.com \
    --cc=devicetree@vger.kernel.org \
    --cc=djrscally@gmail.com \
    --cc=jacopo@jmondi.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab+samsung@kernel.org \
    --cc=mchehab@kernel.org \
    --cc=robertijtsma@gmail.com \
    --cc=robh@kernel.org \
    --cc=sakari.ailus@linux.intel.com \
    --cc=todor.too@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®