Camera Driver analysis in the platform of MTK
Preliminary Information
MTK 平台 CAMERA 驱动浅析
Camera Driver analysis in the platform of MTK
Document Number:
Preliminary (Released) Information
Revision:0.1
Release Date:
Ghong Confidential
Revision 0.1-Feb.14 2012
- 1 -
2012 Ghong inc.

Camera Driver analysis in the platform of MTK
Preliminary Information
谢娜的资料Revision History
Revision
Date (dd/mm/yyyy)
Author
Comments
0.1
14/02/2012
Guoqing Zhang
Draft Version
金铭个人资料
Ghong Confidential
Revision 0.1-Feb.14 2012
- 2 -
我的儿子是奇葩演员表
2012 Ghong inc.

Camera Driver analysis in the platform of MTK
Preliminary Information
Contents
一、
手机 CAMERA 的物理结构: ........................................................................................
- 4 -
二、
CAMERA 的成像原理: .................................................................................................
- 4 -
三、
CAMERA 常见的数据输出格式:..................................................................................
- 5 -
四、
阅读 CAMERA 的规格书(以 TRULY 模组 OV5647_RAW 为例): ...........................
- 6 -
五、
颖儿快乐大本营
CAMERA 的硬件原理图及引脚 .....................................................................................
- 7 -
1
电源部分:....................................................................................................................
- 7 -
2
SENSOR INPUT 部分: ...................................................................................................
- 7 -
3 SENSOR OUTPUT 部分: ..............................................................................................右眼皮跳是什么意思.
- 7 -
4 I2C 部分:SCL,I2C 时钟信号线和 SDA,I2C 数据信号线。 ..................................
- 7 -
六、
MTK 平台 CAMERA 驱动架构: ..................................................................................
- 8 -
七、
MTK 平台 CAMERA 相关代码文件(以下代码均为 MTK6575 平台): ....................
- 9 -
1
CAMERASENSOR 驱动相关文件 ....................................................................................
- 9 -
2
SENSOR ID 和一些枚举类型的定义 .............................................................................
- 9 -
3
SENSOR 供电 ..................................................................................................................
- 9 -
4
KERNEL SPACE 的 SENSORLIST,IMGSENSOR 模块注册 ...............................................
- 9 -
5
USER SPACE 的 SENSORLIST,向用户空间提供支持的 SENSORLIST .........................
- 10 -
6
SENSOR 效果调整的接口 ............................................................................................
- 10 -
八、
CAMERA 模块驱动、设备与总线结构: .....................................................................
- 11 -
A)
驱动的注册: ..................................................................................................................
- 11 -
B)
设备的注册: ..................................................................................................................
- 11 -
C)
总线的匹配: ..................................................................................................................
- 12 -
九、
CAMERA 驱动工作流程: ............................................................................................
- 13 -
类似星辰变的小说十、
CAMERA 驱动添加、调试流程:.................................................................................
- 17 -
Ghong Confidential
Revision 0.1-Feb.14 2012
- 3 -
2012 Ghong inc.

Camera Driver analysis in the platform of MTK
Preliminary Information
一、 手机 Camera 的物理结构:
FPC: Flexible Printed Circuit 可挠性印刷电路板
Sensor:图象传感器
IR:红外滤波片
Holder:基座
Lens:镜头
二、 Camera 的成像原理:
景物通过镜头(LENS)生成的光学图像投射到图像传感器(Sensor)表面上,然后转为模
拟的电信号,经过 A/D(模数转换)转换后变为数字图像信号,再送到数字信号处理芯片
DSP)中加工处理,再通过 IO 接口传输到 CPU 中处理,通过 LCD 就可以看到图像了。
Ghong Confidential
Revision 0.1-Feb.14 2012
- 4 -
2012 Ghong inc.