From: Damon Ding <damon.ding@rock-chips.com>
To: Sebastian Reichel <sebastian.reichel@collabora.com>
Cc: "Heiko Stübner" <heiko@sntech.de>,
robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
rfoss@kernel.org, vkoul@kernel.org,
cristian.ciocaltea@collabora.com, l.stach@pengutronix.de,
andy.yan@rock-chips.com, hjc@rock-chips.com,
algea.cao@rock-chips.com, kever.yang@rock-chips.com,
dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org,
linux-phy@lists.infradead.org
Subject: Re: [PATCH v1 04/10] phy: phy-rockchip-samsung-hdptx: Add support for eDP mode
Date: Fri, 6 Dec 2024 11:28:21 +0800 [thread overview]
Message-ID: <c0bc25b7-6e41-4ed8-ae8d-692a908607df@rock-chips.com> (raw)
In-Reply-To: <5ncdog66jtc4s7vxk2yt4jkknf2es3whvweuqmrxbot3azi5ge@t6s3xadkiasp>
Hi Sebastian,
On 2024/12/6 2:04, Sebastian Reichel wrote:
> Hello Damon,
>
> On Thu, Dec 05, 2024 at 09:13:33AM +0800, Damon Ding wrote:
>> Firstly, the term "the HDMI and eDP dynamic switching" can be somewhat
>> misleading, because the eDP usually does not support hot plug. The RK3588
>> eDP is often used as DP, and it actually supports DP 1.2. Therefore, it is
>> better to use the "the HDMI and DP dynamic switching" description.
>
> The part unclear to me is how the dynamic switching is supposed to
> happen. Looking at the TRM the hotplug detect signals also seem to be
> shared between HDMI and eDP. Can the RK3588S EVB distinguish if HDMI
> or eDP has been plugged, or does this require some user interaction
> to set the right mode?
Indeed, HDMI and eDP share the same pin for hotplug detect. However,
some users may connect the hotplug detection pin of DP-connector with an
unexpected pin that can not support the iomux of hotplug detect function
on RK3588 SoC. This could be due to a flaw in the hardware design, a
conflict in pin multiplexing, or other factors. Therefore, we support
the GPIO HDP function for the eDP, as DP also supports this for the same
reasons.
If the dynamic switching is enabled, HDMI detects the HPD signal through
the hotplug detect function pin, while eDP uses one of the available
GPIO pins to do this.
What's more, if the user connects an HDMI cable first and than connects
a DP cable as well, despite our clear instruction against using HDMI and
eDP simultaneously, the status register of GRF will indicate that HDMI
has been connected. Meanwhile, during the HPD detection process for eDP,
it will return "connector_status_disconnected". The reverse scenario
also applies.
>
>> Indeed, the devm_phy_get(dp->dev, "dp") and devm_of_phy_get_by_index() will
>> help to get the phy reference in .probe() or .bind().
>>
>> However, the phy_set_mode() may be still needed in the HDMI and DP dynamic
>> switching application scenarios. We need the enum phy_mode
>> PHY_MODE_DP/PHY_MODE_HDMI to differentiate the configuration processes in
>> .power_on(), .power_off() and .configure() of struct phy_ops, which will be
>> called in conjunction with plugging in and unplugging an HDMI or DP cable.
>
> I suppose you could fetch the PHY in power_on() and release it in
> power_off(). But using phy_set_mode() might indeed be better here.
>
As a future expansion, the .set_mode() can also be helpful in the txffe
level adjustment for HDMI 2.1. :)
> -- Sebastian
Best regards,
Damon
next prev parent reply other threads:[~2024-12-06 3:43 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-27 7:51 [PATCH v1 00/10] Add eDP support for RK3588 Damon Ding
2024-11-27 7:51 ` [PATCH v1 01/10] drm/rockchip: analogix_dp: Use formalized struct definition for grf field Damon Ding
2024-11-27 7:51 ` [PATCH v1 02/10] dt-bindings: display: rockchip: analogix-dp: Add support for RK3588 Damon Ding
2024-11-27 10:23 ` Krzysztof Kozlowski
2024-12-02 2:03 ` Damon Ding
2024-11-27 7:51 ` [PATCH v1 03/10] drm/rockchip: analogix_dp: " Damon Ding
2024-11-27 7:51 ` [PATCH v1 04/10] phy: phy-rockchip-samsung-hdptx: Add support for eDP mode Damon Ding
2024-11-27 9:29 ` Heiko Stübner
2024-11-27 11:00 ` Damon Ding
2024-11-27 11:04 ` Heiko Stübner
2024-11-29 2:43 ` Damon Ding
2024-11-30 20:25 ` Heiko Stübner
2024-12-01 22:59 ` Sebastian Reichel
2024-12-02 3:28 ` Damon Ding
2024-12-02 14:41 ` Sebastian Reichel
2024-12-05 1:13 ` Damon Ding
2024-12-05 18:04 ` Sebastian Reichel
2024-12-06 3:28 ` Damon Ding [this message]
2024-11-27 7:51 ` [PATCH v1 05/10] drm/bridge: analogix_dp: add support for RK3588 Damon Ding
2024-11-27 7:51 ` [PATCH v1 06/10] drm/bridge: analogix_dp: Add support for phy configuration Damon Ding
2024-11-30 8:53 ` Dmitry Baryshkov
2024-12-12 8:55 ` Damon Ding
2024-11-27 7:51 ` [PATCH v1 07/10] dt-bindings: display: rockchip: Fix label name of hdptxphy for RK3588 HDMI TX Controller Damon Ding
2024-12-03 16:58 ` Rob Herring (Arm)
2024-11-27 7:51 ` [PATCH v1 08/10] arm64: dts: rockchip: Fix label name of hdptxphy for RK3588 Damon Ding
2024-11-27 7:51 ` [PATCH v1 09/10] arm64: dts: rockchip: Add eDP0 node " Damon Ding
2024-11-27 7:51 ` [PATCH v1 10/10] arch64: dts: rockchip: Enable eDP0 display on RK3588S EVB1 board Damon Ding
2024-11-27 9:02 ` Heiko Stübner
2024-12-06 14:35 ` [PATCH v1 00/10] Add eDP support for RK3588 Heiko Stübner
2024-12-15 2:32 ` Damon Ding
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=c0bc25b7-6e41-4ed8-ae8d-692a908607df@rock-chips.com \
--to=damon.ding@rock-chips.com \
--cc=algea.cao@rock-chips.com \
--cc=andy.yan@rock-chips.com \
--cc=conor+dt@kernel.org \
--cc=cristian.ciocaltea@collabora.com \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=heiko@sntech.de \
--cc=hjc@rock-chips.com \
--cc=kever.yang@rock-chips.com \
--cc=krzk+dt@kernel.org \
--cc=l.stach@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=rfoss@kernel.org \
--cc=robh@kernel.org \
--cc=sebastian.reichel@collabora.com \
--cc=vkoul@kernel.org \
/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
all inboxes | Powered by JetHome®