]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: rockchip: Enable displayport for rk3576 evb2
authorChaoyi Chen <chaoyi.chen@rock-chips.com>
Tue, 24 Feb 2026 08:38:18 +0000 (16:38 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 2 Mar 2026 12:47:45 +0000 (13:47 +0100)
The rk3576 evb2 has a full size displayport connector. Enable it.

Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
Link: https://patch.msgid.link/20260224083818.109-1-kernel@airkyi.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3576-evb2-v10.dts

index c997c96362538d93694516792bd45eeb915a1f7d..98d5d00d63b5771cd6d244c0cbb12928cf812557 100644 (file)
                stdout-path = "serial0:1500000n8";
        };
 
+       dp-con {
+               compatible = "dp-connector";
+               dp-pwr-supply = <&vcc3v3_dp_port>;
+               label = "DP OUT";
+               type = "full-size";
+
+               port {
+                       dp0_con_in: endpoint {
+                               remote-endpoint = <&dp0_out_con>;
+                       };
+               };
+       };
+
        hdmi-con {
                compatible = "hdmi-connector";
                type = "a";
        status = "okay";
 };
 
+&dp {
+       pinctrl-0 = <&dpm0_pins>;
+       pinctrl-names = "default";
+       status = "okay";
+};
+
+&dp0_in {
+       dp0_in_vp1: endpoint {
+               remote-endpoint = <&vp1_out_dp0>;
+       };
+};
+
+&dp0_out {
+       dp0_out_con: endpoint {
+               remote-endpoint = <&dp0_con_in>;
+       };
+};
+
 &gmac0 {
        clock_in_out = "output";
        phy-mode = "rgmii-id";
 };
 
 &vop {
+       /*
+        * If no dedicated PLL was specified, the GPLL would be automatically
+        * assigned as the PLL source for dclk_vp1_src. As the frequency of GPLL
+        * is 1188 MHz, we can only get typical clock frequencies such as
+        * 74.25MHz, 148.5MHz, 297MHz, 594MHz.
+        *
+        * So here we set the parent clock of VP1 to VPLL so that we can get
+        * any frequency.
+        */
+       assigned-clocks = <&cru DCLK_VP1_SRC>;
+       assigned-clock-parents = <&cru PLL_VPLL>;
        status = "okay";
 };
 
                remote-endpoint = <&hdmi_in_vp0>;
        };
 };
+
+&vp1 {
+       vp1_out_dp0: endpoint@a {
+               reg = <ROCKCHIP_VOP2_EP_DP0>;
+               remote-endpoint = <&dp0_in_vp1>;
+       };
+};