Set the peripheral ID of the Kaanapali DCC TPDM
Subsystems (4)
cover Set the peripheral ID of the Kaanapali DCC TPDM
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
Signature · 1 line
2.53.0
PATCH 1/2 dt-bindings: arm: qcom,coresight-tpdm: Allow arm,primecell-periphid
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.
--- .../devicetree/bindings/arm/qcom,coresight-tpdm.yaml | 4 ++++ 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/arm/qcom,coresight-tpdm.yaml +4 -0
@@ -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
Signature · 1 line
2.53.0
PATCH 2/2 arm64: dts: qcom: kaanapali: Set the peripheral ID of the DCC TPDM
In reply to Joonhoe KimOn 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.
--- arch/arm64/boot/dts/qcom/kaanapali.dtsi | 1 + 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/qcom/kaanapali.dtsi +1 -0
@@ -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";
Signature · 1 line
2.53.0
[email protected]
AI reviewRe: [PATCH 2/2] arm64: dts: qcom: kaanapali: Set the peripheral ID of the DCC TPDM
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 --
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 <[email protected]>
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.
arch/arm64/boot/dts/qcom/kaanapali.dtsi stm_out: endpoint { · line 4764
Quoted 9 lines
arch/arm64/boot/dts/qcom/kaanapali.dtsi +1
-0@@ -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".
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
[email protected]
AI reviewRe: [PATCH 1/2] dt-bindings: arm: qcom,coresight-tpdm: Allow arm,primecell-periphid
In reply to Joonhoe KimThank 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…
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 <[email protected]>
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.
Documentation/devicetree/bindings/arm/qcom,coresight-tpdm.yaml properties: · line 88
Quoted 11 lines
Documentation/devicetree/bindings/arm/qcom,coresight-tpdm.yaml +3
-0@@ -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".
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Re: [PATCH 1/2] dt-bindings: arm: qcom,coresight-tpdm: Allow arm,primecell-periphid
From: Joonhoe Kim <[email protected]>
Quoted 2 lines · On Thu, Dec 03, 2026 at 03:22:31PM +0000, [email protected] wrote:
Does declaring arm,primecell-periphid here without a type or $ref fail
dt_binding_check?
It does not: dt_binding_check for this schema and dtbs_check for the Kaanapali boards pass, since the type comes from primecell.yaml. It does allow the property on qcom,coresight-static-tpdm nodes, though.
Quoted 2 lines
Either
tpdm_datasets_setup()should read the dataset bits
fromadev->periphid, or inaccessible TPDM nodes should use status = "fail".
Agreed. v2 will mark the node status = "fail", as shikra.dtsi does for its DCC TPDM, and drop this patch.
Re: [PATCH 2/2] arm64: dts: qcom: kaanapali: Set the peripheral ID of the DCC TPDM
In reply to [email protected]From: Joonhoe Kim <[email protected]>
Quoted 2 lines · On Thu, Dec 03, 2026 at 03:13:06PM +0000, [email protected] wrote:
Should this node use status = "disabled" (or status = "fail") instead of a non-matching arm,primecell-periphid?
Yes. The TPDM driver's ID was narrowed to 0x001f0e00 to keep components with ID 0x000f0e00 from matching it, so reusing that ID here is wrong. shikra.dtsi already marks its DCC TPDM status = "fail"; v2 will do the same and drop the binding patch.
Suzuki K Poulose
maintainerRe: [PATCH 1/2] dt-bindings: arm: qcom,coresight-tpdm: Allow arm,primecell-periphid
In reply to Joonhoe KimHi Rob, Krzystoff
Quoted 19 lines · Joonhoe Kim
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.yamlis not referenced because this binding also covers qcom,coresight-static-tpdm, which is not an AMBA device;primecell.yamlstill sets the property type for AMBA nodes.Signed-off-by Joonhoe Kim <[email protected]>--- .../devicetree/bindings/arm/qcom,coresight-tpdm.yaml | 4 ++++ 1 file changed, 4 insertions(+)Documentation/devicetree/bindings/arm/qcom,coresight-tpdm.yaml +0
-0
Documentation/devicetree/bindings/arm/qcom,coresight-tpdm.yaml properties: · line 89
Quoted 7 lines
Documentation/devicetree/bindings/arm/qcom,coresight-tpdm.yaml +4
-0@@ -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. +
Do we need such DT bindings changes ? This is indeed a documented property for AMBA (arm,primecell) and is used by the AMBA bus driver alone. What is the recommendation ?
Suzuki
Quoted 3 lines
Documentation/devicetree/bindings/arm/qcom,coresight-tpdm.yaml +0
-0clocks: maxItems: 1
Re: [PATCH 1/2] dt-bindings: arm: qcom,coresight-tpdm: Allow arm,primecell-periphid
Quoted 3 lines · Suzuki K Poulose
Do we need such DT bindings changes ? This is indeed a documented property for AMBA (arm,primecell) and is used by the AMBA bus driver alone. What is the recommendation ?
Hi Suzuki,
Not anymore. v2 marks the node status = "fail" instead, as shikra.dtsi does for its DCC TPDM, so this patch is dropped:
https://lore.kernel.org/all/[email protected]/
Thanks,
Joonhoe Kim
(Resent with the original Cc list; my first copy went to Suzuki only by mistake. Sorry for the duplicate.)