Devicetree
 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; 5+ 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] 5+ 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 15:22   ` sashiko-bot
  2026-12-03 14:59 ` [PATCH 2/2] arm64: dts: qcom: kaanapali: Set the peripheral ID of the DCC TPDM Joonhoe Kim
  1 sibling, 1 reply; 5+ 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] 5+ 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
  2026-12-03 15:13   ` sashiko-bot
  1 sibling, 1 reply; 5+ 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] 5+ messages in thread

* Re: [PATCH 2/2] arm64: dts: qcom: kaanapali: Set the peripheral ID of the DCC TPDM
  2026-12-03 14:59 ` [PATCH 2/2] arm64: dts: qcom: kaanapali: Set the peripheral ID of the DCC TPDM Joonhoe Kim
@ 2026-12-03 15:13   ` sashiko-bot
  0 siblings, 0 replies; 5+ messages in thread
From: sashiko-bot @ 2026-12-03 15:13 UTC (permalink / raw)
  To: Joonhoe Kim; +Cc: devicetree, robh, conor+dt

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] arm64: dts: qcom: false periphid on kaanapali DCC TPDM
  instead of status
--

commit c90eec4913452e0ca019a7af233f8e46ca823786
Author: Joonhoe Kim <26rote@gmail.com>

arm64: dts: qcom: kaanapali: Set the peripheral ID of the DCC TPDM

This commit adds arm,primecell-periphid = <0x000f0e00> to the DCC TPDM
node in kaanapali.dtsi to avoid reading its CoreSight ID registers on
boot.

Link: https://github.com/joonhoekim/tb323fu-linux/issues/9

> 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>;

[Severity: Medium]
Should this node use status = "disabled" (or status = "fail") instead of
a non-matching arm,primecell-periphid?

Hardcoding 0x000f0e00 in kaanapali.dtsi misdescribes the hardware and
breaks coresight-tpdm binding on boards where 0x10003000 is accessible.
Commit c8ea5f41b421 ("Coresight: Narrow down the matching range of tpdm")
specifically excluded 0x000f0e00 to avoid colliding with other components.

Because tpdm@10003000 stays available, of_amba_device_create() still
registers an active AMBA device and reserves its MMIO region.  Binding
coresight-tpdm via driver_override bypasses the ID check in amba_match(),
so tpdm_datasets_setup() reads CORESIGHT_PERIPHIDR0 and hangs the bus.

Using status = "disabled" (or status = "fail", as in shikra.dtsi and
hamoa.dtsi) makes of_amba_device_create() skip device creation cleanly
and lets working boards re-enable it with status = "okay".

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261203145953.1889-1-26rote@gmail.com?part=2

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

* Re: [PATCH 1/2] dt-bindings: arm: qcom,coresight-tpdm: Allow arm,primecell-periphid
  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
  0 siblings, 0 replies; 5+ messages in thread
From: sashiko-bot @ 2026-12-03 15:22 UTC (permalink / raw)
  To: Joonhoe Kim; +Cc: devicetree, robh, conor+dt

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] dt-bindings: qcom,coresight-tpdm adds untyped local
  arm,primecell-periphid
- [Medium] dt-bindings: coresight-tpdm: tpdm_datasets_setup() still
  reads PIDR0 MMIO
--

commit 0eb8cc282c7ae2ede9baea9c1d96498f6522d2bc
Author: Joonhoe Kim <26rote@gmail.com>

dt-bindings: arm: qcom,coresight-tpdm: Allow arm,primecell-periphid

This commit adds arm,primecell-periphid to the Qualcomm CoreSight TPDM
devicetree binding so a fixed peripheral ID can be specified when the
device's ID registers cannot be read.

> 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.

[Severity: Medium]
Does declaring arm,primecell-periphid here without a type or $ref fail
dt_binding_check?

Because it is a vendor-prefixed property without a standard unit suffix
and this schema does not reference primecell.yaml, dt-doc-validate
requires an explicit type.  Listing it in top-level properties also allows
an untyped property on non-AMBA qcom,coresight-static-tpdm nodes.

Like Documentation/devicetree/bindings/arm/arm,coresight-etm.yaml, this
schema could conditionally reference /schemas/arm/primecell.yaml# in allOf
for AMBA compatibles and use unevaluatedProperties: false.

[Severity: Medium]
Can setting arm,primecell-periphid to a real TPDM ID still hang the bus on
probe?

While of_amba_device_create() lets the AMBA bus skip amba_read_periphid(),
any ID matching dynamic_tpdm_ids binds dynamic_tpdm_driver and reaches
dynamic_tpdm_probe() -> tpdm_probe() -> tpdm_datasets_setup(), which still
reads CORESIGHT_PERIPHIDR0 (offset 0xfe0, the same PID0 register) via MMIO.

Commit "arm64: dts: qcom: kaanapali: Set the peripheral ID of the DCC TPDM"
only avoids this by passing a non-matching ID (0x000f0e00) so the driver
never probes.  Either tpdm_datasets_setup() should read the dataset bits
from adev->periphid, or inaccessible TPDM nodes should use status = "fail".

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261203145953.1889-1-26rote@gmail.com?part=1

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

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

Thread overview: 5+ 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 15:22   ` sashiko-bot
2026-12-03 14:59 ` [PATCH 2/2] arm64: dts: qcom: kaanapali: Set the peripheral ID of the DCC TPDM Joonhoe Kim
2026-12-03 15:13   ` sashiko-bot

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