summaryrefslogtreecommitdiff
path: root/include/media
diff options
context:
space:
mode:
authorFernando Rimoli <fernandorimoli11@gmail.com>2026-09-02 16:23:21 +0200
committerSakari Ailus <sakari.ailus@linux.intel.com>2026-09-11 23:21:47 +0300
commit8e3def7bf4102c5b32b597b2f6ea1419174fc480 (patch)
tree16540f94dfa2e3376750a39393f68c3631c5fffa /include/media
parentb883954d842f57f6f349bbbdf3d4347db3a416dc (diff)
downloadlinux-next-8e3def7bf4102c5b32b597b2f6ea1419174fc480.tar.gz
linux-next-8e3def7bf4102c5b32b597b2f6ea1419174fc480.zip
media: ipu-bridge: Request non-continuous clock for ov5693 on IPU6
The ov5693 (INT33BE / OVTI5693) needs its MIPI clock lane gated while idle for the IPU6 CSI-2 receiver to lock onto the link, which the sensor driver does when the endpoint requests a non-continuous clock. The same sensor works with a free-running clock on the IPU3, so request it only for the IPU6 variants where it has been confirmed on hardware: Tiger Lake, Alder Lake-P and Alder Lake-N. Signed-off-by: Fernando Rimoli <fernandorimoli11@gmail.com> Tested-by: Jakob Berg Jespersen <dev@berg.pm> # Surface Pro 7+, IPU6 Tiger Lake Tested-by: Fil Dunsky <filipp.dunsky@gmail.com> # Surface Pro 8, IPU6 Tiger Lake (8086:9a19) Tested-by: Lucas Lis <lucaseze.lis@gmail.com> # Surface Pro 7+, IPU6 Tiger Lake (0x9a19) Tested-by: Kengo Oki <dev.kengo.fugu0141@gmail.com> # Surface Go 4, IPU6 Alder Lake-N 8086:462e Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/ipu-bridge.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/media/ipu-bridge.h b/include/media/ipu-bridge.h
index c562db794ca8..760f0767ce58 100644
--- a/include/media/ipu-bridge.h
+++ b/include/media/ipu-bridge.h
@@ -17,6 +17,10 @@
#define IPU_SENSOR_ROTATION_NORMAL 0
#define IPU_SENSOR_ROTATION_INVERTED 1
+/* Flags for struct ipu_sensor_config */
+/* The sensor's CSI-2 transmitter needs a non-continuous clock */
+#define IPU_BR_FL_CSI2_CLK_NONCONTINUOUS BIT(0)
+
/*
* Sensor config specific to one or more IPUs, identified by their PCI product
* IDs, with flags describing what the sensor needs there. Entries for one HID
@@ -80,6 +84,7 @@ enum ipu_bridge_ep_props {
IPU_BRIDGE_EP_DATA_LANES,
IPU_BRIDGE_EP_REMOTE_EP,
IPU_BRIDGE_EP_LINK_FREQUENCIES,
+ IPU_BRIDGE_EP_CLOCK_NONCONTINUOUS,
IPU_BRIDGE_EP_NUM_OF,
IPU_BRIDGE_EP_NUM_ENTRIES
};