本文主要是介绍[RK3588-Android12] 关于EDP屏外设为Panel,不支持HPD的配置,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
问题描述
直接附上dts配置,也可自行查看先关文档RKDocs\common\display\Rockchip_RK3588_User_Guide_eDP_CN.pdf
解决方案:
// EDP屏参数panel-edp {compatible = "simple-panel";// 屏en脚 自行根据原理图配置enable-gpios = <&gpioX RK_PXX GPIO_ACTIVE_HIGH>;backlight = <&backlight>;power-supply = <&vcc3v3_lcd_edp>;prepare-delay-ms = <120>;enable-delay-ms = <120>;unprepare-delay-ms = <120>;disable-delay-ms = <120>;width-mm = <129>;height-mm = <171>;panel-timing {clock-frequency = <241000000>;hactive = <2560>;vactive = <1440>;hfront-porch = <108>;hsync-len = <38>;hback-porch = <40>;vfront-porch = <12>;vsync-len = <4>;vback-porch = <4>;hsync-active = <0>;vsync-active = <0>;de-active = <0>;pixelclk-active = <0>;};port {panel_in_edp: endpoint {remote-endpoint = <&edp_out_panel>;};};};// EDP LCD_PWREN_Hvcc3v3_lcd_edp: vcc3v3-lcd-edp {compatible = "regulator-fixed";regulator-name = "vcc3v3_lcd_edp";gpio = <&gpioX RK_PXX GPIO_ACTIVE_HIGH>;enable-active-high;regulator-boot-on;vin-supply = <&vcc_3v3_s3>;};/***********************************************************************/
// EDP
/***********************************************************************/
&backlight {// 背光en脚 自行配置enable-gpios = <&gpioX RK_PXX GPIO_ACTIVE_HIGH>;// pwm 自行根据原理图配置pwms = <&pwmX 0 25000 0>;power-supply = <&vcc3v3_lcd_edp>;status = "okay";
};&edp0 {force-hpd;status = "okay";ports {port@1 {reg = <1>;edp_out_panel: endpoint {remote-endpoint = <&panel_in_edp>;};};};
};&edp0_in_vp2 {status = "okay";
};&route_edp0 {connect = <&vp2_out_edp0>;status = "okay";
};&hdptxphy0 {/* Single Vdiff Training Table for power reduction (optional) */training-table = /bits/ 8 </* voltage swing 0, pre-emphasis 0->3 */0x0d 0x00 0x00 0x00 0x00 0x000x0d 0x00 0x00 0x00 0x00 0x000x0d 0x00 0x00 0x00 0x00 0x000x0d 0x00 0x00 0x00 0x00 0x00/* voltage swing 1, pre-emphasis 0->2 */0x0d 0x00 0x00 0x00 0x00 0x000x0d 0x00 0x00 0x00 0x00 0x000x0d 0x00 0x00 0x00 0x00 0x00/* voltage swing 2, pre-emphasis 0->1 */0x0d 0x00 0x00 0x00 0x00 0x000x0d 0x00 0x00 0x00 0x00 0x00/* voltage swing 3, pre-emphasis 0 */0x0d 0x00 0x00 0x00 0x00 0x00>;status = "okay";
};
/***********************************************************************/// 对应pwm 根据原理图自行配置
&pwmX {pinctrl-0 = <&pwmXmX_pins>;status = "okay";
};
这篇关于[RK3588-Android12] 关于EDP屏外设为Panel,不支持HPD的配置的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!