Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Jeroen Trappers" <jeroen.trappers@gmail.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 1/3] dt-bindings: thermal: Add Apple T7000 die temperature sensors
Date: Thu, 03 Dec 2026 16:12:37 +0000	[thread overview]
Message-ID: <sashiko-outbox-248181@kernel.org> (raw)
In-Reply-To: <20261203155600.3911447-2-jeroen.trappers@gmail.com>

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] dt-bindings: thermal: merge of disjoint PMGR and TCC blocks
  into one DT node
- [Low] dt-bindings: thermal: unjustified minItems: 1 makes TCC page
  optional
--

commit 98e2e31e2df770c267988433fedc4f9f8b671b26
Author: Jeroen Trappers <jeroen.trappers@gmail.com>

dt-bindings: thermal: Add Apple T7000 die temperature sensors

This commit adds a Devicetree binding schema for the Apple T7000 (A8) die
temperature sensors and a corresponding MAINTAINERS entry.

> diff --git a/Documentation/devicetree/bindings/thermal/apple,t7000-thermal.yaml b/Documentation/devicetree/bindings/thermal/apple,t7000-thermal.yaml
> new file mode 100644
> index 0000000000000..c5418ba9697b0
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/thermal/apple,t7000-thermal.yaml
> @@ -0,0 +1,65 @@

[ ... ]

> +properties:
> +  compatible:
> +    const: apple,t7000-thermal
> +
> +  reg:
> +    minItems: 1
> +    items:
> +      - description: power manager (SOC) sensor page
> +      - description: CPU complex (TCC) sensor page
> +
> +  reg-names:
> +    minItems: 1
> +    items:
> +      - const: soc
> +      - const: tcc

[Severity: Medium]
Should the power manager and CPU complex sensor pages be modeled as two
separate DT nodes instead of one composite thermal-sensor node?

In arch/arm64/boot/dts/apple/t7000.dtsi these are physically disjoint
subsystems about 190 MiB apart: the power manager sits at 0x20e000000
and the CPU complex at 0x202220000.  The two blocks have independent
register layouts and no shared hardware state.

Merging independent IP blocks into one node to keep Apple's flat 0..4
numbering locks in a DT ABI that makes per-block resources (clocks,
interrupts, power-domains) awkward to attach and does not scale cleanly
to sibling SoCs with different CPU cluster counts.

Each block can be its own thermal-sensor node with local sensor IDs and
distinct compatibles for the different register layouts.

> +
> +  "#thermal-sensor-cells":
> +    const: 1
> +    description: |
> +      The sensor ID, Apple's tempsensor index:
> +        0 = power manager (SOC) sensor 0
> +        1 = power manager (SOC) sensor 1
> +        2 = CPU complex (TCC) sensor 0
> +        3 = CPU complex (TCC) sensor 1
> +        4 = CPU complex (TCC) sensor 2
> +      IDs 2 to 4 need the "tcc" page.

[Severity: Low]
If both pages remain in a single apple,t7000-thermal node, should reg
and reg-names drop minItems: 1?

The binding matches only one fixed SoC compatible and documents sensors
0..4 across both pages, without describing any hardware variant that
lacks the tcc sensors.  Allowing the tcc entry to be omitted accepts
nodes where documented sensor IDs 2..4 cannot work.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261203155600.3911447-1-jeroen.trappers@gmail.com?part=1

  reply	other threads:[~2026-12-03 16:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03 15:55 [PATCH 0/3] Apple T7000 (A8) die temperature sensors and thermal zones Jeroen Trappers
2026-12-03 15:55 ` [PATCH 1/3] dt-bindings: thermal: Add Apple T7000 die temperature sensors Jeroen Trappers
2026-12-03 16:12   ` sashiko-bot [this message]
2026-12-03 15:55 ` [PATCH 2/3] thermal/drivers/apple: Add T7000 (A8) on-die temperature sensor driver Jeroen Trappers
2026-12-03 16:32   ` sashiko-bot
2026-12-03 15:56 ` [PATCH 3/3] arm64: dts: apple: t7000: Add die temperature sensors and thermal zones Jeroen Trappers
2026-12-03 16:18   ` 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=sashiko-outbox-248181@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jeroen.trappers@gmail.com \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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