soc_camera on imx53

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

soc_camera on imx53

1,104 次查看
JoshuaParrish
Contributor I

Hello I was hoping to get some help launching a soc_camera driver in linux. 

The camera is an ov7725, using the ov772x driver under the soc_camera drivers in the kernel menu config. 

I've insmoded the driver onto the ubuntu start board rootfs. The problem is the platform data needed to launch the camera successfully.

Has anyone had luck using a soc camera driver with the imx53 using i2c and the csi interface. 

 

If so what platform data did you give the driver in the board file?

 

static void camera_pwdn(int pwdn)

{

 gpio_request(DISP0_RESET, "csi0-pwdn"); gpio_set_value(DISP0_RESET, pwdn); gpio_free(DISP0_RESET);

}
static struct mxc_camera_platform_data camera_data =

{

 .analog_regulator = "DA9052_LDO7",

 .core_regulator = "DA9052_LDO7",

 .mclk = 24000000, .csi = 0,

.pwdn = camera_pwdn,

};


static struct i2c_board_info mxc_i2c1_board_info[] __initdata =

{

{ .type = "sgtl5000-i2c", .addr = 0x0a, },

{ .type = "sii9022", .addr = 0x39, .irq = IOMUX_TO_IRQ_V3(DISP0_DET_INT), .platform_data = &sii9022_hdmi_data, },

{ .type = "ov772x", .addr = 0x21, .platform_data = (void *)&camera_data, },

};

标记 (1)
0 项奖励
3 回复数

749 次查看
JoshuaParrish
Contributor I

The drivers can be found in the in the downloads from FSL. I liked building in the ubuntu vm. The build tools were already configured so it made everything easier. 

0 项奖励

749 次查看
AaronLinsdau
Contributor I

Are these drivers in the QSB install or are they in a download from FSL?

0 项奖励

749 次查看
LilyZhang
Contributor I
soc camera framework was not used in FSL default BSP. If you want to use new camera sensor, you can refer to drivers/media/video/mxc/capture/ov5642.c for quick enablement.
0 项奖励