Skip to content

Commit 4a09126

Browse files
Michael RieschHans Verkuil
authored andcommitted
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>
1 parent 1c5e4cf commit 4a09126

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

include/dt-bindings/media/video-interfaces.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,8 @@
2020
#define MEDIA_BUS_CSI2_CPHY_LINE_ORDER_CAB 4
2121
#define MEDIA_BUS_CSI2_CPHY_LINE_ORDER_CBA 5
2222

23+
#define MEDIA_PCLK_SAMPLE_FALLING_EDGE 0
24+
#define MEDIA_PCLK_SAMPLE_RISING_EDGE 1
25+
#define MEDIA_PCLK_SAMPLE_DUAL_EDGE 2
26+
2327
#endif /* __DT_BINDINGS_MEDIA_VIDEO_INTERFACES_H__ */

0 commit comments

Comments
 (0)