The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH 0/2] Set the peripheral ID of the Kaanapali DCC TPDM
@ 2026-12-03 14:59 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 14:59 ` [PATCH 2/2] arm64: dts: qcom: kaanapali: Set the peripheral ID of the DCC TPDM Joonhoe Kim
  0 siblings, 2 replies; 3+ messages in thread
From: Joonhoe Kim @ 2026-12-03 14:59 UTC (permalink / raw)
  To: suzuki.poulose, mike.leach, james.clark, andersson, konradybcio
  Cc: robh, krzk+dt, conor+dt, leo.yan, jinlong.mao, tao.zhang, jie.gan,
	jingyi.wang, abelvesa, linux-arm-msm, coresight, linux-arm-kernel,
	devicetree, linux-kernel

On the Lenovo Y700 Gen 5 (TB323FU, Kaanapali) with recent vendor
firmware, the kernel hangs early in boot when the AMBA bus reads the
CoreSight ID registers of the DCC TPDM at 0x10003000. The vendor
devicetree sets arm,primecell-periphid on this node; patch 2 does the
same, and patch 1 allows the property in the TPDM binding.

Patch 1 can go through the CoreSight tree and patch 2 through the
Qualcomm tree; patch 2 needs patch 1 for dtbs_check. The series is
based on next-20261202, since the TPDM node was added by f73959d86c15
and is not in a release yet.

With the vendor value the upstream TPDM driver no longer binds to this
TPDM. If you would prefer 0x001f0e00, or disabling the node instead, I
can ask the users with that firmware to test it.

The board devicetree for this tablet is not upstream yet. The change
goes into kaanapali.dtsi because the vendor sets the property in its
SoC devicetree, for all boards.

On this tablet with firmware 18.0.12.104, where the read works, the
board boots with this change and the TPDM reports the fixed ID. Users
with firmware 18.0.12.187 (global) and ZUXOS 2.0.12.043 (China)
reported that the same change fixes the boot.

Joonhoe Kim (2):
  dt-bindings: arm: qcom,coresight-tpdm: Allow arm,primecell-periphid
  arm64: dts: qcom: kaanapali: Set the peripheral ID of the DCC TPDM

 .../devicetree/bindings/arm/qcom,coresight-tpdm.yaml          | 4 ++++
 arch/arm64/boot/dts/qcom/kaanapali.dtsi                       | 1 +
 2 files changed, 5 insertions(+)


base-commit: 799dd936553182df5770dde7f38d94c8337df75a
-- 
2.53.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/2] dt-bindings: arm: qcom,coresight-tpdm: Allow arm,primecell-periphid
  2026-12-03 14:59 [PATCH 0/2] Set the peripheral ID of the Kaanapali DCC TPDM Joonhoe Kim
@ 2026-12-03 14:59 ` Joonhoe Kim
  2026-12-03 14:59 ` [PATCH 2/2] arm64: dts: qcom: kaanapali: Set the peripheral ID of the DCC TPDM Joonhoe Kim
  1 sibling, 0 replies; 3+ messages in thread
From: Joonhoe Kim @ 2026-12-03 14:59 UTC (permalink / raw)
  To: suzuki.poulose, mike.leach, james.clark, andersson, konradybcio
  Cc: robh, krzk+dt, conor+dt, leo.yan, jinlong.mao, tao.zhang, jie.gan,
	jingyi.wang, abelvesa, linux-arm-msm, coresight, linux-arm-kernel,
	devicetree, linux-kernel

On the Lenovo Y700 Gen 5 (TB323FU) with recent firmware, reading the
CoreSight ID registers of the Kaanapali DCC TPDM hangs the bus. The AMBA
bus reads them to match a driver unless arm,primecell-periphid gives
the ID.

Allow the property. primecell.yaml is not referenced because this
binding also covers qcom,coresight-static-tpdm, which is not an AMBA
device; primecell.yaml still sets the property type for AMBA nodes.

Signed-off-by: Joonhoe Kim <26rote@gmail.com>
---
 .../devicetree/bindings/arm/qcom,coresight-tpdm.yaml          | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Documentation/devicetree/bindings/arm/qcom,coresight-tpdm.yaml b/Documentation/devicetree/bindings/arm/qcom,coresight-tpdm.yaml
index c7301f1b28c13..7eb49815c26c6 100644
--- a/Documentation/devicetree/bindings/arm/qcom,coresight-tpdm.yaml
+++ b/Documentation/devicetree/bindings/arm/qcom,coresight-tpdm.yaml
@@ -83,6 +83,10 @@ properties:
     description:
       Description of a coresight device.
 
+  arm,primecell-periphid:
+    description:
+      Fixed peripheral ID, for a TPDM whose ID registers cannot be read.
+
   clocks:
     maxItems: 1
 
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] arm64: dts: qcom: kaanapali: Set the peripheral ID of the DCC TPDM
  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 14:59 ` Joonhoe Kim
  1 sibling, 0 replies; 3+ messages in thread
From: Joonhoe Kim @ 2026-12-03 14:59 UTC (permalink / raw)
  To: suzuki.poulose, mike.leach, james.clark, andersson, konradybcio
  Cc: robh, krzk+dt, conor+dt, leo.yan, jinlong.mao, tao.zhang, jie.gan,
	jingyi.wang, abelvesa, linux-arm-msm, coresight, linux-arm-kernel,
	devicetree, linux-kernel

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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-12-03 15:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 14:59 ` [PATCH 2/2] arm64: dts: qcom: kaanapali: Set the peripheral ID of the DCC TPDM Joonhoe Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox