[PATCH v3 1/7] dt-bindings: media: Add macros for video interface devices

Kieran Bingham kieran.bingham at ideasonboard.com
Sun Jun 28 03:22:16 PDT 2026


Add a new dt-bindings/media/video-interface-devices.h header that
defines macros corresponding to the orientation enumeration types from
media/video-interface-devices.yaml.

This allows avoiding hardcoded constants in device tree sources.

Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
Acked-by: Conor Dooley <conor.dooley at microchip.com>
Acked-by: Sakari Ailus <sakari.ailus at linux.intel.com>
Reviewed-by: Vladimir Zapolskiy <vladimir.zapolskiy at linaro.org>
Reviewed-by: Frank Li <Frank.Li at nxp.com>
Signed-off-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
---
 include/dt-bindings/media/video-interface-devices.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/include/dt-bindings/media/video-interface-devices.h b/include/dt-bindings/media/video-interface-devices.h
new file mode 100644
index 000000000000..d2340b457292
--- /dev/null
+++ b/include/dt-bindings/media/video-interface-devices.h
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */
+/*
+ * Copyright (C) 2026 Kieran Bingham <kieran.bingham at ideasonboard.com>
+ */
+
+#ifndef __DT_BINDINGS_MEDIA_VIDEO_INTERFACE_DEVICES_H__
+#define __DT_BINDINGS_MEDIA_VIDEO_INTERFACE_DEVICES_H__
+
+#define MEDIA_ORIENTATION_FRONT		0
+#define MEDIA_ORIENTATION_BACK		1
+#define MEDIA_ORIENTATION_EXTERNAL	2
+
+#endif /* __DT_BINDINGS_MEDIA_VIDEO_INTERFACE_DEVICES_H__ */

-- 
2.52.0




More information about the linux-arm-kernel mailing list