From: Rob Herring <robh@kernel.org>
To: Prakriti Sharma <Prakriti.Sharma@synopsys.com>
Cc: Mark Brown <broonie@kernel.org>,
linux-spi@vger.kernel.org,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
devicetree@vger.kernel.org,
Philipp Zabel <p.zabel@pengutronix.de>,
linux-kernel@vger.kernel.org,
Siddhant Kumar <Siddhant.Kumar@synopsys.com>,
Jose Abreu <Jose.Abreu@synopsys.com>,
Nelson Costa <Nelson.Costa@synopsys.com>
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 10:41:06 -0600 [thread overview]
Message-ID: <20261130164106.GA872464-robh@kernel.org> (raw)
In-Reply-To: <ba68924289d632fd49c4e1a42459e3a426edfd2b.1795683279.git.prakriti@synopsys.com>
On Mon, Nov 30, 2026 at 08:09:35AM +0530, Prakriti Sharma wrote:
> From: Siddhant Kumar <sidkumar@synopsys.com>
>
> Add the Device Tree binding for the Synopsys DesignWare SSI Gen2
> (DWC_ssi v2.02a) SPI controller to enable support for this hardware.
> Describe the MMIO register region, the optional XIP memory-mapped region,
> interrupt topology, and properties for XIP, continuous read, and prefetch
> modes to guide SoC integrators and driver authors in describing hardware
> properly in Device Tree.
>
> This binding is required to support systems integrating the DWC SSI v2.02a
> controller, which features per-chip-select register banks and advanced SPI
> modes.
>
> Signed-off-by: Prakriti Sharma <prakriti@synopsys.com>
> Signed-off-by: Siddhant Kumar <sidkumar@synopsys.com>
> ---
> .../bindings/spi/snps,dwc-ssi-2.02a.yaml | 191 ++++++++++++++++++
> MAINTAINERS | 7 +
> 2 files changed, 198 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/spi/snps,dwc-ssi-2.02a.yaml
>
> 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 000000000000..7294c9b2694b
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/spi/snps,dwc-ssi-2.02a.yaml
> @@ -0,0 +1,191 @@
> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/spi/snps,dwc-ssi-2.02a.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Synopsys DesignWare SSI Gen2 SPI Controller
> +
> +maintainers:
> + - Siddhant Kumar <sidkumar@synopsys.com>
> + - Prakriti Sharma <prakriti@synopsys.com>
> +
> +description: |
No need for '|' here.
> + The Synopsys DesignWare SSI Gen2 (DWC_ssi v2.02a) is an enhanced SPI
> + controller featuring per-chip-select register banks, dedicated CS control,
> + and support for Standard/Dual/Quad/Octal SPI modes with DDR capability.
> +
> +properties:
> + compatible:
> + const: snps,dwc-ssi-2.02a
Is that the only version of the IP?
We generally don't allow only a IP compatible because there are
typically SoC specific quirks. If there's no SoC (or some FPGA
validation platform?) yet, you can do something like:
compatible:
items:
- not: {}
- const: snps,dwc-ssi-2.02a
> +
> + reg:
> + minItems: 1
> + items:
> + - description: SSI controller register space
> + - description: XIP memory-mapped window for direct flash access
> +
> + reg-names:
> + minItems: 1
> + items:
> + - const: ssi_base
> + - const: xip_mem
> +
> + interrupts:
> + description: |
Don't need '|'.
> + 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]
I would assume it's either 1 combined or all 4 interrupts, so define the
order.
items:
- const: rxf
- const: txe
- const: txaf
- const: wsf
And drop minItems/maxItems.
> +
> + clocks:
> + minItems: 1
> + items:
> + - description: SSI controller reference clock
> + - description: APB interface clock
> +
> + clock-names:
> + minItems: 1
> + items:
> + - const: ssi_clk
> + - const: pclk
> +
> + resets:
> + maxItems: 1
> +
> + num-cs:
> + minimum: 1
> + maximum: 4
> + description:
> + Number of chip selects supported by the controller.
> +
> + dmas:
> + items:
> + - description: TX DMA Channel
> + - description: RX DMA Channel
> +
> + dma-names:
> + items:
> + - const: tx
> + - const: rx
> +
> + rx-sample-delay-ns:
> + default: 0
> + description: |
> + Default value of the rx-sample-delay-ns property.
> + This value will be used if the property is not explicitly defined
> + for a SPI slave device.
> +
> + SPI Rx sample delay offset, unit is nanoseconds.
> + The delay from the default sample time before the actual sample of the
> + rxd input signal occurs. The "rx_sample_delay" is an optional feature
> + of the designware controller, and the upper limit is also subject to
> + controller configuration.
Drop. If this is needed, then it goes in the child nodes.
> +
> + 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.
This should be dropped. OS policy as sashiko points out. And you can
determine XIP capable by presence of the 2nd reg entry.
> +
> + 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.
That's a property of the flash, not the controller.
> +
> + 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.
Why would you not want this always?
> +
> +patternProperties:
> + "^.*@[0-9a-f]+$":
> + type: object
> + $ref: spi-peripheral-props.yaml
This is not how this schema is used. Drop.
> + additionalProperties: true
> +
> + properties:
> + reg:
> + minimum: 0
> + maximum: 3
> +
> + rx-sample-delay-ns:
> + description:
> + Per-device Rx sample delay override, in nanoseconds.
This property is already supported in spi-peripheral-props.yaml, so no
need to define it again here.
Rob
next prev parent reply other threads:[~2026-11-30 16:41 UTC|newest]
Thread overview: 8+ 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 13:59 ` Rob Herring (Arm)
2026-11-30 16:41 ` Rob Herring [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=20261130164106.GA872464-robh@kernel.org \
--to=robh@kernel.org \
--cc=Jose.Abreu@synopsys.com \
--cc=Nelson.Costa@synopsys.com \
--cc=Prakriti.Sharma@synopsys.com \
--cc=Siddhant.Kumar@synopsys.com \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=p.zabel@pengutronix.de \
/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