summaryrefslogtreecommitdiff
path: root/include/uapi/linux/it6625.h
diff options
context:
space:
mode:
authorHermes Wu <Hermes.wu@ite.com.tw>2026-08-11 18:31:26 +0800
committerHans Verkuil <hverkuil+cisco@kernel.org>2026-09-09 14:03:38 +0200
commit142e5f00bd57ffdc03fcec2699f95f0cc6b7e9c6 (patch)
tree81ebc050fd56262ae6ae5e025ce84eb921df6e2a /include/uapi/linux/it6625.h
parentcee2619b011a784e6eadd6f818321901365c7e3a (diff)
downloadlinux-next-142e5f00bd57ffdc03fcec2699f95f0cc6b7e9c6.tar.gz
linux-next-142e5f00bd57ffdc03fcec2699f95f0cc6b7e9c6.zip
media: i2c: add driver for ITE IT6625/IT6626
Add a V4L2 subdevice driver for the ITE IT6625/IT6626 HDMI-to-MIPI CSI-2 bridge chips. IT6625 accepts an HDMI 2.0 input and IT6626 an HDMI 2.1 input, converting it to a D-PHY (or C/D-PHY on IT6626) MIPI CSI-2 output. The bridge is configured over I2C, exposes an HDMI CEC adapter, and supports EDID read/write, DV timings detection/configuration, and HPD control via the standard V4L2 subdevice pad and video ops. Signed-off-by: Hermes Wu <Hermes.wu@ite.com.tw> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org> [hverkuil: change it6625_v4l2_sd_ctrl_update to a void function]
Diffstat (limited to 'include/uapi/linux/it6625.h')
-rw-r--r--include/uapi/linux/it6625.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/uapi/linux/it6625.h b/include/uapi/linux/it6625.h
new file mode 100644
index 000000000000..a895658aaf6a
--- /dev/null
+++ b/include/uapi/linux/it6625.h
@@ -0,0 +1,25 @@
+/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
+/*
+ * Controls header for IT6625/IT6626 driver
+ */
+
+#ifndef _UAPI_LINUX_IT6625_H
+#define _UAPI_LINUX_IT6625_H
+
+#include <linux/v4l2-controls.h>
+
+/*
+ * Currently detected HDMI audio sampling rate, in Hz. Read-only.
+ * 0 means the rate is unavailable/unknown: no audio is currently
+ * present on the input, the hardware reported a sample-rate id this
+ * driver doesn't recognize, or the status read itself failed. Never a
+ * literal 0 Hz sample rate.
+ */
+#define V4L2_CID_IT6625_AUDIO_SAMPLING_RATE (V4L2_CID_USER_IT6625_BASE + 0)
+
+/*
+ * Whether HDMI audio is currently present on the input. Read-only.
+ */
+#define V4L2_CID_IT6625_AUDIO_PRESENT (V4L2_CID_USER_IT6625_BASE + 1)
+
+#endif /* _UAPI_LINUX_IT6625_H */