Rk3399-Linux-麒麟-EDP屏幕调试
EDP 屏幕主要是对设备树进行配置,并设置连接的显示的vop
主要参考瑞星微的文档,在sdk的doc目录下可以找到。Rockchip_DRM_Panel_Porting_Guide_V1.6_20190228.pdf
需要注意的点,enable-gpio和power-supply 电源控制,
如果是直接供电就不需要power-supply
屏幕配置
panel: panel {
compatible = “simple-panel”;
backlight = <&backlight>;
status = “okay”;
//power-supply = <&vcc_lcd>;
enable-gpios = <&gpio1 RK_PB5 GPIO_ACTIVE_HIGH>;
bus-format = <MEDIA_BUS_FMT_RGB666_1X18>;
bpc = <6>;
prepare-delay-ms = <210>;
enable-delay-ms = <210>;
display-timings {
native-mode = <&timing0>;
timing0: timing0 {
clock-frequency = <72000000>;
hactive = <1366>;
vactive = <768>;
hfront-porch = <14>;
hsync-len = <56>;
hback-porch = <64>;
vfront-porch = <1>;
vsync-len = <3>;
vback-porch = <28>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
};
ports {
panel_in: endpoint {
remote-endpoint = <&edp_out>;
};
};
};
其中这两个项需要看EPD屏幕的参数来确定是6位或8位的,
display-timings 中的值也需要根据屏幕参数确定,这个都要看屏幕给的datasheet确定。
EDP配置
&edp {
status = “okay”;
force-hpd;
//enable-delay-ms = <200>;
ports {
port@1 {
reg = <1>;
#address-cells = <1>;
#size-cells = <0>;
edp_out: endpoint {
remote-endpoint = <&panel_in>;
};
};
};
};
&edp_in_vopb {
status = “disabled”;
};
&edp_in_vopl {
status = “okay”;
};
&route_edp{
status = “okay”;
connect = <&vopl_out_edp>;
};
上边是Edp的配置,让edp显示在vopl中,
关于vopb和vopl的介绍可以参考瑞信微的文档