Hi,
In the attached board-cm-fx6.c we saw no imx6q_add_v4l2_capture (present in board-mx6q_arm2.c)
so we suppose the capture is not set up.
In the board-mx6q_arm2.c, mx6_csi0_io_init is also defined, in which the pads are configured and the camera is reset.
Such mx6_csi0_io_init is used in the camera_data structure, that is associated with the i2c camera sensor ov5640 as in the following.
static struct i2c_board_info mxc_i2c0_board_info[] __initdata = {
{
I2C_BOARD_INFO("cs42888", 0x48),
.platform_data = (void *)&cs42888_data,
}, {
I2C_BOARD_INFO("ov5640", 0x3c),
.platform_data = (void *)&camera_data,
}, {
I2C_BOARD_INFO("adv7180", 0x21),
.platform_data = (void *)&tvin_data,
},
};
In our case, the camera, that is custom, receives commands through SPI but we intend to communicate with it at user level (spidev).
So, basically, could mx6_csi0_io_init be called inside the main init function of the board (in order to initialize its pin)?
In camera_data there are some sensible information, as mclk, mclk_source and csi device index.
Thanks for any further inputs, we are kind of lost.
F