[PATCH] arm64: dts: rockchip: Enable HDMI 4K (DP to HDMI) port for Radxa ROCK 5A
FUKAUMI Naoki
naoki at radxa.com
Thu Mar 20 01:16:32 PDT 2025
Enable the HDMI 4K port located next to the USB Type-C power port.
It's driven by DP0 on the RK3588S via a RA620 DP to HDMI converter.
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: FUKAUMI Naoki <naoki at radxa.com>
---
This patch depends
https://patchwork.kernel.org/project/linux-rockchip/cover/20250312104214.525242-1-andyshrk@163.com/
---
.../boot/dts/rockchip/rk3588s-rock-5a.dts | 36 +++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
index f894742b1ebe..6173b0ccb639 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
@@ -36,6 +36,17 @@ chosen {
stdout-path = "serial2:1500000n8";
};
+ dp-con {
+ compatible = "dp-connector";
+ type = "full-size"; // HDMI Type-D via RA620
+
+ port {
+ dp_con_in: endpoint {
+ remote-endpoint = <&dp0_out_con>;
+ };
+ };
+ };
+
hdmi0-con {
compatible = "hdmi-connector";
type = "d";
@@ -178,6 +189,24 @@ &cpu_l3 {
cpu-supply = <&vdd_cpu_lit_s0>;
};
+&dp0 {
+ status = "okay";
+ pinctrl-0 = <&dp0m1_pins>;
+ pinctrl-names = "default";
+};
+
+&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";
@@ -849,3 +878,10 @@ vp0_out_hdmi0: endpoint at ROCKCHIP_VOP2_EP_HDMI0 {
remote-endpoint = <&hdmi0_in_vp0>;
};
};
+
+&vp2 {
+ vp2_out_dp0: endpoint at a {
+ reg = <ROCKCHIP_VOP2_EP_DP0>;
+ remote-endpoint = <&dp0_in_vp2>;
+ };
+};
--
2.43.0
More information about the Linux-rockchip
mailing list