gkeith 发表于 2017-12-9 16:49:02

请教:RK3399 Mipi initial Code应如何编写成功驱动

新手入门,但翻遍论坛并未找到答案,因此冒昧的请教各位RK3399 Mipi调屏中A.   timing如教程所述,应设置于rockchip(~proj/firefly-rk3399/kernel/arch/arm64/boot/dts/rockchip)?orpanel(~proj/firefly-rk3399/kernel/drivers/gpu/drm/panel)? B.   又mipiinitial code中,除timing外,仍有许多指令如下,又应如何编写?编写至何文件,使屏能正常驱动? 0xB9,0xFF,0x83,0x94;0xBA,0x63,0x03,0x68,0x5F,0xB2,0xc0; 0xB2,0x00,0x80,0x64,0x06,0x08,0x2F;0xBD,0x02;0xD3,0x01,0x04,0x00,0x01;0xBD,0x00;0xD4,0x02;0x35,0x00;0x53,0x24;delay 10;0x55,0x00;delay 10;0x11,0x00;delay 10;0xCE,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40;delay 10;0x29,0x00;Delay 1200x11;delay 200;0x05,0x29;delay 50;

zhansb 发表于 2017-12-9 17:31:55

kernel/arch/arm64/boot/dts/rockchip/rk3399-firefly-mipi.dts里面有panel-init-sequence
sequence格式参考文档:Documentation/devicetree/bindings/display/panel/simple-panel.txt

gkeith 发表于 2017-12-11 10:45:56

zhansb 发表于 2017-12-9 17:31
kernel/arch/arm64/boot/dts/rockchip/rk3399-firefly-mipi.dts里面有panel-init-sequence
sequence格式 ...

感谢~我就过去找找~

gkeith 发表于 2017-12-11 10:46:36

zhansb 发表于 2017-12-9 17:31
kernel/arch/arm64/boot/dts/rockchip/rk3399-firefly-mipi.dts里面有panel-init-sequence
sequence格式 ...

感谢~我就过去找找~

jdm2005 发表于 2017-12-11 17:26:48

我也正迷茫,楼主搞定了吗?

gkeith 发表于 2017-12-25 14:47:27

jdm2005 发表于 2017-12-11 17:26
我也正迷茫,楼主搞定了吗?


前阵子才搞定编译,现在又陷入mipi reset和enable电压无法驱动的问题中,因此都尚未实测成功

但initial的编写方式,透过wiki中的文件所述

如指令为 0X39 0X8A 0X56(delay 20)

则firefly 3399中的编码应为 39 14 02 8A 56 ,其中14为delay时间20,02为指令数目,即共二个指令8A 56
页: [1]
查看完整版本: 请教:RK3399 Mipi initial Code应如何编写成功驱动