Devicetree
 help / color / mirror / Atom feed
* [PATCH 0/2] arm64: dts: qcom: sm8750: describe the TNOC AMBA periphid
@ 2026-11-27 11:31 Qianhui Xu
  2026-11-27 11:31 ` [PATCH 1/2] dt-bindings: arm: qcom,coresight-tnoc: allow the " Qianhui Xu
  2026-11-27 11:31 ` [PATCH 2/2] arm64: dts: qcom: sm8750: describe the TNOC " Qianhui Xu
  0 siblings, 2 replies; 4+ messages in thread
From: Qianhui Xu @ 2026-11-27 11:31 UTC (permalink / raw)
  To: andersson
  Cc: konradybcio, robh, krzk+dt, conor+dt, linux-arm-msm, devicetree,
	linux-kernel

Hi,

on SM8750 the Trace NOC at 109ab000 is an AMBA device, but without
"arm,primecell-periphid" the AMBA core reads its ID as 0x00000000, so
coresight-tnoc (amba_ids 0x000f0c00/0x001f0c00, mask 0x00ffff00) never
matches and the node is left as "deferred probe pending: (reason
unknown)".  The value below is the one the driver expects for this
integration; sm8250 describes its funnel the same way.

Changing the DTS alone is not enough: qcom,coresight-tnoc.yaml sets
additionalProperties: false without referencing the PrimeCell schema, so
dtbs_check rejects the property.  1/2 adds the reference the other
CoreSight AMBA bindings use and switches the root to
unevaluatedProperties: false, 2/2 adds the property.

Tested on SM8750 hardware: with both patches the TNOC binds to
coresight-trace-noc and no Coresight AMBA device remains unbound (0 of
28), where the TNOC itself stayed unbound before.  dtbs_check on
sm8750-mtp.dtb and
sm8750-qrd.dtb is silent, dt_binding_check passes.

*** AI-assistance disclosure ***
This series was prepared with the help of an LLM coding assistant.  The
author reviewed every line and verified the binding on hardware.

Signed-off-by: Qianhui Xu <xiaqinghuan@mail.ustc.edu.cn>

Qianhui Xu (2):
  dt-bindings: arm: qcom,coresight-tnoc: allow the AMBA periphid
  arm64: dts: qcom: sm8750: describe the TNOC AMBA periphid

 .../bindings/arm/qcom,coresight-tnoc.yaml     | 5 ++++-
 arch/arm64/boot/dts/qcom/sm8750.dtsi          | 1 +
 2 files changed, 5 insertions(+), 1 deletion(-)

-- 
2.51.0


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

* [PATCH 1/2] dt-bindings: arm: qcom,coresight-tnoc: allow the AMBA periphid
  2026-11-27 11:31 [PATCH 0/2] arm64: dts: qcom: sm8750: describe the TNOC AMBA periphid Qianhui Xu
@ 2026-11-27 11:31 ` Qianhui Xu
  2026-11-27 11:31 ` [PATCH 2/2] arm64: dts: qcom: sm8750: describe the TNOC " Qianhui Xu
  1 sibling, 0 replies; 4+ messages in thread
From: Qianhui Xu @ 2026-11-27 11:31 UTC (permalink / raw)
  To: andersson
  Cc: konradybcio, robh, krzk+dt, conor+dt, linux-arm-msm, devicetree,
	linux-kernel

TNOC is an AMBA device, so its node may need "arm,primecell-periphid"
when the ID read back by the AMBA core does not match what the driver
expects (SM8750 reads 0x00000000).  The binding sets
additionalProperties: false without pulling in the PrimeCell schema, so
the property is rejected by dtbs_check.

Reference /schemas/arm/primecell.yaml# like the other CoreSight AMBA
bindings and switch the root to unevaluatedProperties: false so the
referenced properties are accepted while unknown ones are still
rejected.

*** AI-assistance disclosure ***
This patch was prepared with the help of an LLM coding assistant.  The
author reviewed every line and ran dt_binding_check and dtbs_check.

Signed-off-by: Qianhui Xu <xiaqinghuan@mail.ustc.edu.cn>
---
 .../devicetree/bindings/arm/qcom,coresight-tnoc.yaml         | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/arm/qcom,coresight-tnoc.yaml b/Documentation/devicetree/bindings/arm/qcom,coresight-tnoc.yaml
index 37147124449e5..279ce384caa57 100644
--- a/Documentation/devicetree/bindings/arm/qcom,coresight-tnoc.yaml
+++ b/Documentation/devicetree/bindings/arm/qcom,coresight-tnoc.yaml
@@ -32,6 +32,9 @@ select:
   required:
     - compatible
 
+allOf:
+  - $ref: /schemas/arm/primecell.yaml#
+
 properties:
   $nodename:
     pattern: "^tn(@[0-9a-f]+)$"
@@ -78,7 +81,7 @@ required:
   - in-ports
   - out-ports
 
-additionalProperties: false
+unevaluatedProperties: false
 
 examples:
   - |
-- 
2.53.0


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

* [PATCH 2/2] arm64: dts: qcom: sm8750: describe the TNOC AMBA periphid
  2026-11-27 11:31 [PATCH 0/2] arm64: dts: qcom: sm8750: describe the TNOC AMBA periphid Qianhui Xu
  2026-11-27 11:31 ` [PATCH 1/2] dt-bindings: arm: qcom,coresight-tnoc: allow the " Qianhui Xu
@ 2026-11-27 11:31 ` Qianhui Xu
  2026-11-27 11:41   ` sashiko-bot
  1 sibling, 1 reply; 4+ messages in thread
From: Qianhui Xu @ 2026-11-27 11:31 UTC (permalink / raw)
  To: andersson
  Cc: konradybcio, robh, krzk+dt, conor+dt, linux-arm-msm, devicetree,
	linux-kernel

The trace NOC at 109ab000 is an AMBA device, but without
"arm,primecell-periphid" the AMBA core reads its ID as 0x00000000 on
this platform, so coresight-tnoc (which matches 0x000f0c00/0x001f0c00
with mask 0x00ffff00) never probes and the node is reported as
"deferred probe pending: (reason unknown)".

The value is the one the driver expects for this integration and the
same way sm8250 describes its funnel.  Add it so the TNOC binds.

*** AI-assistance disclosure ***
This patch was prepared with the help of an LLM coding assistant.  The
author reviewed every line and verified the binding on hardware.

Signed-off-by: Qianhui Xu <xiaqinghuan@mail.ustc.edu.cn>
---
 arch/arm64/boot/dts/qcom/sm8750.dtsi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/qcom/sm8750.dtsi b/arch/arm64/boot/dts/qcom/sm8750.dtsi
index 01eee5c2adcce..585a22eccb303 100644
--- a/arch/arm64/boot/dts/qcom/sm8750.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm8750.dtsi
@@ -5366,6 +5366,7 @@ tpdm_rdpm_cmb2_out: endpoint {
 		tn@109ab000 {
 			compatible = "qcom,coresight-tnoc", "arm,primecell";
 			reg = <0x0 0x109ab000 0x0 0x4200>;
+			arm,primecell-periphid = <0x000f0c00>;
 
 			clocks = <&aoss_qmp>;
 			clock-names = "apb_pclk";
-- 
2.53.0


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

* Re: [PATCH 2/2] arm64: dts: qcom: sm8750: describe the TNOC AMBA periphid
  2026-11-27 11:31 ` [PATCH 2/2] arm64: dts: qcom: sm8750: describe the TNOC " Qianhui Xu
@ 2026-11-27 11:41   ` sashiko-bot
  0 siblings, 0 replies; 4+ messages in thread
From: sashiko-bot @ 2026-11-27 11:41 UTC (permalink / raw)
  To: Qianhui Xu; +Cc: devicetree, robh, conor+dt

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] arm64: dts: qcom: sm8750: missing Fixes trailer for tn@109ab000
  probe fix
--

commit 371c99c386c64a78dc9fc7007e0a244dc58f9483
Author: Qianhui Xu <xiaqinghuan@mail.ustc.edu.cn>

> arm64: dts: qcom: sm8750: describe the TNOC AMBA periphid
>
> The trace NOC at 109ab000 is an AMBA device, but without
> "arm,primecell-periphid" the AMBA core reads its ID as 0x00000000 on
> this platform, so coresight-tnoc (which matches 0x000f0c00/0x001f0c00
> with mask 0x00ffff00) never probes and the node is reported as
> "deferred probe pending: (reason unknown)".
>
> The value is the one the driver expects for this integration and the
> same way sm8250 describes its funnel.  Add it so the TNOC binds.
>
> *** AI-assistance disclosure ***
> This patch was prepared with the help of an LLM coding assistant.  The
> author reviewed every line and verified the binding on hardware.
>
> Signed-off-by: Qianhui Xu <xiaqinghuan@mail.ustc.edu.cn>

[Severity: Low]
This fixes probing of the tn@109ab000 node on SM8750.  Should this
include:

  Fixes: ebd1eb365cae ("arm64: qcom: dts: sm8750: add coresight nodes")

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261127113158.932414-1-xiaqinghuan@mail.ustc.edu.cn?part=2

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

end of thread, other threads:[~2026-11-27 11:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-27 11:31 [PATCH 0/2] arm64: dts: qcom: sm8750: describe the TNOC AMBA periphid Qianhui Xu
2026-11-27 11:31 ` [PATCH 1/2] dt-bindings: arm: qcom,coresight-tnoc: allow the " Qianhui Xu
2026-11-27 11:31 ` [PATCH 2/2] arm64: dts: qcom: sm8750: describe the TNOC " Qianhui Xu
2026-11-27 11:41   ` sashiko-bot

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