media: dt-bindings: video-interfaces: add defines for sampling modes

Add defines for the pixel clock sampling modes (rising edge, falling edge,
dual edge) for parallel video interfaces.
This avoids hardcoded constants in device tree sources.

Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Michael Riesch <michael.riesch@wolfvision.net>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Michael Riesch <michael.riesch@collabora.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
Michael Riesch
2025-11-14 16:20:13 +01:00
committed by Hans Verkuil
parent 1c5e4cf1d5
commit 4a09126a33

View File

@@ -20,4 +20,8 @@
#define MEDIA_BUS_CSI2_CPHY_LINE_ORDER_CAB 4
#define MEDIA_BUS_CSI2_CPHY_LINE_ORDER_CBA 5
#define MEDIA_PCLK_SAMPLE_FALLING_EDGE 0
#define MEDIA_PCLK_SAMPLE_RISING_EDGE 1
#define MEDIA_PCLK_SAMPLE_DUAL_EDGE 2
#endif /* __DT_BINDINGS_MEDIA_VIDEO_INTERFACES_H__ */