Devicetree
 help / color / mirror / Atom feed
From: Joonhoe Kim <26rote@gmail.com>
To: suzuki.poulose@arm.com, mike.leach@arm.com,
	james.clark@linaro.org, andersson@kernel.org,
	konradybcio@kernel.org
Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
	leo.yan@arm.com, jinlong.mao@oss.qualcomm.com,
	tao.zhang@oss.qualcomm.com, jie.gan@oss.qualcomm.com,
	jingyi.wang@oss.qualcomm.com, abelvesa@kernel.org,
	linux-arm-msm@vger.kernel.org, coresight@lists.linaro.org,
	linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH 2/2] arm64: dts: qcom: kaanapali: Set the peripheral ID of the DCC TPDM
Date: Thu,  3 Dec 2026 23:59:53 +0900	[thread overview]
Message-ID: <20261203145953.1889-3-26rote@gmail.com> (raw)
In-Reply-To: <20261203145953.1889-1-26rote@gmail.com>

On the Lenovo Y700 Gen 5 (TB323FU) with recent firmware, reading the
CoreSight ID registers of the DCC TPDM at 0x10003000 hangs the bus. The
AMBA bus reads them to match a driver, so the boot stops there and the
watchdog resets the board. Older firmware on the same device allows the
read and returns 0x001f0e04.

The vendor devicetree for this SoC sets arm,primecell-periphid on this
node, so the registers are never read. Use the same value. The upstream
TPDM driver (0x001f0e00, mask 0x00ffff00) does not match it and no
longer binds to this TPDM. A value it matches would let its probe read
TPDM registers, which I could not test on the affected firmware.

Fixes: f73959d86c15 ("arm64: dts: qcom: kaanapali: add coresight nodes")
Suggested-by: OnickerMeow <277483795+OnickerMeow@users.noreply.github.com>
Link: https://github.com/joonhoekim/tb323fu-linux/issues/9
Signed-off-by: Joonhoe Kim <26rote@gmail.com>
---
 arch/arm64/boot/dts/qcom/kaanapali.dtsi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/qcom/kaanapali.dtsi b/arch/arm64/boot/dts/qcom/kaanapali.dtsi
index 132577d540bfb..ab87d6b7ad295 100644
--- a/arch/arm64/boot/dts/qcom/kaanapali.dtsi
+++ b/arch/arm64/boot/dts/qcom/kaanapali.dtsi
@@ -4761,6 +4761,7 @@ stm_out: endpoint {
 		tpdm@10003000 {
 			compatible = "qcom,coresight-tpdm", "arm,primecell";
 			reg = <0x0 0x10003000 0x0 0x1000>;
+			arm,primecell-periphid = <0x000f0e00>;
 
 			clocks = <&aoss_qmp>;
 			clock-names = "apb_pclk";
-- 
2.53.0


  parent reply	other threads:[~2026-12-03 15:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03 14:59 [PATCH 0/2] Set the peripheral ID of the Kaanapali DCC TPDM Joonhoe Kim
2026-12-03 14:59 ` [PATCH 1/2] dt-bindings: arm: qcom,coresight-tpdm: Allow arm,primecell-periphid Joonhoe Kim
2026-12-03 15:22   ` sashiko-bot
2026-12-03 14:59 ` Joonhoe Kim [this message]
2026-12-03 15:13   ` [PATCH 2/2] arm64: dts: qcom: kaanapali: Set the peripheral ID of the DCC TPDM sashiko-bot

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=20261203145953.1889-3-26rote@gmail.com \
    --to=26rote@gmail.com \
    --cc=abelvesa@kernel.org \
    --cc=andersson@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=coresight@lists.linaro.org \
    --cc=devicetree@vger.kernel.org \
    --cc=james.clark@linaro.org \
    --cc=jie.gan@oss.qualcomm.com \
    --cc=jingyi.wang@oss.qualcomm.com \
    --cc=jinlong.mao@oss.qualcomm.com \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=leo.yan@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mike.leach@arm.com \
    --cc=robh@kernel.org \
    --cc=suzuki.poulose@arm.com \
    --cc=tao.zhang@oss.qualcomm.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