1.21. V4L2 fwnode kAPI¶
-
struct
v4l2_fwnode_bus_mipi_csi2
¶ MIPI CSI-2 bus data structure
Definition
struct v4l2_fwnode_bus_mipi_csi2 {
unsigned int flags;
unsigned char data_lanes;
unsigned char clock_lane;
unsigned short num_data_lanes;
bool lane_polarities;
};
Members
flags
- media bus (V4L2_MBUS_*) flags
data_lanes
- 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
- polarity of the lanes. The order is the same of the physical lanes.
-
struct
v4l2_fwnode_bus_parallel
¶ parallel data bus data structure
Definition
struct v4l2_fwnode_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_fwnode_bus_mipi_csi1
¶ CSI-1/CCP2 data bus structure
Definition
struct v4l2_fwnode_bus_mipi_csi1 {
bool clock_inv;
bool strobe;
bool lane_polarity;
unsigned char data_lane;
unsigned char clock_lane;
};
Members
clock_inv
- polarity of clock/strobe signal false - not inverted, true - inverted
strobe
- false - data/clock, true - data/strobe
lane_polarity
- the polarities of the clock (index 0) and data lanes index (1)
data_lane
- the number of the data lane
clock_lane
- the number of the clock lane
-
struct
v4l2_fwnode_endpoint
¶ the endpoint data structure
Definition
struct v4l2_fwnode_endpoint {
struct fwnode_endpoint base;
enum v4l2_mbus_type bus_type;
union bus;
u64 * link_frequencies;
unsigned int nr_of_link_frequencies;
};
Members
base
- fwnode endpoint of the v4l2_fwnode
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
-
struct
v4l2_fwnode_link
¶ a link between two endpoints
Definition
struct v4l2_fwnode_link {
struct fwnode_handle * local_node;
unsigned int local_port;
struct fwnode_handle * 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