Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
From: Ard Biesheuvel <ardb+git@google.com>
To: linux-arm-kernel@lists.infradead.org
Cc: Ard Biesheuvel <ardb@kernel.org>,
	Bjorn Andersson <andersson@kernel.org>,
	 Konrad Dybcio <konradybcio@kernel.org>,
	Abel Vesa <abelvesa@kernel.org>,
	 Dmitry Baryshkov <lumag@kernel.org>,
	linux-arm-msm@vger.kernel.org
Subject: [PATCH 3/7] arm64: dts: qcom: c630: Enable DisplayPort alt mode
Date: Wed, 11 Nov 2026 12:53:07 +0100	[thread overview]
Message-ID: <20261111115303.3749380-12-ardb+git@google.com> (raw)
In-Reply-To: <20261111115303.3749380-9-ardb+git@google.com>

From: Ard Biesheuvel <ardb@kernel.org>

The right-hand USB-C port supports DisplayPort alt mode. The EC takes care
of entering it, and ucsi_yoga_c630 already sets the orientation of the
combo PHY and passes the EC's DP hotplug events down the bridge chain. All
that is missing is the DisplayPort controller, which sdm845.dtsi already
connects to the combo PHY.

Limit it to two lanes. That is what the PHY provides alongside USB3 in its
default mode, and it matches pin assignment D, which the EC picked with
the monitor I tested. Four lanes would need the PHY to be switched to its
DP only mode, which nothing does on this platform.

Tested with a USB-C monitor: 1920x1200@60 over two lanes at HBR2, with the
monitor's USB3 hub working at the same time.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
---
 arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts b/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts
index a4a573ea7e4a..0645ab429177 100644
--- a/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts
+++ b/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts
@@ -589,6 +589,14 @@ &mdss {
 	status = "okay";
 };
 
+&mdss_dp {
+	status = "okay";
+};
+
+&mdss_dp_out {
+	data-lanes = <0 1>;
+};
+
 &mdss_dsi0 {
 	status = "okay";
 	vdda-supply = <&vreg_l26a_1p2>;
-- 
2.56.0.611.g1030f0b940-goog


  parent reply	other threads:[~2026-11-11 11:53 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-11 11:53 [PATCH 0/7] Lenovo Yoga C630 (sdm845) fixes Ard Biesheuvel
2026-11-11 11:53 ` [PATCH 1/7] arm64: dts: qcom: sdm845: Bump fastrpc shared DMA pool to 32MB for 16k pages Ard Biesheuvel
2026-11-11 14:42   ` Abel Vesa
2026-11-11 11:53 ` [PATCH 2/7] arm64: dts: qcom: c630: Use LN_BB_CLK2 as the eDP bridge reference clock Ard Biesheuvel
2026-11-11 12:43   ` Dmitry Baryshkov
2026-11-11 13:15     ` Ard Biesheuvel
2026-11-11 13:45       ` Ard Biesheuvel
2026-11-11 11:53 ` Ard Biesheuvel [this message]
2026-11-11 12:50   ` [PATCH 3/7] arm64: dts: qcom: c630: Enable DisplayPort alt mode Dmitry Baryshkov
2026-11-11 14:42   ` Abel Vesa
2026-11-11 11:53 ` [PATCH 4/7] arm64: dts: qcom: c630: Use the idle states from the ACPI tables Ard Biesheuvel
2026-11-11 12:56   ` Dmitry Baryshkov
2026-11-11 14:42   ` Abel Vesa
2026-11-11 11:53 ` [PATCH 5/7] arm64: dts: qcom: c630: Wait for the touchpad at resume Ard Biesheuvel
2026-11-11 12:22   ` Ard Biesheuvel
2026-11-11 12:58     ` Dmitry Baryshkov
2026-11-11 13:16       ` Ard Biesheuvel
2026-11-11 12:56   ` Dmitry Baryshkov
2026-11-11 11:53 ` [PATCH 6/7] platform: arm64: lenovo-yoga-c630: Disable the EC interrupt while suspended Ard Biesheuvel
2026-11-11 12:57   ` Dmitry Baryshkov
2026-11-11 11:53 ` [PATCH 7/7] platform: arm64: lenovo-yoga-c630: Expose the keyboard backlight as an LED Ard Biesheuvel

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=20261111115303.3749380-12-ardb+git@google.com \
    --to=ardb+git@google.com \
    --cc=abelvesa@kernel.org \
    --cc=andersson@kernel.org \
    --cc=ardb@kernel.org \
    --cc=konradybcio@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=lumag@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