Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Jiayu Du" <duge1256@gmail.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [RFC PATCH 1/3] dt-bindings: thermal: Add SpacemiT K3 temperature sensor
Date: Fri, 04 Dec 2026 14:33:28 +0000	[thread overview]
Message-ID: <sashiko-outbox-249982@kernel.org> (raw)
In-Reply-To: <20261204142313.137015-2-duge1256@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] dt-bindings: thermal: single-cell interrupt specifier in K3
  binding example
--

commit d445d2d037cfe6e5e916d0e1b0155fe7c3e75680
Author: Jiayu Du <duge1256@gmail.com>

dt-bindings: thermal: Add SpacemiT K3 temperature sensor

This commit adds the Device Tree binding schema for the SpacemiT K3
on-die temperature sensor and registers it in MAINTAINERS.

> diff --git a/Documentation/devicetree/bindings/thermal/spacemit,k3-tsensor.yaml b/Documentation/devicetree/bindings/thermal/spacemit,k3-tsensor.yaml
> new file mode 100644
> index 0000000000000..9eb72512bdd6e
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/thermal/spacemit,k3-tsensor.yaml

[ ... ]

> +examples:
> +  - |
> +    #include <dt-bindings/clock/spacemit,k3-clocks.h>
> +    #include <dt-bindings/reset/spacemit,k3-resets.h>
> +
> +    thermal@d4018000 {
> +        compatible = "spacemit,k3-tsensor";
> +        reg = <0xd4018000 0x100>;
> +        clocks = <&syscon_apbc CLK_APBC_TSEN>,
> +                 <&syscon_apbc CLK_APBC_TSEN_BUS>;
> +        clock-names = "core", "bus";
> +        interrupts = <61>;

[Severity: Low]
Should this example use a two-cell interrupt specifier instead of <61>?

SpacemiT K3 uses the RISC-V APLIC interrupt controller (saplic in
arch/riscv/boot/dts/spacemit/k3.dtsi), which requires #interrupt-cells = <2>
per riscv,aplic.yaml.  Copying this single-cell example into a K3 DTS fails
dtbs_check and interrupt parsing.

Including dt-bindings/interrupt-controller/irq.h and using a two-cell
specifier such as <61 IRQ_TYPE_LEVEL_HIGH> would match the K3 hardware.

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

  reply	other threads:[~2026-12-04 14:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 14:23 [RFC PATCH 0/3] Add polling temperature monitoring for SpacemiT K3 Jiayu Du
2026-12-04 14:23 ` [RFC PATCH 1/3] dt-bindings: thermal: Add SpacemiT K3 temperature sensor Jiayu Du
2026-12-04 14:33   ` sashiko-bot [this message]
2026-12-04 14:23 ` [RFC PATCH 2/3] thermal/drivers/spacemit/k3: Add temperature sensor support Jiayu Du
2026-12-04 14:23 ` [RFC PATCH 3/3] riscv: dts: spacemit: Describe K3 temperature monitoring Jiayu Du
2026-12-04 14:57   ` 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-249982@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=duge1256@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