1.21. V4L2 Open Firmware kAPI

struct v4l2_of_bus_mipi_csi2

MIPI CSI-2 bus data structure

Definition

struct v4l2_of_bus_mipi_csi2 {
  unsigned int flags;
  unsigned char data_lanes[4];
  unsigned char clock_lane;
  unsigned short num_data_lanes;
  bool lane_polarities[5];
};

Members

flags
media bus (V4L2_MBUS_*) flags
data_lanes[4]
an array of physical data lane indexes
clock_lane
physical lane index of the clock lane
num_data_lanes
number of data lanes
lane_polarities[5]
polarity of the lanes. The order is the same of the physical lanes.
struct v4l2_of_bus_parallel

parallel data bus data structure

Definition

struct v4l2_of_bus_parallel {
  unsigned int flags;
  unsigned char bus_width;
  unsigned char data_shift;
};

Members

flags
media bus (V4L2_MBUS_*) flags
bus_width
bus width in bits
data_shift
data shift in bits
struct v4l2_of_endpoint

the endpoint data structure

Definition

struct v4l2_of_endpoint {
  struct of_endpoint base;
  enum v4l2_mbus_type bus_type;
  union bus;
  u64 * link_frequencies;
  unsigned int nr_of_link_frequencies;
};

Members

base
struct of_endpoint containing port, id, and local of_node
bus_type
bus type
bus
bus configuration data structure
link_frequencies
array of supported link frequencies
nr_of_link_frequencies
number of elements in link_frequenccies array

a link between two endpoints

Definition

struct v4l2_of_link {
  struct device_node * local_node;
  unsigned int local_port;
  struct device_node * remote_node;
  unsigned int remote_port;
};

Members

local_node
pointer to device_node of this endpoint
local_port
identifier of the port this endpoint belongs to
remote_node
pointer to device_node of the remote endpoint
remote_port
identifier of the port the remote endpoint belongs to