Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Prakriti Sharma" <Prakriti.Sharma@synopsys.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v2 1/5] spi: dt-bindings: snps,dwc-ssi-2.02a: Add DWC SSI v2.02a controller binding
Date: Mon, 30 Nov 2026 02:47:46 +0000	[thread overview]
Message-ID: <sashiko-outbox-240265@kernel.org> (raw)
In-Reply-To: <ba68924289d632fd49c4e1a42459e3a426edfd2b.1795683279.git.prakriti@synopsys.com>

Thank you for your contribution! Sashiko AI review found 3 potential
issues to consider:
- [Medium] dt-bindings: spi: snps,dwc-ssi-2.02a: XIP properties encode
  OS policy
- [Low] dt-bindings: spi: snps,dwc-ssi-2.02a: redundant word binding in
  subject
- [Low] dt-bindings: spi: snps,dwc-ssi-2.02a: interrupts ordered before
  clocks
--

commit e008bf8dcdd6fda311d76264fb0cb3d47975ceeb
Author: Siddhant Kumar <sidkumar@synopsys.com>

spi: dt-bindings: snps,dwc-ssi-2.02a: Add DWC SSI v2.02a controller binding

This commit adds the Device Tree binding schema for the Synopsys DesignWare
SSI Gen2 (DWC_ssi v2.02a) SPI controller and adds a corresponding entry in
MAINTAINERS.

> spi: dt-bindings: snps,dwc-ssi-2.02a: Add DWC SSI v2.02a controller binding

[Severity: Low]
The "dt-bindings:" prefix already indicates that this patch adds a binding,
so the trailing word "binding" in the subject line is redundant and can be
dropped.

> diff --git a/Documentation/devicetree/bindings/spi/snps,dwc-ssi-2.02a.yaml b/Documentation/devicetree/bindings/spi/snps,dwc-ssi-2.02a.yaml
> new file mode 100644
> index 0000000000000..7294c9b2694b4
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/spi/snps,dwc-ssi-2.02a.yaml
> @@ -0,0 +1,191 @@

[ ... ]

> +  interrupts:
> +    description: |
> +      The DWC SSI Gen2 IP exposes per-source interrupt outputs alongside a
> +      combined ssi_intr. SoC integrators may route either the combined line,
> +      the individual lines, or any subset. Provide either a single combined
> +      IRQ, or one entry per declared name in interrupt-names (matching order).
> +    minItems: 1
> +    maxItems: 4
> +
> +  interrupt-names:
> +    description: |
> +      Optional. Naming for each physical IRQ line when the SoC breaks the
> +      controller's interrupt output into multiple wires. Each name is gated
> +      by its corresponding ISR bit in the controller:
> +        "rxf"  - RX FIFO threshold  (SSI_RXF_INTR, ISR.RXFI)
> +        "txe"  - TX FIFO threshold  (SSI_TXE_INTR, ISR.TXEI)
> +        "txaf" - TX FIFO almost full (ssi_txaf_intr, ISR.TXAFI)
> +        "wsf"  - Write status fail   (spi_wr_status_fail_intr, ISR.SPIWSFI)
> +      Omit this property if the SoC combines all sources onto one wire.
> +    minItems: 1
> +    maxItems: 4
> +    items:
> +      enum: [rxf, txe, txaf, wsf]
> +
> +  clocks:
> +    minItems: 1
> +    items:
> +      - description: SSI controller reference clock
> +      - description: APB interface clock
> +
> +  clock-names:
> +    minItems: 1
> +    items:
> +      - const: ssi_clk
> +      - const: pclk

[Severity: Low]
To follow the canonical DT schema property ordering (compatible, reg,
reg-names, clocks, clock-names, interrupts, interrupt-names), clocks and
clock-names should be placed before interrupts and interrupt-names here in
properties, as well as in the required list and the example node below.

[ ... ]

> +  snps,xip-enabled:
> +    type: boolean
> +    description: |
> +      Enable the controller XIP engine for memory-mapped flash access through
> +      the second reg window (xip_mem). Requires that window to be described.
> +
> +  snps,xip-continuous-mode:
> +    type: boolean
> +    description: |
> +      Set XIP_CTRL continuous-transfer mode so the controller omits the
> +      command byte on subsequent sequential reads while CS stays asserted.
> +      The attached flash must support continuous read (for example Fast Read
> +      Quad I/O with mode bits). Requires snps,xip-enabled.
> +
> +  snps,xip-prefetch-mode:
> +    type: boolean
> +    description: |
> +      Set XIP_CTRL hardware prefetch so the controller may fetch the next
> +      line after a completed XIP access. Requires snps,xip-enabled.

[Severity: Medium]
Do these three properties encode driver runtime policy rather than hardware
characteristics?

Whether the SoC wires an XIP memory-mapped window is already described by
the presence of the xip_mem reg entry, making snps,xip-enabled a software
switch for whether the driver uses direct mapping over indirect FIFO
transfers.  Similarly, snps,xip-continuous-mode depends on the attached
flash device's protocol capabilities, and snps,xip-prefetch-mode is a
workload-dependent tuning knob rather than a fixed property of the
controller integration.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/cover.1795683279.git.prakriti@synopsys.com?part=1

  reply	other threads:[~2026-11-30  2:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30  2:39 [PATCH v2 0/5] spi: dw-g2: add Synopsys DWC SSI v2.02a controller support Prakriti Sharma
2026-11-30  2:39 ` [PATCH v2 1/5] spi: dt-bindings: snps,dwc-ssi-2.02a: Add DWC SSI v2.02a controller binding Prakriti Sharma
2026-11-30  2:47   ` sashiko-bot [this message]
2026-11-30  2:39 ` [PATCH v2 2/5] spi: dw-g2: Add support for Synopsys DWC SSI v2.02a controller Prakriti Sharma
2026-11-30  2:39 ` [PATCH v2 3/5] spi: dw-g2: Add support for indirect read and write for spi-mem transfers Prakriti Sharma
2026-11-30  2:39 ` [PATCH v2 4/5] spi: dw-g2: Add support for SPI-NAND devices Prakriti Sharma
2026-11-30  2:39 ` [PATCH v2 5/5] spi: dw-g2: Add support for memory-mapped XIP Prakriti Sharma

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-240265@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=Prakriti.Sharma@synopsys.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --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