From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796056869; b=sNvb4akcHJvX0WCHaAjNHPPqomjw2YxGDApP62lu0Cg1tfWT1TklaHagtvY9zduj5c1f /jhWMsKh3c/VC4ensL00Gj5fTyMhi/Y7eb2GK2ix7o9VtlaMfCqI95/f5eSLOHinIt7us PXDnwAKOLDdz+y+NGPysHSS8M0TupYo8LyWMh9Sn5PFgwP2xGqASQ3NXcxgRrgIUDaMiO 3DdhZPVFnlAM8HOh8/IA7bnBHqesOjy5DbLQmp1QE91tSeXGlgHMwjbiGi5AFtdurlcRa +ZwOLSiWLpoOM6RkGA/EDS+ugv0aEVN3ud0aitPcfD4mTnYAzzhYzUQbnmhcnHu4LMQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796056869; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=wQ7o0B80xooN6itfLJpHeS+2PRk1o7F321ACdLFLueY=; b=auaVLF0abdhYwViPbY7vHzoBStJWcj9vbWhagGE1R1rbSvtDkZigcrBd497/YwwlfbAR FHwZZhKVxPnLW77rxwjiiM0MSD3KjAMy286MXPDgmGAxCJY+Bk/O6CjVdGbGiB5LHGiFZ s9+gsnWyuGBD4tmEbmMRcCDyFFehzO+64ztdiOSotx0IvHobVJNHvDSihzqWC951CxTg9 h/hAcOcejpRu6GTQVfufRxJ/gfLbH1O5X2+gBjf0fQ26/3idX49n1jL56fgpzHi3U999Q PIouHELfd8rOSR5NjR9n+8pZRBPkuFf63ST6B8awQhO7QSLrfkFWS0T+Ov0LiqIUxDQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=MGi4r1R3; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D23E3606A31C; Mon, 30 Nov 2026 16:41:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=MGi4r1R3 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6DD6A1F00896; Mon, 30 Nov 2026 16:41:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796056869; bh=wQ7o0B80xooN6itfLJpHeS+2PRk1o7F321ACdLFLueY=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=MGi4r1R3HWwQ+gipP3de2O/per2xFFbhCCZklrw55xuEiF7UgcuHCsu150JnNCwwN yXrYKhz/TA6d1a6PIWGDtvf5ecKXSmFjvd3H4dR4G3fHiI9icLtdcHw5+umJCxvyxz cc4qTALYvddLnvPw4FDhYy1D0S6vsIOXKA9jwBi1xfkzV8wFJgttHiUnQNND3D36zj b/W4ENUFtlFBR8RfYKIoAhyrMHFsU6+x76SLrJIninBfFmYChQcriL/FFYN50ul+5W KEFSzuR+Bw9yjQ+jKR8N1txNEd5vsV0By8RTj6OuTflym6FxConpuqN5GjzhUAxCXk TaLVZGCodLxsw== Date: Mon, 30 Nov 2026 10:41:06 -0600 From: Rob Herring To: Prakriti Sharma Cc: Mark Brown , linux-spi@vger.kernel.org, Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, Philipp Zabel , linux-kernel@vger.kernel.org, Siddhant Kumar , Jose Abreu , Nelson Costa Subject: Re: [PATCH v2 1/5] spi: dt-bindings: snps,dwc-ssi-2.02a: Add DWC SSI v2.02a controller binding Message-ID: <20261130164106.GA872464-robh@kernel.org> References: X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Nov 30, 2026 at 08:09:35AM +0530, Prakriti Sharma wrote: > From: Siddhant Kumar > > 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 > Signed-off-by: Siddhant Kumar > --- > .../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 > + - Prakriti Sharma > + > +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