3,459
社区成员




我们有个项目使用QCS8250的SOC, 现在在测试MIPI的眼图,测试不过,想从驱动上调试看看能不能优化,比如调节驱动能力,这个好像要调MIPI PHY的寄存器,请帮忙看下怎么调呢?我们想通过adb在线调,调优后再放到代码里去编译出系统,adb在线调是不是得关掉BP里的XBL,跑kernel的LCM驱动呢?BP代码我们没有。
msm\dsi\dsi_phy_hw_v4_0.c //目录中有多个名为dsi_phy_hw_xx.c,请加log确认走哪个文件
dsi_phy_hw_v4_0_enable()
...
if (phy->version == DSI_PHY_VERSION_4_1) {
vreg_ctrl_0 = less_than_1500_mhz ? 0x53 : 0x52;
glbl_rescode_top_ctrl = less_than_1500_mhz ? 0x3d : 0x00;
glbl_rescode_bot_ctrl = less_than_1500_mhz ? 0x39 : 0x3c;
glbl_str_swi_cal_sel_ctrl = 0x00;//低于1.5G将改值改为0x03。是否低于1.5G可以看less_than_1500_mhz的值。
glbl_hstx_str_ctrl_0 = 0x88;//低于1.5G改这个值,最大为0xff。
...
For DPHY with data rate beyond 1.5 Gbps, pls modify the value of glbl_rescode_top_ctrl and glbl_rescode_bot_ctrl, [5:0] are the valid bits, it means (10 0000) is the weakest and (01 1111) is the strongest.
For DPHY with data rate below and equal to 1.5 Gbps, pls set glbl_str_swi_cal_sel_ctrl to 0x03 to enable the strength override value, then modify the value glbl_hstx_str_ctrl_0, 0x00 is the weakest and 0xff is the strongest.
请参考以上调节mipi Drive strength,不支持adb在线调试。
BP侧的UEFI显示不用禁,测试前先熄屏再亮屏后开始测试就可以。
在眼图测试中,软件调节的能力是有限的,其根本还是硬件问题。
可先将驱动力调至最大,然后对比调试结果前后的变化,如果仍然fail,要确认数据是否有改善,如果有改善,证明软件调节生效,但不足以解决这个问题,要在硬件上做努力了。