在rk芯片上调试rgb显示驱动

12
四月
2021

在rk芯片上调试rgb显示驱动
1.看芯片手册
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
2.看原理图
在这里插入图片描述
3.分析rk显示框架
可在网上找到一篇博客详见介绍screen相关内容,
博客地址:https://blog.csdn.net/u014770862/article/details/65442066?fps=1&locationNum=6

根据以上内容写出了dts内容:
1.单独用一个dtsi文件存放
/ {
disp_timings: display-timings {
native-mode = <&timing0>;
compatible = “rockchip,display-timings”;
timing0: timing0 {
screen-type = <SCREEN_RGB>;
out-face = <OUT_P666>;
clock-frequency = <25000000>;
screen-width = <800>;
screen-hight = <480>;
hactive = <800>;
vactive = <480>;
hsync-len = <4>;
hback-porch = <8>;
hfront-porch = <8>;
vsync-len = <4>;
vback-porch = <8>;
vfront-porch = <8>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
/swap-rb = <0>;/
swap-rb = <0>;
swap-rg = <0>;
swap-gb = <0>;
};
};
};
2.在dts中修改内容:
&rk_screen {
status = “okay”;
};
&mipi_dsi {
status = “disabled”;
};
&vop {
status = “okay”;
power_ctr: power_ctr {
rockchip,debug = <0>;
};
};
现在参数都设置ok了,
未完待续!!!

TAG

网友评论

共有访客发表了评论
请登录后再发布评论,和谐社会,请文明发言,谢谢合作! 立即登录 注册会员