mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

Each data lane on a CSI-2 C-PHY bus uses three phase encoding and is constructed from three physical wires. The wires are referred to as A, B and C and their default order is ABC. However to ease hardware design the specification allows for the wires to be switched in any order. Add a vendor neutral property to describe the line order used. The property name 'line-orders', the possible values it can be assigned and there names are taken from the MIPI Discovery and Configuration (DisCo) Specification for Imaging. Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
23 lines
766 B
C
23 lines
766 B
C
/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */
|
|
/*
|
|
* Copyright (C) 2022 Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
*/
|
|
|
|
#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
|
|
|
|
#define MEDIA_BUS_CSI2_CPHY_LINE_ORDER_ABC 0
|
|
#define MEDIA_BUS_CSI2_CPHY_LINE_ORDER_ACB 1
|
|
#define MEDIA_BUS_CSI2_CPHY_LINE_ORDER_BAC 2
|
|
#define MEDIA_BUS_CSI2_CPHY_LINE_ORDER_BCA 3
|
|
#define MEDIA_BUS_CSI2_CPHY_LINE_ORDER_CAB 4
|
|
#define MEDIA_BUS_CSI2_CPHY_LINE_ORDER_CBA 5
|
|
|
|
#endif /* __DT_BINDINGS_MEDIA_VIDEO_INTERFACES_H__ */
|