public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
From: Quentin Schulz <quentin.schulz@cherry.de>
To: Chaoyi Chen <chaoyi.chen@rock-chips.com>,
	Chaoyi Chen <kernel@airkyi.com>, Heiko Stuebner <heiko@sntech.de>,
	Andy Yan <andy.yan@rock-chips.com>
Cc: Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Dragan Simic <dsimic@manjaro.org>,
	FUKAUMI Naoki <naoki@radxa.com>, Jonas Karlman <jonas@kwiboo.se>,
	Peter Robinson <pbrobinson@gmail.com>,
	Geert Uytterhoeven <geert+renesas@glider.be>,
	Cristian Ciocaltea <cristian.ciocaltea@collabora.com>,
	Sebastian Reichel <sebastian.reichel@collabora.com>,
	devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] arm64: dts: rockchip: Enable DisplayPort for rk3588-evb2
Date: Tue, 16 Sep 2025 11:24:10 +0200	[thread overview]
Message-ID: <72ddffd6-bd8f-418e-996d-70267d3ca7e4@cherry.de> (raw)
In-Reply-To: <352856bb-76b6-4861-8a3f-80f94f7c7375@rock-chips.com>

On 9/16/25 11:18 AM, Chaoyi Chen wrote:
> Hi Quentin,
> 
> On 9/16/2025 4:41 PM, Quentin Schulz wrote:
>> Hi Chaoyi Chen,
>>
>> On 9/16/25 10:08 AM, Chaoyi Chen wrote:
>>> From: Chaoyi Chen <chaoyi.chen@rock-chips.com>
>>>
>>> The rk3588 evb2 board has a full size DisplayPort connector, enable
>>> for it.
>>>
>>> Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
>>> ---
>>>   .../boot/dts/rockchip/rk3588-evb2-v10.dts     | 39 +++++++++++++++++++
>>>   1 file changed, 39 insertions(+)
>>>
>>> diff --git a/arch/arm64/boot/dts/rockchip/rk3588-evb2-v10.dts b/arch/ 
>>> arm64/boot/dts/rockchip/rk3588-evb2-v10.dts
>>> index 91fe810d38d8..0e5af61f66fe 100644
>>> --- a/arch/arm64/boot/dts/rockchip/rk3588-evb2-v10.dts
>>> +++ b/arch/arm64/boot/dts/rockchip/rk3588-evb2-v10.dts
>>> @@ -25,6 +25,18 @@ chosen {
>>>           stdout-path = "serial2:1500000n8";
>>>       };
>>>   +    dp-con {
>>> +        compatible = "dp-connector";
>>> +        label = "DP OUT";
>>> +        type = "full size";
>>
>> This isn't valid according to the dt binding. It should be "full-size" 
>> instead.
> 
> Will fix in v2.
> 
> 
>>
>>> +
>>> +        port {
>>> +            dp_con_in: endpoint {
>>> +                remote-endpoint = <&dp0_out_con>;
>>> +            };
>>> +        };
>>> +    };
>>> +
>>>       hdmi-con {
>>>           compatible = "hdmi-connector";
>>>           type = "a";
>>> @@ -106,6 +118,24 @@ vcc5v0_usbdcin: regulator-vcc5v0-usbdcin {
>>>       };
>>>   };
>>>   +&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>;
>>>       sram-supply = <&vdd_gpu_mem_s0>;
>>> @@ -916,6 +946,8 @@ &usb_host1_xhci {
>>>   };
>>>     &vop {
>>> +    assigned-clocks = <&cru DCLK_VOP2_SRC>;
>>> +    assigned-clock-parents = <&cru PLL_V0PLL>;
>>
>> This is surprising, the only other board which has the DP0 enabled 
>> (the CoolPi 4B) doesn't set these two.
>>
>> Does HDMI still work as well as it used to with these new properties? 
>> Why are those needed? Some context in the commit log or as a comment 
>> in the DT would be most welcome!
> 
> Yes, HDMI and DP can work normally whether these new properties removed 
> or not.
> 
> The key point is that when using V0PLL, we can get more usable 
> resolution because DP requires a precise clock. If V0PLL is not 
> explicitly specified here, then dclk_vop2 (VP2) may be divided down on 
> GPLL, CPLL, etc. In this case, only a few frequency points are 
> available. In my case, when V0PLL is not used, only resolutions such as 
> 1024x768 and 640x480 are available.
> 
> For HDMI, I think it will use clk_hdmiphy_pixel0/1 as clock parent which 
> is provided by the HDMI PHY when it work on TMDS mode so that we don't 
> need to set it .
> 

Considering the clocks are all internal to the SoC, shouldn't all you 
have explained be applicable to the CoolPi 4B too (and other boards with 
DP)? I'm trying to understand if we should add something similar to 
CoolPi 4B DTS as well?

@Andy, you're the one who added support for DP to CoolPi 4B, without 
these properties, is there something we need to do there as well?

Thanks!
Quentin

  reply	other threads:[~2025-09-16  9:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-16  8:08 [PATCH] arm64: dts: rockchip: Enable DisplayPort for rk3588-evb2 Chaoyi Chen
2025-09-16  8:41 ` Quentin Schulz
2025-09-16  9:18   ` Chaoyi Chen
2025-09-16  9:24     ` Quentin Schulz [this message]
2025-09-16  9:48       ` Chaoyi Chen
2025-09-16 10:13         ` Andy Yan
2025-09-17 15:00 ` Rob Herring (Arm)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=72ddffd6-bd8f-418e-996d-70267d3ca7e4@cherry.de \
    --to=quentin.schulz@cherry.de \
    --cc=andy.yan@rock-chips.com \
    --cc=chaoyi.chen@rock-chips.com \
    --cc=conor+dt@kernel.org \
    --cc=cristian.ciocaltea@collabora.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dsimic@manjaro.org \
    --cc=geert+renesas@glider.be \
    --cc=heiko@sntech.de \
    --cc=jonas@kwiboo.se \
    --cc=kernel@airkyi.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=naoki@radxa.com \
    --cc=pbrobinson@gmail.com \
    --cc=robh@kernel.org \
    --cc=sebastian.reichel@collabora.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox