RK3588 配置HDMI支持8K分辨率输出

RK3588 配置HDMI支持8K分辨率输出

RK3588 芯片最高支持的输出分辨率可以到8K,由于Android12 SDK要支持多个显示接口,所以默认最高只配置了4K的分辨率支持,下面以RK3588-EVB1的开发板上配置HDMI输出8K输出为例进行说明如何让RK3588支持8K分辨率。 本文配置RK3588-EVB1开发HDMI0接口输出8K分辨率。

提供VOP CLK以支持8K分辨率

提cru ACLK_VOP的频率到800MHz

diff --git a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi
index 9fdddf6665766..991d3fed1d4c1 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi
@@ -3711,7 +3711,7 @@
                              "dclk_src_vp1",
                              "dclk_src_vp2";
                assigned-clocks = <&cru ACLK_VOP>;
-               assigned-clock-rates = <500000000>;
+               assigned-clock-rates = <800000000>;
                resets = <&cru SRST_A_VOP>,
                         <&cru SRST_H_VOP>,
                         <&cru SRST_D_VOP0>,

修改VOP的图层分配

RK3588的有4个vop port分别支持4K+4K+4K+1080P(关于VOP的详细介绍可以参考文档Rockchip RK3588 kernel dts解析之显示模块),如果需要支持8K需要把vp0和vp1组合使用,这里只需要把HDMI0分配到vp0上,vp1不分配给其他接口即可,因为SDK中的RK3588-EVB1的dts中HMDI1配置在vp1上面,所以需要把HMDI1改为配置在vp2上面,这样即可空出vp1给HMDI0做8K显示用。

diff --git a/arch/arm64/boot/dts/rockchip/rk3588-evb1-lp4.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-evb1-lp4.dtsi
index 543d78d3f182f..4f4f4b5f01eab 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588-evb1-lp4.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3588-evb1-lp4.dtsi
@@ -360,8 +360,8 @@
        status = "okay";
 };
 
-&hdmi1_in_vp1 {
-       status = "okay";
+&hdmi1_in_vp2 {
+       status = "okay";
 };

你可能感兴趣的:(RK3588,RK3588,android,linux,驱动开发,8K显示)