Devicetree
 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 v3 1/5] dt-bindings: timer: Add SpacemiT K1 timer
Date: Wed, 25 Nov 2026 01:43:49 +0000	[thread overview]
Message-ID: <sashiko-outbox-232333@kernel.org> (raw)
In-Reply-To: <20261125-spacemit-soc-timer-v3-1-e6390f3ae4a6@linux.spacemit.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] dt-bindings: timer: interrupts listed before clocks in
  spacemit,k1-timer.yaml
--

commit 16e785f5241b621458eff707f48ab8e02a62ce8d
Author: Troy Mitchell <troy.mitchell@linux.spacemit.com>

dt-bindings: timer: Add SpacemiT K1 timer

This commit adds a Device Tree binding schema for the SpacemiT K1 and K3
timer block.

> 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..b71785b8aa947
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/timer/spacemit,k1-timer.yaml
> @@ -0,0 +1,71 @@

[ ... ]

> +properties:
> +  compatible:
> +    oneOf:
> +      - const: spacemit,k1-timer
> +      - items:
> +          - const: spacemit,k3-timer
> +          - const: spacemit,k1-timer
> +
> +  reg:
> +    maxItems: 1
> +
> +  interrupts:
> +    minItems: 1
> +    items:
> +      - description: Counter 0 interrupt
> +      - description: Counter 1 interrupt
> +      - description: Counter 2 interrupt
> +
> +  clocks:
> +    items:
> +      - description: Functional clock
> +      - description: APB bus clock
> +
> +  clock-names:
> +    items:
> +      - const: func
> +      - const: bus
> +
> +  resets:
> +    maxItems: 1
> +
> +required:
> +  - compatible
> +  - reg
> +  - interrupts
> +  - clocks
> +  - clock-names
> +  - resets
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    #include <dt-bindings/clock/spacemit,k1-syscon.h>
> +
> +    timer@d4014000 {
> +        compatible = "spacemit,k1-timer";
> +        reg = <0xd4014000 0x100>;
> +        interrupts = <23>;
> +        clocks = <&syscon_apbc CLK_TIMERS1>,
> +                 <&syscon_apbc CLK_TIMERS1_BUS>;
> +        clock-names = "func", "bus";
> +        resets = <&syscon_apbc RESET_TIMERS1>;
> +    };

[Severity: Low]
This isn't a bug, but in DT binding schemas and example nodes, clocks and
clock-names come before interrupts (following the standard compatible, reg,
clocks, clock-names, interrupts order) in properties, required, and
examples.

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

  reply	other threads:[~2026-11-25  1:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25  1:38 [PATCH v3 0/5] Add SpacemiT K1/K3 SoC timer support Troy Mitchell
2026-11-25  1:38 ` [PATCH v3 1/5] dt-bindings: timer: Add SpacemiT K1 timer Troy Mitchell
2026-11-25  1:43   ` sashiko-bot [this message]
2026-11-25  1:38 ` [PATCH v3 2/5] clocksource/drivers/spacemit: Add K1 timer support Troy Mitchell
2026-11-25  1:38 ` [PATCH v3 3/5] riscv: dts: spacemit: Add the K1 APB timer Troy Mitchell
2026-11-25  1:38 ` [PATCH v3 4/5] riscv: dts: spacemit: Add the K3 " Troy Mitchell
2026-11-25  1:38 ` [PATCH v3 5/5] MAINTAINERS: Add entry for SpacemiT timer 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-232333@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox