]> www.infradead.org Git - users/hch/misc.git/commitdiff
arm64: dts: rockchip: Enable DP2HDMI for ROCK 5 ITX
authorAndy Yan <andy.yan@rock-chips.com>
Fri, 22 Aug 2025 06:39:54 +0000 (14:39 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Tue, 2 Sep 2025 06:32:26 +0000 (08:32 +0200)
The HDMI0(Port next to Headphone Jack) is driven by DP1 on rk3588
via RA620(a dp2hdmi converter).

Add related dt nodes to enable it.

Note: ROCKCHIP_VOP2_EP_DP1 is defined as 11 in dt-binding header,
but it will trigger a dtc warning like "graph node unit address
error, expected "b"" if we use it directly after endpoint, so we
use "b" 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-11-andyshrk@163.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dts

index 7de17117df7aef45baa7cd5e1e43fc7a6a719cbe..bc8140883de4796163eb8fabeae3dc6c45a39ef2 100644 (file)
                          "Headphone", "Headphones";
        };
 
+       bridge {
+               compatible = "radxa,ra620";
+
+               ports {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       port@0 {
+                               reg = <0>;
+
+                               hdmi_bridge_in: endpoint {
+                                       remote-endpoint = <&dp1_out_con>;
+                               };
+                       };
+
+                       port@1 {
+                               reg = <1>;
+
+                               hdmi_bridge_out: endpoint {
+                                       remote-endpoint = <&hdmi_con_in>;
+                               };
+                       };
+               };
+       };
+
        gpio-leds {
                compatible = "gpio-leds";
                pinctrl-names = "default";
                };
        };
 
+       hdmi0-con {
+               compatible = "hdmi-connector";
+               type = "a";
+
+               port {
+                       hdmi_con_in: endpoint {
+                               remote-endpoint = <&hdmi_bridge_out>;
+                       };
+               };
+       };
+
        hdmi1-con {
                compatible = "hdmi-connector";
                type = "a";
        cpu-supply = <&vdd_cpu_lit_s0>;
 };
 
+&dp1 {
+       status = "okay";
+       pinctrl-names = "default";
+       pinctrl-0 = <&dp1m0_pins>;
+};
+
+&dp1_in {
+       dp1_in_vp2: endpoint {
+               remote-endpoint = <&vp2_out_dp1>;
+       };
+};
+
+&dp1_out {
+       dp1_out_con: endpoint {
+               remote-endpoint = <&hdmi_bridge_in>;
+       };
+};
+
 &gpu {
        mali-supply = <&vdd_gpu_s0>;
        status = "okay";
                remote-endpoint = <&hdmi1_in_vp1>;
        };
 };
+
+&vp2 {
+       vp2_out_dp1: endpoint@b {
+               reg = <ROCKCHIP_VOP2_EP_DP1>;
+               remote-endpoint = <&dp1_in_vp2>;
+       };
+};