Add definitions to match the ones in video-interfaces.h for the C-PHY line orders defined in MIPI Discovery and Configuration (DisCo) Specification for Imaging. This provides a way smiler to what is done for media bus types which also have named defines in video-interfaces.h that benefit from having human readable defines in code and not just in device tree sources. Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@xxxxxxxxxxxx> --- include/media/v4l2-fwnode.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/include/media/v4l2-fwnode.h b/include/media/v4l2-fwnode.h index f7c57c776589..fda5d740ede5 100644 --- a/include/media/v4l2-fwnode.h +++ b/include/media/v4l2-fwnode.h @@ -180,6 +180,24 @@ enum v4l2_fwnode_bus_type { NR_OF_V4L2_FWNODE_BUS_TYPE }; +/** + * enum v4l2_fwnode_csi2_cphy_line_orders_type - CSI-2 C-PHY line order + * @V4L2_FWNODE_CSI2_CPHY_LINE_ORDER_ABC: C-PHY line order ABC + * @V4L2_FWNODE_CSI2_CPHY_LINE_ORDER_ACB: C-PHY line order ACB + * @V4L2_FWNODE_CSI2_CPHY_LINE_ORDER_BAC: C-PHY line order BAC + * @V4L2_FWNODE_CSI2_CPHY_LINE_ORDER_BCA: C-PHY line order BCA + * @V4L2_FWNODE_CSI2_CPHY_LINE_ORDER_CAB: C-PHY line order CAB + * @V4L2_FWNODE_CSI2_CPHY_LINE_ORDER_CBA: C-PHY line order CBA + */ +enum v4l2_fwnode_csi2_cphy_line_orders_type { + V4L2_FWNODE_CSI2_CPHY_LINE_ORDER_ABC = 0, + V4L2_FWNODE_CSI2_CPHY_LINE_ORDER_ACB, + V4L2_FWNODE_CSI2_CPHY_LINE_ORDER_BAC, + V4L2_FWNODE_CSI2_CPHY_LINE_ORDER_BCA, + V4L2_FWNODE_CSI2_CPHY_LINE_ORDER_CAB, + V4L2_FWNODE_CSI2_CPHY_LINE_ORDER_CBA +}; + /** * v4l2_fwnode_endpoint_parse() - parse all fwnode node properties * @fwnode: pointer to the endpoint's fwnode handle -- 2.47.1