Loading...
首页问答    

3516av200 配IMX335 WDR不成功,线性模式正常

10 EBC
火星人
火星人  发布于 2021-09-01 09:25:58 163

WDRMode=DOL
cat /proc/umap/hi_mipi

Module: [MIPI], Build Time: [May 13 2017, 16:53:17]

——-Combo DEV ATTR——————————————————————————————————————————————————-
Devno WorkMode DataType WDRMode LinkId ImgX ImgY ImgW ImgH SyncMode DataEndian SyncCodeEndian
0 MIPI RAW10 DOL 0 0 204 2592 1520 N/A N/A N/A

——-LINK INFO———————————————————————————
LinkIdx LaneCount LaneId PhyData AlignedData ValidLane
0 4 0, 1, 2, 3 0x0 0x0 Invalid
——-mipi detect info——————————————————————————
Devno VC width height
0 0 0 0
0 1 0 0
0 2 0 0
0 3 0 0

WDRMode=NONE

Module: [MIPI], Build Time: [May 13 2017, 16:53:17]
——-Combo DEV ATTR——————————————————————————————————————————————————-
Devno WorkMode DataType WDRMode LinkId ImgX ImgY ImgW ImgH SyncMode DataEndian SyncCodeEndian
0 MIPI RAW10 None 0 0 204 2592 1520 N/A N/A N/A
——-LINK INFO———————————————————————————
LinkIdx LaneCount LaneId PhyData AlignedData ValidLane
0 4 0, 1, 2, 3 0x433d2219 0xc1931622 0, 1, 2, 3
——-mipi detect info——————————————————————————
Devno VC width height
0 0 2592 1520
0 1 2592 1520
0 2 0 0
0 3 0 0

我来回答
回答可得5积分
已结束
3个回答
发布于 2021-09-06 14:54:26

把配置参数发一下

0
一个爱徒步的~IT民工
发布于 2021-09-07 09:55:28

驱动的配置如下:参考的是3516EV200 SDK里面IMX335的内容。

void IMX335_wdr_4M25_10bit_init(ISP_DEV IspDev)
{
printf(“———-IMX335_wdr_4M25_10bit_init begin———-\n”);
imx335_write_register(IspDev, 0x3004, 0x04); //standby
imx335_write_register(IspDev, 0x3004, 0x00);

     imx335_write_register(IspDev, 0x3000, 0x01); //standby
 imx335_write_register(IspDev, 0x3001, 0x00);
     imx335_write_register(IspDev, 0x3002, 0x01);
 imx335_write_register(IspDev, 0x3003, 0x00);
     imx335_write_register(IspDev, 0x3004, 0x04);
     imx335_write_register(IspDev, 0x3004, 0x00);

     imx335_write_register(IspDev, 0x300C, 0x5B);    //bcwait_time
     imx335_write_register(IspDev, 0x300D, 0x40);    //cpwait_time

 imx335_write_register(IspDev, 0x3018, 0x06);    //winmode

if 1

 imx335_write_register(IspDev, 0x302c, 0x00);    //htrimming_start  
 imx335_write_register(IspDev, 0x302d, 0x00);
 imx335_write_register(IspDev, 0x302e, 0x20);    //hnum 
 imx335_write_register(IspDev, 0x302f, 0x0a); 

endif

 imx335_write_register(IspDev, 0x3030, 0x94);     //VMAX
     imx335_write_register(IspDev, 0x3031, 0x15);
     imx335_write_register(IspDev, 0x3032, 0x00);
     imx335_write_register(IspDev, 0x3034, 0x26);    //hmax 
     imx335_write_register(IspDev, 0x3035, 0x02);

if 1

 imx335_write_register(IspDev, 0x3048, 0x01);    //设置WDR
     imx335_write_register(IspDev, 0x3049, 0x01);    //设置WDR
     imx335_write_register(IspDev, 0x304A, 0x04);    //
     imx335_write_register(IspDev, 0x304B, 0x03);
     imx335_write_register(IspDev, 0x304C, 0x14);    //opb_size_v

 imx335_write_register(IspDev, 0x304E, 0x00);    //hreverse
     imx335_write_register(IspDev, 0x304F, 0x00);    //vreverse
     imx335_write_register(IspDev, 0x3050, 0x00);    //ad12bit
     imx335_write_register(IspDev, 0x3056, 0xBC);     //y_out_size 
     imx335_write_register(IspDev, 0x3057, 0x06);

endif

 imx335_write_register(IspDev, 0x3058, 0x28);     //SHR0_LOW
     imx335_write_register(IspDev, 0x3059, 0x1F);
     imx335_write_register(IspDev, 0x305a, 0x00);

if 1

 imx335_write_register(IspDev, 0x305C, 0x12); //SHR1_LOW
     imx335_write_register(IspDev, 0x305D, 0x00);
     imx335_write_register(IspDev, 0x305E, 0x00);
     imx335_write_register(IspDev, 0x3060, 0x00);
     imx335_write_register(IspDev, 0x3061, 0x00);
     imx335_write_register(IspDev, 0x3062, 0x00);
 imx335_write_register(IspDev, 0x3068, 0x1a); //RHS1_LOW
     imx335_write_register(IspDev, 0x3069, 0x00);
     imx335_write_register(IspDev, 0x306A, 0x00);
     imx335_write_register(IspDev, 0x306C, 0x00);
     imx335_write_register(IspDev, 0x306D, 0x00);
     imx335_write_register(IspDev, 0x306E, 0x00);
 imx335_write_register(IspDev, 0x3072, 0x28);    //area2_width_1
 imx335_write_register(IspDev, 0x3073, 0x00);

endif

 imx335_write_register(IspDev, 0x3074, 0x00);    //area3_st_adr_1    
 imx335_write_register(IspDev, 0x3075, 0x00);
 imx335_write_register(IspDev, 0x3076, 0xe0);    //area3_width_1    
 imx335_write_register(IspDev, 0x3077, 0x0b);

imx335_write_register(IspDev, 0x3078, 0x01);
    imx335_write_register(IspDev, 0x3079, 0x02);
    imx335_write_register(IspDev, 0x307A, 0xFF);
    imx335_write_register(IspDev, 0x307B, 0x02);
    imx335_write_register(IspDev, 0x307C, 0x00);
    imx335_write_register(IspDev, 0x307D, 0x00);
    imx335_write_register(IspDev, 0x307E, 0x00);
    imx335_write_register(IspDev, 0x307F, 0x00);
    imx335_write_register(IspDev, 0x3080, 0x01);
    imx335_write_register(IspDev, 0x3081, 0x02);
    imx335_write_register(IspDev, 0x3082, 0xFF);
    imx335_write_register(IspDev, 0x3083, 0x02);
    imx335_write_register(IspDev, 0x3084, 0x00);
    imx335_write_register(IspDev, 0x3085, 0x00);
    imx335_write_register(IspDev, 0x3086, 0x00);
    imx335_write_register(IspDev, 0x3087, 0x00);
    imx335_write_register(IspDev, 0x30A4, 0x33);
    imx335_write_register(IspDev, 0x30A8, 0x10);
    imx335_write_register(IspDev, 0x30A9, 0x04);
    imx335_write_register(IspDev, 0x30AC, 0x00);
    imx335_write_register(IspDev, 0x30AD, 0x00);
    imx335_write_register(IspDev, 0x30B0, 0x10);
    imx335_write_register(IspDev, 0x30B1, 0x08);
    imx335_write_register(IspDev, 0x30B4, 0x00);
    imx335_write_register(IspDev, 0x30B5, 0x00);
    imx335_write_register(IspDev, 0x30B6, 0x00);
    imx335_write_register(IspDev, 0x30B7, 0x00);


 imx335_write_register(IspDev, 0x30c6, 0x00);    //black_offset_adrs    
 imx335_write_register(IspDev, 0x30ce, 0xff);    //unrd_line_max    
 imx335_write_register(IspDev, 0x30d8, 0x64);    //unread_ed_adr    
 imx335_write_register(IspDev, 0x30d9, 0x0e);

 imx335_write_register(IspDev, 0x30E8, 0x14);     //GAIN_LONG_LOW
     imx335_write_register(IspDev, 0x30E9, 0x00);       
 imx335_write_register(IspDev, 0x314c, 0x80);    //incksel1
 imx335_write_register(IspDev, 0x314d, 0x00);

imx335_write_register(IspDev, 0x3112, 0x08);
    imx335_write_register(IspDev, 0x3113, 0x00);
    imx335_write_register(IspDev, 0x3116, 0x08);
    imx335_write_register(IspDev, 0x3117, 0x00);
    imx335_write_register(IspDev, 0x314C, 0x80);
    imx335_write_register(IspDev, 0x314D, 0x00);

 imx335_write_register(IspDev, 0x315a, 0x06);    //incksel2    
 imx335_write_register(IspDev, 0x3168, 0x68);    //incksel3    
 imx335_write_register(IspDev, 0x316a, 0x7e);    //incksel4    
 imx335_write_register(IspDev, 0x3199, 0x00);    //mode setting
 imx335_write_register(IspDev, 0x319d, 0x01);    //number of output 12bit
 imx335_write_register(IspDev, 0x319e, 0x02);    //sys_mode
 imx335_write_register(IspDev, 0x319f, 0x01);
 imx335_write_register(IspDev, 0x31a0, 0x2a);    //xvs xhs master mode
 imx335_write_register(IspDev, 0x31d7, 0x00);    //xvs xhs master mode         
 imx335_write_register(IspDev, 0x3200, 0x01);
     imx335_write_register(IspDev, 0x3288, 0x21);    //spec suggest
     imx335_write_register(IspDev, 0x328A, 0x02);    //spec suggest
 imx335_write_register(IspDev, 0x3300, 0x00);    //tcycle
 imx335_write_register(IspDev, 0x3302, 0x32);    //black level
     imx335_write_register(IspDev, 0x3414, 0x05);    //spec suggest
     imx335_write_register(IspDev, 0x3416, 0x18);    //spec suggest
     imx335_write_register(IspDev, 0x341C, 0xff);    //adbit1 12bit
     imx335_write_register(IspDev, 0x341D, 0x01);
     imx335_write_register(IspDev, 0x3648, 0x01);    //spec suggest
     imx335_write_register(IspDev, 0x364A, 0x04);    //spec suggest
     imx335_write_register(IspDev, 0x364C, 0x04);    //spec suggest
     imx335_write_register(IspDev, 0x3678, 0x01);    //spec suggest
     imx335_write_register(IspDev, 0x367C, 0x31);    //spec suggest
     imx335_write_register(IspDev, 0x367E, 0x31);    //spec suggest
     imx335_write_register(IspDev, 0x3706, 0x10);    //spec suggest
     imx335_write_register(IspDev, 0x3708, 0x03);    //spec suggest

     imx335_write_register(IspDev, 0x3714, 0x02);    //spec suggest
     imx335_write_register(IspDev, 0x3715, 0x02);    //spec suggest
     imx335_write_register(IspDev, 0x3716, 0x01);    //spec suggest
     imx335_write_register(IspDev, 0x3717, 0x03);    //spec suggest
     imx335_write_register(IspDev, 0x371C, 0x3D);    //spec suggest
     imx335_write_register(IspDev, 0x371D, 0x3F);    //spec suggest

     imx335_write_register(IspDev, 0x372C, 0x00);    //spec suggest
     imx335_write_register(IspDev, 0x372D, 0x00);    //spec suggest
     imx335_write_register(IspDev, 0x372E, 0x46);    //spec suggest
     imx335_write_register(IspDev, 0x372F, 0x00);    //spec suggest
     imx335_write_register(IspDev, 0x3730, 0x89);    //spec suggest
     imx335_write_register(IspDev, 0x3731, 0x00);    //spec suggest
     imx335_write_register(IspDev, 0x3732, 0x08);    //spec suggest
     imx335_write_register(IspDev, 0x3733, 0x01);    //spec suggest
     imx335_write_register(IspDev, 0x3734, 0xFE);    //spec suggest
     imx335_write_register(IspDev, 0x3735, 0x05);    //spec suggest

     imx335_write_register(IspDev, 0x3740, 0x02);    //spec suggest

     imx335_write_register(IspDev, 0x375D, 0x00);    //spec suggest
     imx335_write_register(IspDev, 0x375E, 0x00);    //spec suggest
     imx335_write_register(IspDev, 0x375F, 0x11);    //spec suggest
     imx335_write_register(IspDev, 0x3760, 0x01);    //spec suggest

     imx335_write_register(IspDev, 0x3768, 0x1B);    //spec suggest
     imx335_write_register(IspDev, 0x3769, 0x1B);    //spec suggest
     imx335_write_register(IspDev, 0x376A, 0x1B);    //spec suggest
     imx335_write_register(IspDev, 0x376B, 0x1B);    //spec suggest
     imx335_write_register(IspDev, 0x376C, 0x1A);    //spec suggest
     imx335_write_register(IspDev, 0x376D, 0x17);    //spec suggest
     imx335_write_register(IspDev, 0x376E, 0x0F);    //spec suggest

     imx335_write_register(IspDev, 0x3776, 0x00);    //spec suggest
     imx335_write_register(IspDev, 0x3777, 0x00);    //spec suggest
     imx335_write_register(IspDev, 0x3778, 0x46);    //spec suggest
     imx335_write_register(IspDev, 0x3779, 0x00);    //spec suggest
     imx335_write_register(IspDev, 0x377A, 0x89);    //spec suggest
     imx335_write_register(IspDev, 0x377B, 0x00);    //spec suggest
     imx335_write_register(IspDev, 0x377C, 0x08);    //spec suggest
     imx335_write_register(IspDev, 0x377D, 0x01);    //spec suggest
     imx335_write_register(IspDev, 0x377E, 0x23);    //spec suggest
     imx335_write_register(IspDev, 0x377F, 0x02);    //spec suggest
     imx335_write_register(IspDev, 0x3780, 0xD9);    //spec suggest
     imx335_write_register(IspDev, 0x3781, 0x03);    //spec suggest
     imx335_write_register(IspDev, 0x3782, 0xF5);    //spec suggest
     imx335_write_register(IspDev, 0x3783, 0x06);    //spec suggest
     imx335_write_register(IspDev, 0x3784, 0xA5);    //spec suggest
     imx335_write_register(IspDev, 0x3788, 0x0F);    //spec suggest
     imx335_write_register(IspDev, 0x378A, 0xD9);    //spec suggest
     imx335_write_register(IspDev, 0x378B, 0x03);    //spec suggest
     imx335_write_register(IspDev, 0x378C, 0xEB);    //spec suggest
     imx335_write_register(IspDev, 0x378D, 0x05);    //spec suggest
     imx335_write_register(IspDev, 0x378E, 0x87);    //spec suggest
     imx335_write_register(IspDev, 0x378F, 0x06);    //spec suggest
     imx335_write_register(IspDev, 0x3790, 0xF5);    //spec suggest
     imx335_write_register(IspDev, 0x3792, 0x43);    //spec suggest
     imx335_write_register(IspDev, 0x3794, 0x7A);    //spec suggest
     imx335_write_register(IspDev, 0x3796, 0xA1);    //spec suggest
 imx335_write_register(IspDev, 0x37b0, 0x36);    //spec suggest
 imx335_write_register(IspDev, 0x3a01, 0x03);    //spec suggest

if 1

 imx335_write_register(IspDev, 0x3A18, 0x67);    //tclkpost
     imx335_write_register(IspDev, 0x3A19, 0x00);
     imx335_write_register(IspDev, 0x3A1A, 0x27);    //tclkprepare
     imx335_write_register(IspDev, 0x3A1B, 0x00);
     imx335_write_register(IspDev, 0x3A1C, 0x27);    //tclktrail
     imx335_write_register(IspDev, 0x3A1D, 0x00);
     imx335_write_register(IspDev, 0x3A1E, 0xb7);    //tclkzero
     imx335_write_register(IspDev, 0x3A1F, 0x00);
     imx335_write_register(IspDev, 0x3A20, 0x2F);    //thsprepare
     imx335_write_register(IspDev, 0x3A21, 0x00);
     imx335_write_register(IspDev, 0x3A22, 0x4f);    //thszero
     imx335_write_register(IspDev, 0x3A23, 0x00);
     imx335_write_register(IspDev, 0x3A24, 0x2F);    //thstrail
     imx335_write_register(IspDev, 0x3A25, 0x00);
     imx335_write_register(IspDev, 0x3A26, 0x47);    //thexit
     imx335_write_register(IspDev, 0x3A27, 0x00);
     imx335_write_register(IspDev, 0x3A28, 0x27);    //tlpx
     imx335_write_register(IspDev, 0x3A29, 0x00);        

endif

//imx335_default_reg_init(IspDev);
 imx335_write_register(IspDev, 0x3000, 0x00); //Standby Cancel
 imx335_write_register(IspDev, 0x3002, 0x00);
printf("-------Sony IMX335_init_4M_2592x1520_10bit_wdr25 Initial OK!-------\n");

}

0
发布于 2021-09-17 11:38:23

mipi都有数据进来了 序列没问题

0
+ 添加网盘链接/附件
或将文件直接拖到这里
悬赏:
EBC
文件格式必须为doc,docx,xls,xlsx,pdf,ppt,pptx,txt,zip,rar,tar,7z,gz
网盘
* 网盘链接:
* 提取码:
悬赏:
EBC
易百纳技术社区
确定要删除此文章、专栏、评论吗?
确定
取消
易百纳技术社区