必威体育Betway必威体育官网
当前位置:首页 > IT技术

bring UP 需要做的工作

时间:2019-07-27 14:41:05来源:IT技术作者:seo实验室小编阅读:78次「手机版」
 

bring up

bring up 需要做的工作

1、kernelspace

sensor driver : 驱动和设备树

2、userspace

camera 对应的chromatix library 和sensor  library

准备工作

1、模组原理图

2、sensor spec

3、sensor resolution

代码准备

1、kernel

1、设备树

kernel/arch/arm/boot/***-camera-sensor-cdp.dtsi

qcom,camera@20 {

compatible =“qcom,imx111”;

reg = <0x20>;

qcom,slave-id =<0x20 0x0 0x111>; //(slave id – 0x20, chip id address – 0x0, chip id –0x111)

qcom,csiphy-sd-index= <0>; //(Use CSIPHY subdev 0)

qcom,csid-sd-index= <0>; //(Use CSID subdev 0)

qcom,flash-src-index= <&led_flash0>; //(Use LED flash subdev 0)

qcom,mount-angle =<90>; //(mount angle 90 degree)

qcom,sensor-name =“imx111”;// (sensor name)

cam_vdig-supply =<&pm8941_l3>;// (Use L3 for VDIG)

cam_vana-supply =<&pm8941_l23>;// (Use L23 for VANA)

cam_vio-supply =<&pm8941_lvs2>; //(Use LVS3 for VIO)

cam_vaf-supply =<&pm8941_l17>; //(Use L17 for VAF)

qcom,cam-vreg-name= “cam_vdig”, “cam_vio”, “cam_vana”, “cam_vaf”;

qcom,cam-vreg-type= <0 1 0 0>; //(0 – LDO, 1 – LVS)

qcom,cam-vreg-min-voltage= <1225000 0 2850000 2850000>;// (min voltage)

qcom,cam-vreg-max-voltage= <1225000 0 2850000 2850000>;// (max voltage)

qcom,cam-vreg-op-mode= <105000 0 80000 100000>; //(Optimum mode)

qcom,gpio-no-mux =<0>;

gpiOS =<&msmgpio 15 0>, <&msmgpio 90 0>;

qcom,gpio-reset =<1>; //(Use gpio pin 90 for reset)

qcom,gpio-req-tbl-num= <0 1>; //(0 – pin 15, 1 – pin 90)

qcom,gpio-req-tbl-flags= <1 0>; //(0 – output gpio, 1 – input gpio)

qcom,gpio-req-tbl-label= “CAMIF_MCLK”, “CAM_RESET1”; //(gpio name)

qcom,gpio-set-tbl-num= <1 1>;// (1 – pin 90)

qcom,gpio-set-tbl-flags= <0 2>; //(0 – GPIOF_OUT_INIT_LOW, 2 -

GPIOF_OUT_INIT_HIGH)

qcom,gpio-set-tbl-delay= <1000 4000>; //(delay in micro sec)

qcom,csi-lane-assign= <0x4320>; //(Use 0x4320 for CSI lane assign)

qcom,csi-lane-mask= <0x1F>; //(Use 0x1F for lane mask)

qcom,sensor-position= <0>; //(0 – back camera, 1 – front camera)

qcom,sensor-mode =<1>;// (1 – 2D, 3 – 3D)

qcom,cci-master =<0>; //(0 – Master 0, 1 – Master 1)

status = “ok”;

};

2、驱动

kernel/drivers/media/platform/msm/camera_v2/sensor/imx111.c

vendor(chromatix library)

1、vendor/qcom/proprietary/mm-camera/mm-camera2/media-controller/modules/sensors/chromatix/0301/libchromatix/chromatix_imx111/

使用高通的chromatix  tunning 软件生成头文件。

2、vendor/qcom/proprietary/mm-camera/mm-camera2/media-controller/modules/sensors/sensor_libs/imx111/

需要配置以下信息:

1)init, start, stop寄存器配置

2)coarse_int_time_addr 、global_gain_addr 寄存器地址

3)x_output 、y_output、line_length_pclk 、frame_length_lines 寄存器地址

4)full/half resolution 寄存器配置

5)配置每个every resolution 对应的Chromatix library

6)配置每个resolution 对应的sensor_out_info

structsensor_lib_out_info_t sensor_out_info[] = {

{

.x_output = 0x0668, 

.y_output = 0x04D0, 

.line_length_pclk = 0xDD0, 

.frame_length_lines = 0x04E6, 

.vt_pixel_clk = 134400000,

.op_pixel_clk = 134400000,

.max_fps = 30,

.min_fps = 7.5,

.binning_factor = 1,

.mode = SENSOR_DEFAULT_MODE,

},

调试

1、测量camera的Power supply: AVDD, DOVDD, DVDD, AFVDD是否正确

2、测量MCLK波形是否正常

3、测量camera的PWDN/RESET是否正常

相关阅读

从TrackPopupMenu(创建快捷菜单的函数)看菜单消息路由机

先摘段《vc++深入详解》孙鑫的话以上讲的是点击主菜单时的消息路由过程,但鼠标右键快捷菜单的消息路由有点区别。TrackPopupMenu函

填坑——jquery中slideUp(),slideDown()的方向问题

写的项目里有一个动画效果:自上而下消失,自上而下显示,这个效果和jquery中的slideUp(),slideDown()函数相同,但是方向相反,然而函数中并

面试者讲述Groupon在中国的疯狂招募 与腾讯建合资公司

1月17日凌晨消息,一个应聘Groupon中国团队职位的面试者披露了Groupon进入中国的最近进展:Groupon将和腾讯建立合资公司,他同时披露了

nohup

在linux命令行中,如果某条命令需要执行的时间非常长,则可把该条命令放在后台执行,这样就可以继续在该命令行窗口干其他事情,同时不影

RDLC namespace cannot be upgraded 解决方案

Visual Stuidio 中开发 RDLC 时 报错  namespace “XX” cannot be upgraded  错误原因: nuget  包 引入错了 ,之前引入的是 M

分享到:

栏目导航

推荐阅读

热门阅读