Toybrick

标题: mipi相机的mipi 频率计算方式 [打印本页]

作者: for1993    时间: 2024-1-5 10:04
标题: mipi相机的mipi 频率计算方式
我看到imx415驱动代码里,support_mode结构体是这样定义的:static const struct imx415_mode supported_modes[] = {

                .bus_fmt = MEDIA_BUS_FMT_SGBRG10_1X10,
                .width = 3840,
                .height = 2160,
                .max_fps = {
                        .numerator = 10000,
                        .denominator = 300000,
                },
                .exp_def = 0x08ca - 0x08,
                .hts_def = 0x044c * IMX415_4LANES * 2,
                .vts_def = 0x08ca,
                .global_reg_list = imx415_global_10bit_3864x2192_regs,
                .reg_list = imx415_linear_10bit_3864x2192_891M_regs,
                .hdr_mode = NO_HDR,
                .mipi_freq_idx = 1,
                .bpp = 10,
                .vc[PAD0] = V4L2_MBUS_CSI2_CHANNEL_0,

}
而mipi频率有这4个:
static const s64 link_freq_items[] = {
        MIPI_FREQ_297M,
        MIPI_FREQ_446M,
        MIPI_FREQ_743M,
        MIPI_FREQ_891M,
};

根据mipi_freq_index,应该是446M的频率。但是按照我的理解,mipi计算是这样的,mipi freq = hts*vts*fps*bpp/lan_num/2。那结合上面的,算出来是742500000,并不是446M,请问我哪里理解的不对啊,感谢感谢!








欢迎光临 Toybrick (https://t.rock-chips.com/) Powered by Discuz! X3.3