Linux-ARM-Kernel Archive on lore.kernel.org
 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 2/7] arm64: dts: qcom: c630: Use LN_BB_CLK2 as the eDP bridge reference clock
Date: Wed, 11 Nov 2026 12:53:06 +0100	[thread overview]
Message-ID: <20261111115303.3749380-11-ardb+git@google.com> (raw)
In-Reply-To: <20261111115303.3749380-9-ardb+git@google.com>

From: Ard Biesheuvel <ardb@kernel.org>

The SN65DSI86 eDP bridge on the Yoga C630 is described as being clocked by
an always-on fixed 19.2 MHz reference clock. However, as on the SDM845
reference design (Cheza), its REFCLK appears to be fed by the LN_BB_CLK2
output of the PMIC, which also serves as the master clock of the WCD9340
audio codec.

As nothing tells Linux that the bridge depends on LN_BB_CLK2, the clock
only runs when the codec happens to have it enabled, and the WCD934x
driver only enables it on demand. If the bridge is brought up while
LN_BB_CLK2 is off or being toggled, e.g., when the display stack probes
before the codec, or while the codec is being initialized, all AUX
transfers fail and the DP PLL does not lock, leaving the panel dark:

  ti_sn65dsi86 10-002c: Can't read lane count (-110); assuming 4
  ti_sn65dsi86 10-002c: Can't read eDP rev (-110), assuming 1.1
  ti_sn65dsi86 10-002c: Can't read max rate (-110); assuming 5.4 GHz
  ti_sn65dsi86 10-002c: DP_PLL_LOCK polling failed (-110)

So describe the actual clock instead, so that the bridge driver keeps it
enabled for as long as the bridge is powered up.

Fixes: 956e9c85f47b ("arm64: dts: qcom: c630: Define eDP bridge and panel")
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
---
 arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

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 9d38ae83c979..a4a573ea7e4a 100644
--- a/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts
+++ b/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts
@@ -97,13 +97,6 @@ sw_edp_1p2: edp-1p2-regulator {
 		vin-supply = <&vreg_l2a_1p2>;
 	};
 
-	sn65dsi86_refclk: sn65dsi86-refclk {
-		compatible = "fixed-clock";
-		#clock-cells = <0>;
-
-		clock-frequency = <19200000>;
-	};
-
 	vph_pwr: regulator-vph-pwr {
 		compatible = "regulator-fixed";
 		regulator-name = "vph_pwr";
@@ -528,7 +521,7 @@ sn65dsi86: bridge@2c {
 		vpll-supply = <&vreg_l14a_1p88>;
 		vccio-supply = <&vreg_l14a_1p88>;
 
-		clocks = <&sn65dsi86_refclk>;
+		clocks = <&rpmhcc RPMH_LN_BB_CLK2>;
 		clock-names = "refclk";
 
 		no-hpd;
-- 
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 ` Ard Biesheuvel [this message]
2026-11-11 12:43   ` [PATCH 2/7] arm64: dts: qcom: c630: Use LN_BB_CLK2 as the eDP bridge reference clock Dmitry Baryshkov
2026-11-11 13:15     ` Ard Biesheuvel
2026-11-11 13:45       ` Ard Biesheuvel
2026-11-11 11:53 ` [PATCH 3/7] arm64: dts: qcom: c630: Enable DisplayPort alt mode Ard Biesheuvel
2026-11-11 12:50   ` 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-11-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