From: Neil Armstrong <neil.armstrong@linaro.org>
To: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Cc: Andrzej Hajda <andrzej.hajda@intel.com>,
Robert Foss <rfoss@kernel.org>,
Laurent Pinchart <Laurent.pinchart@ideasonboard.com>,
Jonas Karlman <jonas@kwiboo.se>,
Jernej Skrabec <jernej.skrabec@gmail.com>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>, Vinod Koul <vkoul@kernel.org>,
Kishon Vijay Abraham I <kishon@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org,
linux-phy@lists.infradead.org
Subject: Re: [PATCH v2 3/5] dt-bindings: phy: qcom,sc8280xp-qmp-usb43dp-phy: Document static lanes mapping
Date: Tue, 2 Sep 2025 14:29:33 +0200 [thread overview]
Message-ID: <81b1e0b8-6a5b-4eb9-8f9d-fe9a52f0afcd@linaro.org> (raw)
In-Reply-To: <oel3t35pxegxaowcfjbrzrxvuw47p7pzcinz7kf2uj2ivcderv@efbttlqpwcc7>
On 02/09/2025 14:22, Dmitry Baryshkov wrote:
> On Tue, Sep 02, 2025 at 12:05:45PM +0200, Neil Armstrong wrote:
>> On 02/09/2025 11:46, Dmitry Baryshkov wrote:
<snip>
>>
>> This is wrong, those are the internal connections to the controllers,
>> those are fixed. I'm speaking about the external lanes, but there's only
>> a single port.
>>
>> So, following your suggestion, we should use the Output port 0, but as it's
>> only a single port it would need to have 2 endpoints, one for USB3 and one for
>> DP.
>>
>> For example:
>>
>> \{
>> dp-connector {
>> compatible = "dp-connector";
>> type = "a";
>>
>> port {
>> dp_con: endpoint {
>> remote-endpoint = <&usb_1_ss2_qmpphy_dp_out>;
>> };
>> };
>> };
>>
>> usb-a-connector {
>> compatible = "usb-a-connector";
>>
>> ports {
>> #address-cells = <1>;
>> #size-cells = <0>;
>>
>> port@0 {
>> reg = <0>;
>> usb_con_hs: endpoint {
>> remote-endpoint = <&usb_1_ss2_dwc3_hs>;
>> };
>> };
>>
>> port@1 {
>> reg = <1>;
>> usb_con_ss: endpoint {
>> remote-endpoint = <&usb_1_ss2_qmpphy_usb3_out>;
>> };
>> };
>> };
>> };
>>
>> };
>>
>> &usb_1_ss2_dwc3_hs {
>> remote-endpoint = <&usb_1_ss2_dwc3_hs>;
>> };
>>
>> &usb_1_ss2_qmpphy {
>> /delete-property/ mode-switch;
>> /delete-property/ orientation-switch;
>>
>> ports {
>>
>> port@0{
>> #address-cells = <1>;
>> #size-cells = <0>;
>>
>> /delete-node/ endpoint;
>>
>> usb_1_ss2_qmpphy_usb3_out: endpoint@0 {
>> reg = <0>;
>>
>> remote-endpoint = <&usb_con_ss>;
>>
>> data-lanes = <1 2 0 0>;
>> };
>>
>> usb_1_ss2_qmpphy_dp_out: endpoint@1 {
>> reg = <1>;
>>
>> remote-endpoint = <&dp_con>;
>>
>> data-lanes = <0 0 1 2>;
>> };
>> };
>> };
>> };
>>
>> So the driver logic would need to look at the port0/endpoint0 and port0/endpoint1
>> data-lanes to figure out the mode.
>>
>> Is this what you were thinking ?
>
> No, I was really thinking about the data-lanes in the PHY parts, so I
> was incorrect there (which is incrrect as you've pointed out).
>
> The endpoints approach looks interesting though.
>
Indeed this would accurately describe the data flow and lane mapping, but
I fear this would add a very complex logic in the driver.
Anyway I'll try to drop something.
Neil
next prev parent reply other threads:[~2025-09-02 12:29 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-02 9:00 [PATCH v2 0/5] arm64: qcom: x1e78100-lenovo-thinkpad-t14s: add support for HDMI output Neil Armstrong
2025-09-02 9:00 ` [PATCH v2 1/5] dt-bindings: display: bridge: simple: document the Realtek RTD2171 DP-to-HDMI bridge Neil Armstrong
2025-09-02 9:51 ` Maud Spierings
2025-09-03 6:52 ` Krzysztof Kozlowski
2025-09-02 9:00 ` [PATCH v2 2/5] drm/bridge: simple: add " Neil Armstrong
2025-09-02 9:23 ` Dmitry Baryshkov
2025-09-02 9:00 ` [PATCH v2 3/5] dt-bindings: phy: qcom,sc8280xp-qmp-usb43dp-phy: Document static lanes mapping Neil Armstrong
2025-09-02 9:30 ` Dmitry Baryshkov
2025-09-02 9:35 ` Neil Armstrong
2025-09-02 9:46 ` Dmitry Baryshkov
2025-09-02 10:05 ` Neil Armstrong
2025-09-02 12:22 ` Dmitry Baryshkov
2025-09-02 12:29 ` Neil Armstrong [this message]
2025-09-02 11:50 ` Konrad Dybcio
2025-09-02 11:59 ` Neil Armstrong
2025-09-03 7:07 ` Krzysztof Kozlowski
2025-09-03 7:49 ` Neil Armstrong
2025-09-02 9:00 ` [PATCH v2 4/5] phy: qcom: qmp-combo: get the static lanes mapping from DT Neil Armstrong
2025-09-02 9:00 ` [PATCH v2 5/5] arm64: dts: qcom: x1e78100-lenovo-thinkpad-t14s: add HDMI nodes Neil Armstrong
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=81b1e0b8-6a5b-4eb9-8f9d-fe9a52f0afcd@linaro.org \
--to=neil.armstrong@linaro.org \
--cc=Laurent.pinchart@ideasonboard.com \
--cc=airlied@gmail.com \
--cc=andersson@kernel.org \
--cc=andrzej.hajda@intel.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=jernej.skrabec@gmail.com \
--cc=jonas@kwiboo.se \
--cc=kishon@kernel.org \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=rfoss@kernel.org \
--cc=robh@kernel.org \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
--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®