STRUCT V4L2_MBUS_CONFIG_MIPI_CSI2(9)
πΈ struct v4l2_mbus_config_mipi_csi2 β MIPI CSI-2 data bus configuration πΈ
okay bestie, so this is a page straight out of the Kernel API Manual, and it's genuinely just describing one lil struct that tells the kernel how a MIPI CSI-2 data bus is wired up π. no cap, it's short, it's sweet, and it ate.
π NAME π
struct v4l2_mbus_config_mipi_csi2 β literally the MIPI CSI-2 data bus configuration, that's the whole vibe π¦
β¨ SYNOPSIS β¨
struct v4l2_mbus_config_mipi_csi2 {
unsigned int flags;
unsigned char data_lanes[V4L2_MBUS_CSI2_MAX_DATA_LANES];
unsigned char clock_lane;
unsigned char num_data_lanes;
bool lane_polarities[1 + V4L2_MBUS_CSI2_MAX_DATA_LANES];
enum v4l2_mbus_csi2_cphy_line_orders_type
line_orders[V4L2_MBUS_CSI2_MAX_DATA_LANES];
};
like, look at her. iconic. copy it exactly, don't you dare retype it from memory π
π Members π
flagsβ the media bus (V4L2_MBUS_*) flags, your classic little flag field πdata_lanesβ an array of physical data lane indexes. yes bestie, physical, it's giving hardware-level realness πclock_laneβ the physical lane index of the clock lane βnum_data_lanesβ how many data lanes there are. the count. the number. periodt πlane_polaritiesβ the polarity of the lanes, and the order here is the same as the physical lanes π«Άline_ordersβ the line order of the data lanes, and again the order is the same as the physical lanes πΈ
ok so tiny thing but it matters: for bothlane_polaritiesandline_orders, the order matches the physical lanes. don't shuffle them, that's the whole point π
π¦ SEE ALSO π¦
- the kernel file
./include/media/v4l2-mediabus.hβ go read it, it's like the source material fr fr enum v4l2_mbus_csi2_cphy_line_orders_type(9)struct v4l2_mbus_config_parallel(9)struct v4l2_mbus_config_mipi_csi1(9)enum v4l2_mbus_type(9)struct v4l2_mbus_config(9)v4l2_fill_pix_format(9)v4l2_fill_mbus_format(9)v4l2_fill_pix_format_mplane(9)v4l2_fill_mbus_format_mplane(9)
like the whole friend group showed up to the function name π love that for them.
and that's the page bestie, no notes π§ this one lives down in ./include/media, and it's dated October 2026, so likeβ¦ future energy honestly π₯ stay slay, stay configured properly, and remember: lane order matters π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms