Skip to content

Commit

Permalink
media: dt-bindings: media: Add macros for video interface bus types
Browse files Browse the repository at this point in the history
Add a new dt-bindings/media/video-interfaces.h header that defines
macros corresponding to the bus types from media/video-interfaces.yaml.
This allows avoiding hardcoded constants in device tree sources.

Signed-off-by: Laurent Pinchart <[email protected]>
Reviewed-by: Rob Herring <[email protected]>
Reviewed-by: Jacopo Mondi <[email protected]>
Reviewed-by: Paul Elder <[email protected]>
Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
pinchartl authored and mchehab committed Nov 25, 2022
1 parent e208ad0 commit f7eeb00
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions include/dt-bindings/media/video-interfaces.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */
/*
* Copyright (C) 2022 Laurent Pinchart <[email protected]>
*/

#ifndef __DT_BINDINGS_MEDIA_VIDEO_INTERFACES_H__
#define __DT_BINDINGS_MEDIA_VIDEO_INTERFACES_H__

#define MEDIA_BUS_TYPE_CSI2_CPHY 1
#define MEDIA_BUS_TYPE_CSI1 2
#define MEDIA_BUS_TYPE_CCP2 3
#define MEDIA_BUS_TYPE_CSI2_DPHY 4
#define MEDIA_BUS_TYPE_PARALLEL 5
#define MEDIA_BUS_TYPE_BT656 6

#endif /* __DT_BINDINGS_MEDIA_VIDEO_INTERFACES_H__ */

0 comments on commit f7eeb00

Please sign in to comment.