在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了,
未完待续!!!