]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: rockchip: Enable DisplayPort for rk3588s Cool Pi 4B
authorAndy Yan <andy.yan@rock-chips.com>
Fri, 22 Aug 2025 06:39:53 +0000 (14:39 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Tue, 2 Sep 2025 06:32:26 +0000 (08:32 +0200)
Enable the Mini DisplayPort on this board.
Note that ROCKCHIP_VOP2_EP_DP0 is defined as 10 in dt-binding header,
but it will trigger a dtc warning like "graph node unit address error,
expected "a"" if we use it directly after endpoint, so we use "a"
instead here.

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250822063959.692098-10-andyshrk@163.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3588s-coolpi-4b.dts

index b2947b36fadaf687c5973fb64d58eb02ea4b536d..189444d207797990d882eb44e1fad6a4b7e2d716 100644 (file)
                stdout-path = "serial2:1500000n8";
        };
 
+       dp-con {
+               compatible = "dp-connector";
+               label = "DP OUT";
+               type = "mini";
+
+               port {
+                       dp_con_in: endpoint {
+                               remote-endpoint = <&dp0_out_con>;
+                       };
+               };
+       };
+
        hdmi-con {
                compatible = "hdmi-connector";
                type = "d";
        cpu-supply = <&vdd_cpu_big1_s0>;
 };
 
+&dp0 {
+       pinctrl-0 = <&dp0m0_pins>;
+       pinctrl-names = "default";
+       status = "okay";
+};
+
+&dp0_in {
+       dp0_in_vp2: endpoint {
+               remote-endpoint = <&vp2_out_dp0>;
+       };
+};
+
+&dp0_out {
+       dp0_out_con: endpoint {
+               remote-endpoint = <&dp_con_in>;
+       };
+};
+
 &gpu {
        mali-supply = <&vdd_gpu_s0>;
        status = "okay";
                remote-endpoint = <&hdmi0_in_vp0>;
        };
 };
+
+&vp2 {
+       vp2_out_dp0: endpoint@a {
+               reg = <ROCKCHIP_VOP2_EP_DP0>;
+               remote-endpoint = <&dp0_in_vp2>;
+       };
+};