Skip to contentSkip to conversation

Add support for RK3588 DisplayPort Controller

PATCH Andy Yan 3 participants 13 messages Mar 5, 2025 – Mar 12, 2025

Subsystems (6)
lore
Share & tools
lore

Andy Yan

author maintainer
#0 lore raw

Hi Piotr,

Quoted 17 lines · 在 2025-03-04 21:12:50,"Piotr Oniszczuk" <[email protected]> 写道:
Quoted 8 lines

Wiadomość napisana przez Andy Yan <[email protected]> w dniu 1 mar 2025, o godz. 13:24:

Hi Piotr,

Quoted 1 line
Quoted 8 lines
Quoted 1 line

is it worth to play with this or it is too early?

I think you could give it a try if it using the Standard DP(non-ALT mode) port for output. Since I don't currently have a development board with DP1 output available, I haven't been able to test it yet. As for the Type-C Alternate Mode output, some patches are still required I'll send it with V2 tomorrow or next week.
Feel free to let me know if If you encounter any issues。

Quoted 5 lines

Andy,
I added dp1 enablement in rock5 itx like this: https://gist.github.com/warpme/bddf75912193f57724c49216d5d85d4a
Unfortunately it not works.
For /sys/kernel/debug/dri/0/state - pls see above link…
I’m not sure: do i missed something in dt or rather issue issue is in dp code...

I only see the HDMI connector from your dri/state ; so it appears the DP driver hasn't been successfully initialized(I think kernel dmesg can tell that).
Have you enabled CONFIG_ROCKCHIP_DW_DP ? This is needed.

Quoted 5 lines

FYI: schematic: https://dl.radxa.com/rock5/5itx/v1110/radxa_rock_5itx_v1110_schematic.pdf

#1 lore raw
Quoted 10 lines

Wiadomość napisana przez Andy Yan <[email protected]> w dniu 5 mar 2025, o godz. 03:30:

Quoted 1 line

I only see the HDMI connector from your dri/state ; so it appears the DP driver hasn't been successfully initialized(I think kernel dmesg can tell that).
Have you enabled CONFIG_ROCKCHIP_DW_DP ? This is needed.

Andy,

Do you mean CONFIG_ROCKCHIP_DW_DP or CONFIG_DRM_DW_DP ?

If CONFIG_DRM_DW_DP - then yes - i have it: https://github.com/warpme/minimyth2/blob/2e267842b1033bbc4c2c5d80c1756a142e347cc5/script/kernel/linux-6.14/files/linux-6.14-arm64-armv8.config#L5024

Kernel dmesg: https://termbin.com/uiup

author maintainer
#2 lore raw

Hi Piotr,

Quoted 12 lines · 在 2025-03-05 21:56:12,"Piotr Oniszczuk" <[email protected]> 写道:
Quoted 10 lines

Wiadomość napisana przez Andy Yan <[email protected]> w dniu 5 mar 2025, o godz. 03:30:

Quoted 1 line

I only see the HDMI connector from your dri/state ; so it appears the DP driver hasn't been successfully initialized(I think kernel dmesg can tell that).
Have you enabled CONFIG_ROCKCHIP_DW_DP ? This is needed.

Quoted 7 lines

Andy,

Do you mean CONFIG_ROCKCHIP_DW_DP or CONFIG_DRM_DW_DP ?

If CONFIG_DRM_DW_DP - then yes - i have it: https://github.com/warpme/minimyth2/blob/2e267842b1033bbc4c2c5d80c1756a142e347cc5/script/kernel/linux-6.14/files/linux-6.14-arm64-armv8.config#L5024

Kernel dmesg: https://termbin.com/uiup

Both of the two config options should be enabled.

andy@Pro480:~/WorkSpace/linux-next$ rg DW_DP .config
4044:CONFIG_ROCKCHIP_DW_DP=y
4218:CONFIG_DRM_DW_DP=y

And if dw dp driver boots success, you will see dmesg like bellow:

 [    1.058634] arm-smmu-v3 fc900000.iommu: msi_domain absent - falling back to wired irqs
[    1.062458] rockchip-vop2 fdd90000.vop: Adding to iommu group 0
[    1.067908] rockchip-drm display-subsystem: bound fdd90000.vop (ops vop2_component_ops)
[    1.068981] rockchip-drm display-subsystem: bound fde60000.dp (ops dw_dp_rockchip_component_ops)
[    1.070133] dwhdmiqp-rockchip fde80000.hdmi: registered DesignWare HDMI QP I2C bus driver
[    1.070859] rockchip-drm display-subsystem: bound fde80000.hdmi (ops dw_hdmi_qp_rockchip_ops)
[    1.072103] [drm] Initialized rockchip 1.0.0 for display-subsystem on minor 0
[    1.080191] loop: module loaded

But I just see hdmi driver boots from your dmesg.

Quoted 3 lines
#3 lore raw
Quoted 10 lines

Wiadomość napisana przez Andy Yan <[email protected]> w dniu 6 mar 2025, o godz. 01:59:

Both of the two config options should be enabled.

andy@Pro480:~/WorkSpace/linux-next$ rg DW_DP .config
4044:CONFIG_ROCKCHIP_DW_DP=y

here i’m a bit lost….
greping on full kernel sources (with applied https://patchwork.kernel.org/project/linux-rockchip/list/?series=936784) gives me no single appearance of ROCKCHIP_DW_DP… Do i miss something?

author maintainer
#4 lore raw

Hi,

Quoted 7 lines · 在 2025-03-06 16:42:00,"Piotr Oniszczuk" <[email protected]> 写道:
Quoted 7 lines

Wiadomość napisana przez Andy Yan <[email protected]> w dniu 6 mar 2025, o godz. 01:59:

Quoted 7 lines
Quoted 3 lines

Both of the two config options should be enabled.

andy@Pro480:~/WorkSpace/linux-next$ rg DW_DP .config
4044:CONFIG_ROCKCHIP_DW_DP=y

here i’m a bit lost….
greping on full kernel sources (with applied https://patchwork.kernel.org/project/linux-rockchip/list/?series=936784) gives me no single appearance of ROCKCHIP_DW_DP… Do i miss something?

see PATCH 3/6:

drivers/gpu/drm/rockchip/Kconfig +6 -0
index 26c4410b2407..c8638baf9641 100644
@@ -8,6 +8,7 @@ config DRM_ROCKCHIP
 	select DRM_PANEL
 	select VIDEOMODE_HELPERS
 	select DRM_ANALOGIX_DP if ROCKCHIP_ANALOGIX_DP
+	select DRM_DW_DP if ROCKCHIP_DW_DP
 	select DRM_DW_HDMI if ROCKCHIP_DW_HDMI
 	select DRM_DW_HDMI_QP if ROCKCHIP_DW_HDMI_QP
 	select DRM_DW_MIPI_DSI if ROCKCHIP_DW_MIPI_DSI
@@ -58,6 +59,12 @@ config ROCKCHIP_CDN_DP
 	  RK3399 based SoC, you should select this
 	  option.
 
+config ROCKCHIP_DW_DP
+	bool "Rockchip specific extensions for Synopsys DW DP"
+	help
+	  Choose this option for Synopsys DesignWare Cores DisplayPort
+	  transmit controller support on Rockchip SoC.
 
 https://lore.kernel.org/linux-rockchip/[email protected]/T/#m178a325ea0ebc64187aae474d77c3f7a9e0bc93d
Quoted 1 line
#5 lore raw
Quoted 47 lines

Wiadomość napisana przez Andy Yan <[email protected]> w dniu 6 mar 2025, o godz. 09:53:

Hi,

Quoted 7 lines · 在 2025-03-06 16:42:00,"Piotr Oniszczuk" <[email protected]> 写道:
Quoted 7 lines

Wiadomość napisana przez Andy Yan <[email protected]> w dniu 6 mar 2025, o godz. 01:59:

Quoted 7 lines
Quoted 3 lines

Both of the two config options should be enabled.

andy@Pro480:~/WorkSpace/linux-next$ rg DW_DP .config
4044:CONFIG_ROCKCHIP_DW_DP=y

here i’m a bit lost….
greping on full kernel sources (with applied https://patchwork.kernel.org/project/linux-rockchip/list/?series=936784) gives me no single appearance of ROCKCHIP_DW_DP… Do i miss something?

see PATCH 3/6:

drivers/gpu/drm/rockchip/Kconfig +0 -0
index 26c4410b2407..c8638baf9641 100644
@@ -8,6 +8,7 @@ config DRM_ROCKCHIP

select DRM_PANEL
select VIDEOMODE_HELPERS
select DRM_ANALOGIX_DP if ROCKCHIP_ANALOGIX_DP
+ select DRM_DW_DP if ROCKCHIP_DW_DP
select DRM_DW_HDMI if ROCKCHIP_DW_HDMI
select DRM_DW_HDMI_QP if ROCKCHIP_DW_HDMI_QP
select DRM_DW_MIPI_DSI if ROCKCHIP_DW_MIPI_DSI

drivers/gpu/drm/rockchip/Kconfig +5 -0
@@ -58,6 +59,12 @@ config ROCKCHIP_CDN_DP
 RK3399 based SoC, you should select this
 option.
 
+config ROCKCHIP_DW_DP
+ bool "Rockchip specific extensions for Synopsys DW DP"
+ help
+  Choose this option for Synopsys DesignWare Cores DisplayPort
+  transmit controller support on Rockchip SoC.
 
Quoted 2 lines

https://lore.kernel.org/linux-rockchip/[email protected]/T/#m178a325ea0ebc64187aae474d77c3f7a9e0bc93d

Quoted 1 line

Ah my bad!
One patch patch was commented - so not all dp code was applied.

Now it is much better:

root@myth-frontend-56b0f018b5e0:~ # dmesg | grep drm

[    9.795380] panthor fb000000.gpu: [drm] clock rate = 198000000
[    9.796257] panthor fb000000.gpu: [drm] mali-g610 id 0xa867 major 0x0 minor 0x0 status 0x5
[    9.796262] panthor fb000000.gpu: [drm] Features: L2:0x7120306 Tiler:0x809 Mem:0x301 MMU:0x2830 AS:0xff
[    9.796265] panthor fb000000.gpu: [drm] shader_present=0x50005 l2_present=0x1 tiler_present=0x1
[    9.851869] panthor fb000000.gpu: [drm] Firmware protected mode entry not be supported, ignoring
[    9.851921] panthor fb000000.gpu: [drm] Firmware git sha: 814b47b551159067b67a37c4e9adda458ad9d852
[    9.852127] panthor fb000000.gpu: [drm] CSF FW using interface v1.1.0, Features 0x0 Instrumentation features 0x71
[    9.852436] [drm] Initialized panthor 1.3.0 for fb000000.gpu on minor 0
[   10.003108] rockchip-drm display-subsystem: bound fdd90000.vop (ops vop2_component_ops)
[   10.004705] rockchip-drm display-subsystem: bound fde60000.dp (ops dw_dp_rockchip_component_ops)
[   10.006085] rockchip-drm display-subsystem: bound fdea0000.hdmi (ops dw_hdmi_qp_rockchip_ops)
[   10.006679] [drm] Initialized rockchip 1.0.0 for display-subsystem on minor 1
[   10.006737] rockchip-drm display-subsystem: [drm] Cannot find any crtc or sizes
[   10.007663] rockchip-drm display-subsystem: [drm] Cannot find any crtc or sizes

Unfortunately still nothing on screen

dri state: https://gist.github.com/warpme/5e971dfd2e9fd52fae76641831cebe46

and kernel dmesg https://termbin.com/r0m3

i’m not sure what is missing (some dts enablement or….)

author maintainer
#6 lore raw

Hi Piotr,

Quoted 72 lines · 在 2025-03-06 19:47:31,"Piotr Oniszczuk" <[email protected]> 写道:
Quoted 47 lines

Wiadomość napisana przez Andy Yan <[email protected]> w dniu 6 mar 2025, o godz. 09:53:

Hi,

Quoted 7 lines · 在 2025-03-06 16:42:00,"Piotr Oniszczuk" <[email protected]> 写道:
Quoted 7 lines

Wiadomość napisana przez Andy Yan <[email protected]> w dniu 6 mar 2025, o godz. 01:59:

Quoted 7 lines
Quoted 3 lines

Both of the two config options should be enabled.

andy@Pro480:~/WorkSpace/linux-next$ rg DW_DP .config
4044:CONFIG_ROCKCHIP_DW_DP=y

here i’m a bit lost….
greping on full kernel sources (with applied https://patchwork.kernel.org/project/linux-rockchip/list/?series=936784) gives me no single appearance of ROCKCHIP_DW_DP… Do i miss something?

see PATCH 3/6:

drivers/gpu/drm/rockchip/Kconfig +0 -0
index 26c4410b2407..c8638baf9641 100644
@@ -8,6 +8,7 @@ config DRM_ROCKCHIP

select DRM_PANEL
select VIDEOMODE_HELPERS
select DRM_ANALOGIX_DP if ROCKCHIP_ANALOGIX_DP
+ select DRM_DW_DP if ROCKCHIP_DW_DP
select DRM_DW_HDMI if ROCKCHIP_DW_HDMI
select DRM_DW_HDMI_QP if ROCKCHIP_DW_HDMI_QP
select DRM_DW_MIPI_DSI if ROCKCHIP_DW_MIPI_DSI

drivers/gpu/drm/rockchip/Kconfig +5 -0
@@ -58,6 +59,12 @@ config ROCKCHIP_CDN_DP
 RK3399 based SoC, you should select this
 option.
 
+config ROCKCHIP_DW_DP
+ bool "Rockchip specific extensions for Synopsys DW DP"
+ help
+  Choose this option for Synopsys DesignWare Cores DisplayPort
+  transmit controller support on Rockchip SoC.
 
Quoted 2 lines

https://lore.kernel.org/linux-rockchip/[email protected]/T/#m178a325ea0ebc64187aae474d77c3f7a9e0bc93d

Quoted 1 line

Ah my bad!
One patch patch was commented - so not all dp code was applied.

Now it is much better:

root@myth-frontend-56b0f018b5e0:~ # dmesg | grep drm

[    9.795380] panthor fb000000.gpu: [drm] clock rate = 198000000
[    9.796257] panthor fb000000.gpu: [drm] mali-g610 id 0xa867 major 0x0 minor 0x0 status 0x5
[    9.796262] panthor fb000000.gpu: [drm] Features: L2:0x7120306 Tiler:0x809 Mem:0x301 MMU:0x2830 AS:0xff
[    9.796265] panthor fb000000.gpu: [drm] shader_present=0x50005 l2_present=0x1 tiler_present=0x1
[    9.851869] panthor fb000000.gpu: [drm] Firmware protected mode entry not be supported, ignoring
[    9.851921] panthor fb000000.gpu: [drm] Firmware git sha: 814b47b551159067b67a37c4e9adda458ad9d852
[    9.852127] panthor fb000000.gpu: [drm] CSF FW using interface v1.1.0, Features 0x0 Instrumentation features 0x71
[    9.852436] [drm] Initialized panthor 1.3.0 for fb000000.gpu on minor 0
[   10.003108] rockchip-drm display-subsystem: bound fdd90000.vop (ops vop2_component_ops)
[   10.004705] rockchip-drm display-subsystem: bound fde60000.dp (ops dw_dp_rockchip_component_ops)
[   10.006085] rockchip-drm display-subsystem: bound fdea0000.hdmi (ops dw_hdmi_qp_rockchip_ops)
[   10.006679] [drm] Initialized rockchip 1.0.0 for display-subsystem on minor 1
[   10.006737] rockchip-drm display-subsystem: [drm] Cannot find any crtc or sizes
[   10.007663] rockchip-drm display-subsystem: [drm] Cannot find any crtc or sizes
Quoted 7 lines

Unfortunately still nothing on screen

dri state: https://gist.github.com/warpme/5e971dfd2e9fd52fae76641831cebe46

and kernel dmesg https://termbin.com/r0m3

i’m not sure what is missing (some dts enablement or….)

From your dts, I find you use gpio for hpd, I'm not sure how to handle it with upstream code now.

&dp1 {
	status = "okay";
	pinctrl-names = "default";
	pinctrl-0 = <&dp1_hpd>;
	hpd-gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>;
};

I suggest a change like this:

&dp1 {
	status = "okay";
	pinctrl-names = "default";
        pinctrl-0 = <&dp1m0_pins>;

};

And also remove dp1_hpd pinctrl in your dts.

Then when you DP cable plugin, you can run command as bellow to see if the driver detects the HPD:

# cat /sys/class/drm/card0-DP-1/status 
connected
# 
Quoted 6 lines
#7 lore raw
Quoted 8 lines

Wiadomość napisana przez Andy Yan <[email protected]> w dniu 6 mar 2025, o godz. 13:15:

Hi Piotr,

Quoted 6 lines

Then when you DP cable plugin, you can run command as bellow to see if the driver detects the HPD:

# cat /sys/class/drm/card0-DP-1/status 
connected
# 

Andy,
Thx!

With above changes i’m getting „connected”.
Also it looks crtc gets reasonable mode: https://gist.github.com/warpme/d6220e3cc502086a4c95f05bd9f9cf0c

Still black screen however...

#8 lore raw
Quoted 20 lines

Wiadomość napisana przez Piotr Oniszczuk <[email protected]> w dniu 6 mar 2025, o godz. 15:08:

Quoted 6 lines

Wiadomość napisana przez Andy Yan <[email protected]> w dniu 6 mar 2025, o godz. 13:15:

Hi Piotr,

Quoted 6 lines

Then when you DP cable plugin, you can run command as bellow to see if the driver detects the HPD:

# cat /sys/class/drm/card0-DP-1/status 
connected
# 
Quoted 8 lines

Andy,
Thx!

With above changes i’m getting „connected”.
Also it looks crtc gets reasonable mode: https://gist.github.com/warpme/d6220e3cc502086a4c95f05bd9f9cf0c

Still black screen however…

some additional data point: /sys/kernel/debug/dri/1/vop2/summary

working hdmi:

Video Port1: ACTIVE

    Connector: HDMI-A-1
        bus_format[0]: Unknown
        output_mode[f] color_space[0]
    Display mode: 1920x1080p60
        clk[148500] real_clk[148500] type[48] flag[5]
        H: 1920 2008 2052 2200
        V: 1080 1084 1089 1125
    Cluster0-win0: ACTIVE
        win_id: 0
        format: XR24 little-endian (0x34325258) glb_alpha[0xff]
        rotate: xmirror: 0 ymirror: 0 rotate_90: 0 rotate_270: 0
        zpos: 0
        src: pos[0, 0] rect[1920 x 1080]
        dst: pos[0, 0] rect[1920 x 1080]
        buf[0]: addr: 0x00000000017e1000 pitch: 7680 offset: 0

Video Port2: DISABLED

non-working DP:

Video Port1: DISABLED
Video Port2: ACTIVE

    Connector: DP-1
        bus_format[100a]: RGB888_1X24
        output_mode[f] color_space[0]
    Display mode: 1920x1080p60
        clk[148500] real_clk[148500] type[48] flag[5]
        H: 1920 2008 2052 2200
        V: 1080 1084 1089 1125
    Cluster1-win0: ACTIVE
        win_id: 1
        format: XR24 little-endian (0x34325258) glb_alpha[0xff]
        rotate: xmirror: 0 ymirror: 0 rotate_90: 0 rotate_270: 0
        zpos: 0
        src: pos[0, 0] rect[1920 x 1080]
        dst: pos[0, 0] rect[1920 x 1080]
        buf[0]: addr: 0x00000000007ed000 pitch: 7680 offset: 0
author maintainer
#9 lore raw

Hi Piotr,

Quoted 60 lines · 在 2025-03-06 22:28:08,"Piotr Oniszczuk" <[email protected]> 写道:
Quoted 20 lines

Wiadomość napisana przez Piotr Oniszczuk <[email protected]> w dniu 6 mar 2025, o godz. 15:08:

Quoted 6 lines

Wiadomość napisana przez Andy Yan <[email protected]> w dniu 6 mar 2025, o godz. 13:15:

Hi Piotr,

Quoted 6 lines

Then when you DP cable plugin, you can run command as bellow to see if the driver detects the HPD:

# cat /sys/class/drm/card0-DP-1/status 
connected
# 
Quoted 8 lines

Andy,
Thx!

With above changes i’m getting „connected”.
Also it looks crtc gets reasonable mode: https://gist.github.com/warpme/d6220e3cc502086a4c95f05bd9f9cf0c

Still black screen however…

some additional data point: /sys/kernel/debug/dri/1/vop2/summary

working hdmi:

Video Port1: ACTIVE
Connector: HDMI-A-1
bus_format[0]: Unknown
output_mode[f] color_space[0]
Display mode: 1920x1080p60

       clk[148500] real_clk[148500] type[48] flag[5]
       H: 1920 2008 2052 2200
       V: 1080 1084 1089 1125
   Cluster0-win0: ACTIVE
       win_id: 0
       format: XR24 little-endian (0x34325258) glb_alpha[0xff]
       rotate: xmirror: 0 ymirror: 0 rotate_90: 0 rotate_270: 0
       zpos: 0
       src: pos[0, 0] rect[1920 x 1080]
       dst: pos[0, 0] rect[1920 x 1080]
       buf[0]: addr: 0x00000000017e1000 pitch: 7680 offset: 0

Video Port2: DISABLED

non-working DP:

Video Port1: DISABLED
Video Port2: ACTIVE
Connector: DP-1

Quoted 16 lines
       bus_format[100a]: RGB888_1X24
       output_mode[f] color_space[0]
   Display mode: 1920x1080p60
       clk[148500] real_clk[148500] type[48] flag[5]
       H: 1920 2008 2052 2200
       V: 1080 1084 1089 1125
   Cluster1-win0: ACTIVE
       win_id: 1
       format: XR24 little-endian (0x34325258) glb_alpha[0xff]
       rotate: xmirror: 0 ymirror: 0 rotate_90: 0 rotate_270: 0
       zpos: 0
       src: pos[0, 0] rect[1920 x 1080]
       dst: pos[0, 0] rect[1920 x 1080]
       buf[0]: addr: 0x00000000007ed000 pitch: 7680 offset: 0

All dump information currently appears to be correct, so I'm temporarily unsure why there is no display on the monitor.
Maybe try some plug and unplug for the DP cable, or try another cable or monitor?

It seems that this board uses a DP to HDMI converter? Does this transmitter need a driver?

I won't be at my computer over the next two or three days, so any further replies to your email might have to wait until next week.

#10 lore raw
Quoted 10 lines

Wiadomość napisana przez Andy Yan <[email protected]> w dniu 7 mar 2025, o godz. 01:48:

Hi Piotr,

Quoted 2 lines · 在 2025-03-06 22:28:08,"Piotr Oniszczuk" <[email protected]> 写道:
Quoted 10 lines

All dump information currently appears to be correct, so I'm temporarily unsure why there is no display on the monitor.
Maybe try some plug and unplug for the DP cable, or try another cable or monitor?

It seems that this board uses a DP to HDMI converter? Does this transmitter need a driver?

I won't be at my computer over the next two or three days, so any further replies to your email might have to wait until next week.

Andy,
FYI:

I done test on mine rock5a with applied Naoki dp0 enablement in dts (and only in dts).
No any changes in dw dp driver (so i’m on vanilla https://patchwork.kernel.org/project/linux-rockchip/cover/[email protected]/ )

on mine rock5a ra620 hdmi port works ok.
(I contacted also Radxa about ra620 and they confirmed: ra620 is just DP->HDMI converter. No any driver nor special programming/enablement is needed)

This tells me that dp0 (rock5a) works ok while dp1 (rock5itx) not.
i suspect issue is probably in https://patchwork.kernel.org/project/linux-rockchip/cover/[email protected]/ and is related to dp1 handling?

BTW: there seems to be issue with video modes handling on dp0 port:
-playing video 1920@1080@50 - ok
-playing then video1920@1080@59,64 hangs board….

hdmi0 works ok. video modes issue is only on dp0

author maintainer
#11 lore raw

Hi Piotr,

Quoted 27 lines · 在 2025-03-10 04:53:50,"Piotr Oniszczuk" <[email protected]> 写道:
Quoted 10 lines

Wiadomość napisana przez Andy Yan <[email protected]> w dniu 7 mar 2025, o godz. 01:48:

Hi Piotr,

Quoted 2 lines · 在 2025-03-06 22:28:08,"Piotr Oniszczuk" <[email protected]> 写道:
Quoted 10 lines

All dump information currently appears to be correct, so I'm temporarily unsure why there is no display on the monitor.
Maybe try some plug and unplug for the DP cable, or try another cable or monitor?

It seems that this board uses a DP to HDMI converter? Does this transmitter need a driver?

I won't be at my computer over the next two or three days, so any further replies to your email might have to wait until next week.

Andy,
FYI:

I done test on mine rock5a with applied Naoki dp0 enablement in dts (and only in dts).
No any changes in dw dp driver (so i’m on vanilla https://patchwork.kernel.org/project/linux-rockchip/cover/[email protected]/ )

Quoted 7 lines

on mine rock5a ra620 hdmi port works ok.
(I contacted also Radxa about ra620 and they confirmed: ra620 is just DP->HDMI converter. No any driver nor special programming/enablement is needed)

This tells me that dp0 (rock5a) works ok while dp1 (rock5itx) not.

i suspect issue is probably in https://patchwork.kernel.org/project/linux-rockchip/cover/[email protected]/ and is related to dp1 handling?

With help from Stephen, we do some online debug, the DP1 display is ok on his rock5itx board now。

Try the patch as bellow:

drivers/gpu/drm/bridge/synopsys/dw-dp.c +2 -2
index 75a03e6a875c..d9434310a141 100644
@@ -329,7 +329,7 @@ struct dw_dp {
 
        struct dw_dp_link link;
        struct dw_dp_video video;
-       const struct dw_dp_plat_data *plat_data;
+       struct dw_dp_plat_data plat_data;
 
 
@@ -1998,7 +2012,7 @@ struct dw_dp *dw_dp_bind(struct device *dev, struct drm_encoder *encoder,
        dp->dev = dev;
        dp->video.pixel_mode = DW_DP_MP_QUAD_PIXEL;
 
-       dp->plat_data = plat_data;
+       dp->plat_data.max_link_rate = plat_data->max_link_rate;
        bridge = &dp->bridge;
        mutex_init(&dp->irq_lock);
        INIT_WORK(&dp->hpd_work, dw_dp_hpd_work);
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c +3 -3
index 17a98845fd31..2cf79a1409af 100644
@@ -2089,9 +2089,9 @@ static unsigned long rk3588_set_intf_mux(struct vop2_video_port *vp, int id, u32
                dip |= FIELD_PREP(RK3588_DSP_IF_POL__DP0_PIN_POL, polflags);
                break;
        case ROCKCHIP_VOP2_EP_DP1:
-               die &= ~RK3588_SYS_DSP_INFACE_EN_MIPI1_MUX;
-               die |= RK3588_SYS_DSP_INFACE_EN_MIPI1 |
-                          FIELD_PREP(RK3588_SYS_DSP_INFACE_EN_MIPI1_MUX, vp->id);
+               die &= ~RK3588_SYS_DSP_INFACE_EN_DP1_MUX;
+               die |= RK3588_SYS_DSP_INFACE_EN_DP1 |
+                          FIELD_PREP(RK3588_SYS_DSP_INFACE_EN_DP1_MUX, vp->id);
                dip &= ~RK3588_DSP_IF_POL__DP1_PIN_POL;
                dip |= FIELD_PREP(RK3588_DSP_IF_POL__DP1_PIN_POL, polflags);
                break;
Quoted 6 lines

BTW: there seems to be issue with video modes handling on dp0 port:

(quoted diff) +0 -2
-playing video 1920@1080@50 - ok
-playing then video1920@1080@59,64 hangs board….

hdmi0 works ok. video modes issue is only on dp0

The dclk for vp2 is default from GPLL, it can't divde pixel clock for such a refresh rates, But it should not hang the board, Sebastian, it seems the frequence of GPLL be changed?

Plesase try it like this: bond the dclk source for VP2 from V0PLL.

+&vop {
+ assigned-clocks = <&cru DCLK_VOP2_SRC>;
+ assigned-clock-parents = <&cru PLL_V0PLL>;
+ status = "okay";
+};
+

Quoted 2 lines
#12 lore raw
In reply to Andy Yan
Quoted 83 lines · Andy Yan

Hi Piotr,

Quoted 72 lines · 在 2025-03-06 19:47:31,"Piotr Oniszczuk" <[email protected]> 写道:
Quoted 47 lines

Wiadomość napisana przez Andy Yan <[email protected]> w dniu 6 mar 2025, o godz. 09:53:

Hi,

Quoted 7 lines · 在 2025-03-06 16:42:00,"Piotr Oniszczuk" <[email protected]> 写道:
Quoted 7 lines

Wiadomość napisana przez Andy Yan <[email protected]> w dniu 6 mar 2025, o godz. 01:59:

Quoted 7 lines
Quoted 3 lines

Both of the two config options should be enabled.

andy@Pro480:~/WorkSpace/linux-next$ rg DW_DP .config
4044:CONFIG_ROCKCHIP_DW_DP=y

here i’m a bit lost….
greping on full kernel sources (with applied https://patchwork.kernel.org/project/linux-rockchip/list/?series=936784) gives me no single appearance of ROCKCHIP_DW_DP… Do i miss something?

see PATCH 3/6:

drivers/gpu/drm/rockchip/Kconfig +0 -0
index 26c4410b2407..c8638baf9641 100644
@@ -8,6 +8,7 @@ config DRM_ROCKCHIP

select DRM_PANEL
select VIDEOMODE_HELPERS
select DRM_ANALOGIX_DP if ROCKCHIP_ANALOGIX_DP
+ select DRM_DW_DP if ROCKCHIP_DW_DP
select DRM_DW_HDMI if ROCKCHIP_DW_HDMI
select DRM_DW_HDMI_QP if ROCKCHIP_DW_HDMI_QP
select DRM_DW_MIPI_DSI if ROCKCHIP_DW_MIPI_DSI

drivers/gpu/drm/rockchip/Kconfig +5 -0
@@ -58,6 +59,12 @@ config ROCKCHIP_CDN_DP
 RK3399 based SoC, you should select this
 option.
 
+config ROCKCHIP_DW_DP
+ bool "Rockchip specific extensions for Synopsys DW DP"
+ help
+  Choose this option for Synopsys DesignWare Cores DisplayPort
+  transmit controller support on Rockchip SoC.
 
Quoted 2 lines

https://lore.kernel.org/linux-rockchip/[email protected]/T/#m178a325ea0ebc64187aae474d77c3f7a9e0bc93d

Quoted 1 line

Ah my bad!
One patch patch was commented - so not all dp code was applied.

Now it is much better:

root@myth-frontend-56b0f018b5e0:~ # dmesg | grep drm

[    9.795380] panthor fb000000.gpu: [drm] clock rate = 198000000
[    9.796257] panthor fb000000.gpu: [drm] mali-g610 id 0xa867 major 0x0 minor 0x0 status 0x5
[    9.796262] panthor fb000000.gpu: [drm] Features: L2:0x7120306 Tiler:0x809 Mem:0x301 MMU:0x2830 AS:0xff
[    9.796265] panthor fb000000.gpu: [drm] shader_present=0x50005 l2_present=0x1 tiler_present=0x1
[    9.851869] panthor fb000000.gpu: [drm] Firmware protected mode entry not be supported, ignoring
[    9.851921] panthor fb000000.gpu: [drm] Firmware git sha: 814b47b551159067b67a37c4e9adda458ad9d852
[    9.852127] panthor fb000000.gpu: [drm] CSF FW using interface v1.1.0, Features 0x0 Instrumentation features 0x71
[    9.852436] [drm] Initialized panthor 1.3.0 for fb000000.gpu on minor 0
[   10.003108] rockchip-drm display-subsystem: bound fdd90000.vop (ops vop2_component_ops)
[   10.004705] rockchip-drm display-subsystem: bound fde60000.dp (ops dw_dp_rockchip_component_ops)
[   10.006085] rockchip-drm display-subsystem: bound fdea0000.hdmi (ops dw_hdmi_qp_rockchip_ops)
[   10.006679] [drm] Initialized rockchip 1.0.0 for display-subsystem on minor 1
[   10.006737] rockchip-drm display-subsystem: [drm] Cannot find any crtc or sizes
[   10.007663] rockchip-drm display-subsystem: [drm] Cannot find any crtc or sizes
Quoted 7 lines

Unfortunately still nothing on screen

dri state: https://gist.github.com/warpme/5e971dfd2e9fd52fae76641831cebe46

and kernel dmesg https://termbin.com/r0m3

i’m not sure what is missing (some dts enablement or….)

Quoted 8 lines

From your dts, I find you use gpio for hpd, I'm not sure how to handle it with upstream code now.

&dp1 {
	status = "okay";
	pinctrl-names = "default";
	pinctrl-0 = <&dp1_hpd>;
	hpd-gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>;

If this GPIO is handled by the DP controller itself, it should be a part of DP's node. Otherwise please move it to the correctponding dp-connector node.

Quoted 18 lines

};

I suggest a change like this:

&dp1 {
	status = "okay";
	pinctrl-names = "default";
        pinctrl-0 = <&dp1m0_pins>;

};

And also remove dp1_hpd pinctrl in your dts.

Then when you DP cable plugin, you can run command as bellow to see if the driver detects the HPD:

# cat /sys/class/drm/card0-DP-1/status 
connected
# 
Signature · 2 lines
With best wishes
Dmitry