All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Troy Mitchell" <troy.mitchell@linux.spacemit.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v5 1/5] dt-bindings: timer: Add SpacemiT K1 timer
Date: Fri, 04 Dec 2026 06:13:07 +0000	[thread overview]
Message-ID: <sashiko-outbox-249190@kernel.org> (raw)
In-Reply-To: <20261204-spacemit-soc-timer-v5-1-c863b6ffc645@linux.spacemit.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] dt-bindings: timer: unexplained minItems: 1 for three-counter
  interrupts
--

commit 1d2f0b8c5b41df62c81fcfb51a55f9c7c56ffa38
Author: Troy Mitchell <troy.mitchell@linux.spacemit.com>

dt-bindings: timer: Add SpacemiT K1 timer

This commit adds the Devicetree binding schema for the SpacemiT K1 timer
block, with K3 supported via the K1 fallback compatible.

> diff --git a/Documentation/devicetree/bindings/timer/spacemit,k1-timer.yaml b/Documentation/devicetree/bindings/timer/spacemit,k1-timer.yaml
> new file mode 100644
> index 0000000000000..769cb78a84870
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/timer/spacemit,k1-timer.yaml
> @@ -0,0 +1,71 @@

[ ... ]

> +description:
> +  The timer block contains three 32-bit up counters, each with three match
> +  comparators and an interrupt output. Each counter can use the functional
> +  clock or the internal 32.768 kHz clock and supports free-running and
> +  periodic operation.

[ ... ]

> +  interrupts:
> +    minItems: 1
> +    items:
> +      - description: Counter 0 interrupt
> +      - description: Counter 1 interrupt
> +      - description: Counter 2 interrupt

[Severity: Low]
Should interrupts allow minItems: 1 when the description says each of the
three counters has an interrupt output?

Leaving a variable interrupt count unexplained (along with the single
interrupt in the example) encourages DTS nodes to omit Counter 1 and
Counter 2 interrupts based on current driver usage rather than hardware
wiring, contrary to Documentation/devicetree/bindings/example-schema.yaml.

If all three counter interrupts are physically wired, dropping minItems: 1
and listing all three in the example would keep the binding complete.  If
some instances or SoC variants wire fewer, the interrupts property should
document the hardware condition.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204-spacemit-soc-timer-v5-0-c863b6ffc645@linux.spacemit.com?part=1

  reply	other threads:[~2026-12-04  6:13 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  6:01 [PATCH v5 0/5] Add SpacemiT K1/K3 SoC timer support Troy Mitchell
2026-12-04  6:01 ` Troy Mitchell
2026-12-04  6:01 ` [PATCH v5 1/5] dt-bindings: timer: Add SpacemiT K1 timer Troy Mitchell
2026-12-04  6:01   ` Troy Mitchell
2026-12-04  6:13   ` sashiko-bot [this message]
2026-12-04  6:01 ` [PATCH v5 2/5] clocksource/drivers/spacemit: Add K1 timer support Troy Mitchell
2026-12-04  6:01   ` Troy Mitchell
2026-12-04  6:24   ` sashiko-bot
2026-12-04  6:01 ` [PATCH v5 3/5] riscv: dts: spacemit: Add the K1 APB timer Troy Mitchell
2026-12-04  6:01   ` Troy Mitchell
2026-12-04  6:01 ` [PATCH v5 4/5] riscv: dts: spacemit: Add the K3 " Troy Mitchell
2026-12-04  6:01   ` Troy Mitchell
2026-12-04  6:01 ` [PATCH v5 5/5] MAINTAINERS: Add entry for SpacemiT timer Troy Mitchell
2026-12-04  6:01   ` Troy Mitchell

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-249190@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=troy.mitchell@linux.spacemit.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.