查看: 117|回复: 4

[求助] IMX291 LVDS接口, 图像输出蓝屏咋解决???

[复制链接]
发表于 2019-11-19 14:23:03 | 显示全部楼层 |阅读模式
本帖最后由 天最 于 2019-11-19 14:29 编辑

如题,imx291接mipi csi2是可以看到图像的,现在想改成lvds接口,改了sensor驱动,lvds属性设置,还有vi
dev 属性设置,,,结果居然是蓝屏。。。不知还有哪里没改??求大神指导下

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
 楼主| 发表于 2019-11-21 11:47:54 | 显示全部楼层
这个lvds的驱动配置有问题吗????
void imx291_linear_1080p30_init_lvds(VI_PIPE ViPipe)
{
        imx291_write_register (ViPipe, 0x3000,0x01);
        imx291_write_register (ViPipe, 0x3004,0x10);
        imx291_write_register (ViPipe, 0x3005,0x01); //
        imx291_write_register (ViPipe, 0x3006,0x00);
        imx291_write_register (ViPipe, 0x3007,0x03);//
        imx291_write_register (ViPipe, 0x3008,0xA0);
        imx291_write_register (ViPipe, 0x3009,0x02); //
        imx291_write_register (ViPipe, 0x300A,0xf0);
        imx291_write_register (ViPipe, 0x300B,0x00);
        imx291_write_register (ViPipe, 0x300C,0x00);
        imx291_write_register (ViPipe, 0x300D,0x00);
        imx291_write_register (ViPipe, 0x300E,0x01);
        imx291_write_register (ViPipe, 0x300F,0x00);
        imx291_write_register (ViPipe, 0x3010,0x21);
        imx291_write_register (ViPipe, 0x3011,0x00);
        imx291_write_register (ViPipe, 0x3012,0x64); //
        imx291_write_register (ViPipe, 0x3013,0x00); //
        imx291_write_register (ViPipe, 0x3014,0x00);
        imx291_write_register (ViPipe, 0x3015,0x00);
        imx291_write_register (ViPipe, 0x3016,0x09);
        imx291_write_register (ViPipe, 0x3017,0x00);
        imx291_write_register (ViPipe, 0x3018,0x65); //
        imx291_write_register (ViPipe, 0x3019,0x04); //
        imx291_write_register (ViPipe, 0x301A,0x00); //
        imx291_write_register (ViPipe, 0x301B,0x00);
        imx291_write_register (ViPipe, 0x301C,0x30); //
        imx291_write_register (ViPipe, 0x301D,0x11);//
        imx291_write_register (ViPipe, 0x301E,0xB2);
        imx291_write_register (ViPipe, 0x301F,0x01);
        imx291_write_register (ViPipe, 0x3020,0x00);
        imx291_write_register (ViPipe, 0x3021,0x00);
        imx291_write_register (ViPipe, 0x3022,0x00);
        imx291_write_register (ViPipe, 0x303A,0x0c);//0x0c  0x10
        imx291_write_register (ViPipe, 0x303B,0x00);
        imx291_write_register (ViPipe, 0x303C,0x00);
        imx291_write_register (ViPipe, 0x303D,0x00);
        imx291_write_register (ViPipe, 0x303E,0x49);
        imx291_write_register (ViPipe, 0x303F,0x04);
        imx291_write_register (ViPipe, 0x3040,0x00);
        imx291_write_register (ViPipe, 0x3041,0x00);
        imx291_write_register (ViPipe, 0x3042,0x9C);
        imx291_write_register (ViPipe, 0x3043,0x07);
        imx291_write_register (ViPipe, 0x3046,0xe1); //
        imx291_write_register (ViPipe, 0x3047,0x01);
        imx291_write_register (ViPipe, 0x3048,0x00);
        imx291_write_register (ViPipe, 0x3049,0x08);
        imx291_write_register (ViPipe, 0x304A,0x00);
        imx291_write_register (ViPipe, 0x305C,0x18);//
        imx291_write_register (ViPipe, 0x305D,0x00);//
        imx291_write_register (ViPipe, 0x305E,0x20); //
        imx291_write_register (ViPipe, 0x305F,0x01);//
        imx291_write_register (ViPipe, 0x3070,0x02);
        imx291_write_register (ViPipe, 0x3071,0x11);
        imx291_write_register (ViPipe, 0x30A6,0x20);
        imx291_write_register (ViPipe, 0x30A7,0x00);
        imx291_write_register (ViPipe, 0x30A8,0x20);
        imx291_write_register (ViPipe, 0x30A9,0x00);
        imx291_write_register (ViPipe, 0x30AA,0x20);
        imx291_write_register (ViPipe, 0x30AB,0x00);
        imx291_write_register (ViPipe, 0x30AC,0x20);
       
        imx291_write_register (ViPipe, 0x3119,0x9E);
        imx291_write_register (ViPipe, 0x311E,0x08);
        imx291_write_register (ViPipe, 0x3128,0x05);
        imx291_write_register (ViPipe, 0x3129,0x00);//
        imx291_write_register (ViPipe, 0x313D,0x83);
        imx291_write_register (ViPipe, 0x315E,0x1A);//
        imx291_write_register (ViPipe, 0x3164,0x1A); //
        imx291_write_register (ViPipe, 0x317C,0x00); //
        imx291_write_register (ViPipe, 0x317D,0x00);
        imx291_write_register (ViPipe, 0x31EC,0x0e);//
       
        imx291_write_register (ViPipe, 0x32B8,0x50);
        imx291_write_register (ViPipe, 0x32B9,0x10);
        imx291_write_register (ViPipe, 0x32BA,0x00);
        imx291_write_register (ViPipe, 0x32BB,0x04);
        imx291_write_register (ViPipe, 0x32C8,0x50);
        imx291_write_register (ViPipe, 0x32C9,0x10);
        imx291_write_register (ViPipe, 0x32CA,0x00);
        imx291_write_register (ViPipe, 0x32CB,0x04);
       
        imx291_write_register (ViPipe, 0x332C,0xD3);
        imx291_write_register (ViPipe, 0x332D,0x10);
        imx291_write_register (ViPipe, 0x332E,0x0D);
        imx291_write_register (ViPipe, 0x3358,0x06);
        imx291_write_register (ViPipe, 0x3359,0xE1);
        imx291_write_register (ViPipe, 0x335A,0x11);
        imx291_write_register (ViPipe, 0x3360,0x1E);
        imx291_write_register (ViPipe, 0x3361,0x61);
        imx291_write_register (ViPipe, 0x3362,0x10);
        imx291_write_register (ViPipe, 0x33B0,0x50);
        imx291_write_register (ViPipe, 0x33B1,0x80);
        imx291_write_register (ViPipe, 0x33B2,0x1a);
        imx291_write_register (ViPipe, 0x33B3,0x04);
#if 0       
        imx291_write_register (ViPipe, 0x3405,0x20);
        imx291_write_register (ViPipe, 0x3406,0x00);
        imx291_write_register (ViPipe, 0x3407,0x03);
        imx291_write_register (ViPipe, 0x3414,0x0A);
        imx291_write_register (ViPipe, 0x3418,0x49);
        imx291_write_register (ViPipe, 0x3419,0x04);
        imx291_write_register (ViPipe, 0x3441,0x0C);
        imx291_write_register (ViPipe, 0x3442,0x0C);
        imx291_write_register (ViPipe, 0x3443,0x03);
        imx291_write_register (ViPipe, 0x3444,0x20);
        imx291_write_register (ViPipe, 0x3445,0x25);
        imx291_write_register (ViPipe, 0x3446,0x47);
        imx291_write_register (ViPipe, 0x3447,0x00);
        imx291_write_register (ViPipe, 0x3448,0x1F);
        imx291_write_register (ViPipe, 0x3449,0x00);
        imx291_write_register (ViPipe, 0x344A,0x17);
        imx291_write_register (ViPipe, 0x344B,0x00);
        imx291_write_register (ViPipe, 0x344C,0x0F);
        imx291_write_register (ViPipe, 0x344D,0x00);
        imx291_write_register (ViPipe, 0x344E,0x17);
        imx291_write_register (ViPipe, 0x344F,0x00);
        imx291_write_register (ViPipe, 0x3450,0x47);
        imx291_write_register (ViPipe, 0x3451,0x00);
        imx291_write_register (ViPipe, 0x3452,0x0F);
        imx291_write_register (ViPipe, 0x3453,0x00);
        imx291_write_register (ViPipe, 0x3454,0x0F);
        imx291_write_register (ViPipe, 0x3455,0x00);
        imx291_write_register (ViPipe, 0x3472,0x9C);
        imx291_write_register (ViPipe, 0x3473,0x07);
#endif       
        imx291_write_register (ViPipe, 0x3480,0x49); //

    imx291_default_reg_init(ViPipe);

        imx291_write_register (ViPipe, 0x3000, 0x00); /* standby */
    delay_ms(20);
    imx291_write_register (ViPipe, 0x3002, 0x00); /* master mode start */
    imx291_write_register (ViPipe, 0x304b, 0x0a); /* XVSOUTSEL XHSOUTSEL */

    printf("===IMX291 1080P 30fps 12bit LINE lvds Init OK!===\n");
}
 楼主| 发表于 2019-11-22 11:45:21 | 显示全部楼层
原来是sensor板子lvds信号没接出来
发表于 2019-11-22 14:50:00 | 显示全部楼层
天最 发表于 2019-11-22 11:45
原来是sensor板子lvds信号没接出来

那你怎么一顿操作的那?
发表于 2019-11-25 13:40:55 | 显示全部楼层
蓝屏应该是CPU与SENSOR之间数据传输问题。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

© 2008-2017 当前位置 易百纳技术社区论坛 返回 易百纳技术社区 ( 苏ICP备14036084 )   Powered by Discuz! X3.1
快速回复 返回顶部 返回列表