From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=148.163.158.9 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796006431; b=gQQkzM36fiB4nEaxiDsCsrY5MczXfKML80EjAJUhi02NhuZYA8Dxedveg120nImfNkTU 6LqJVfDshrT7aYJlX7zneL3x9QRP5Qw4iYaZsG1i53vXvVc9CbBv1zq7qqe10CjRdMbo9 ZMtGItfdoe5Aequ715p4j+b5SMTDRx91kX20ozIUnYnIKy3F0rtmQ8eHgeCIV7YdfdNNb jJoZQ13E6sGY8SVbEP2pU7Z+gXg+zyakUj9XLpEjM+cUnSul2fAMPuMOOchyHHx9dBgkg HWav413TYQZIN4BHc8eF13s4jKSvcnFuAuof8GxbKeq3zFiLG/U53e24kFyLWQQduCg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796006431; h=DMARC-Filter:Received:DKIM-Signature:Received:DKIM-Signature: Received:Received:X-SNPS-Relay:From:To:Cc:Subject:Date:Message-Id: X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-Proofpoint-Spam-Details-Enc: X-Authority-Analysis:X-Proofpoint-GUID:X-Proofpoint-Spam-Info: X-Proofpoint-ORIG-GUID:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=2Uj3Rd8gqsu5U2DqGDtCH1hWdOk7WgJfTUQQRU72ABg=; b=PX09yAjSpEqgUOdU+07gSpN2ceeTPE+I0mUkF5KYtcHM6odC7s+GAX7+uX0PmSLLeKPE t0gtoENmYcYLCiw0OJccEjQKwT9nPU7f462CPNYhhyuyKbl2YugC9SS4WSQ0isItTixbW wak/ai7hK6s7jL9yO63g5dYLeD9+U+COy0X8874XNLYATClORoxV15RIbziHtC+WrM/tC 0D7am1GKyMkCg5N19cy+h/gsvGL0YSS3rc9TThpmElPQzOg3HMQ+yH/BQzAB24RlclZyJ YxGrN5ypq27BaPVk3YCeO9jkyFQc9pQiRbe6BR5kIWq9MK6rNpECGBwyLtI0kx6dRtA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=synopsys.com; spf=pass smtp.mailfrom=synopsys.com; dkim=pass header.d=synopsys.com header.i=@synopsys.com header.a=rsa-sha256 header.s=pfptdkimsnps header.b=r+0reXhw; dkim=pass header.d=synopsys.com header.i=@synopsys.com header.a=rsa-sha256 header.s=mail header.b=Iyw8Tek5; arc=none smtp.remote-ip=148.163.158.9 Received: from mx0b-00230701.pphosted.com (mx0b-00230701.pphosted.com [148.163.158.9]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B9AE9606A32A; Mon, 30 Nov 2026 02:40:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B9AE9606A32A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=synopsys.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=synopsys.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=synopsys.com header.i=@synopsys.com header.a=rsa-sha256 header.s=pfptdkimsnps header.b=r+0reXhw; dkim=pass (2048-bit key) header.d=synopsys.com header.i=@synopsys.com header.a=rsa-sha256 header.s=mail header.b=Iyw8Tek5 Received: from pps.filterd (m0297265.ppops.net [127.0.0.1]) by mx0a-00230701.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AU0idr22000292; Sun, 29 Nov 2026 18:40:00 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=synopsys.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=pfptdkimsnps; bh=2Uj3Rd8g qsu5U2DqGDtCH1hWdOk7WgJfTUQQRU72ABg=; b=r+0reXhwiwsh67iYNwFOKeWG DNmr+gic5P6Xm0l3Uq6CWlIGyE6sXqgGy5jmA/7391VCY0X5wHvdlRpOPUzvCR6W pzpT8uoIgcHCLGKpHX15pX8Pwg8yrQ66FLv1i2OekA7lTrQBNQzVCbTuKrzUrNBS a8GoVrf+hDVy3eKPT/e5+/FDMbSXAORFx4iMqMLywgc1yEA3nGY0xroipJBuUnN8 bSzSnaU2mYhxIOzHgEVSzgTqeRjFqBCxfVOLD3tkmbCvVeoRjshVQ6GuuGQHgCAS i5wRLOWau+zuz2/aTgHgJ8TiQ1Oxth+e0glDN9c48B1tdmYfZgXJ6HzQaPJ6zw== Received: from smtprelay-out1.synopsys.com (smtprelay-out1.synopsys.com [149.117.87.133]) by mx0a-00230701.pphosted.com (PPS) with ESMTPS id 4j7xs0kkch-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Sun, 29 Nov 2026 18:39:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1796006399; bh=h1pEPjb2G4MyItHWHeQh7K5N3Cj9LnddrYHIYbrNEdg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Iyw8Tek5mn4vv1AJ4uP15X/cq2B6w34t/sXSoUKvXtvei9sEpcQ7faEHAXlBD1D9z MsL9GReI5w4YsleQ1bZEFWLFyWmcriNMqMZrpZQXLT+okFadvKsZEwP5m1ZzGu8XMq oCGbSm93Q8bt/qfZjDb7vi9iCtVoNaOSfxx0k/oShvKzZNUga4hPwXwtsxZu9bfnAg zLT8NdatlWj7Q+7mFP4o/PHTHFKeLCAHmEN4c3U/aFrl5lT0sMv3DQvhsAriCwccAj ejfRDKC/18KSR6rIao6VZ2W6r6GCxceXkh2p6K8KsjekAGrSkGI+YSfdLpg9QtVRtC RnzpDRvEUCo6w== Received: from mailhost.synopsys.com (eudc-mailhost2.synopsys.com [10.213.161.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) client-signature RSA-PSS (2048 bits)) (Client CN "mailhost.synopsys.com", Issuer "SNPSica2" (verified OK)) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id E886C4024D; Mon, 30 Nov 2026 02:39:58 +0000 (UTC) Received: from prakriti-VM.internal.synopsys.com (unknown [10.150.11.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by mailhost.synopsys.com (Postfix) with ESMTPSA id C72DFC1474; Mon, 30 Nov 2026 02:39:53 +0000 (UTC) X-SNPS-Relay: synopsys.com From: Prakriti Sharma To: Mark Brown , linux-spi@vger.kernel.org Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, Philipp Zabel , linux-kernel@vger.kernel.org, Siddhant Kumar , Jose Abreu , Nelson Costa , Prakriti Sharma Subject: [PATCH v2 1/5] spi: dt-bindings: snps,dwc-ssi-2.02a: Add DWC SSI v2.02a controller binding Date: Mon, 30 Nov 2026 08:09:35 +0530 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: 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-Transfer-Encoding: 8bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTMwMDAxMCBTYWx0ZWRfX0T1V1SnMysLS Bio4TMw88ma5HvDY5GQDQsM4eOHKelW4ZKEfpvzeqE7YblofxtX2td+/Ajl0NFD+kXsL8HlQQzN ccRI6lp9s6jECfOOxzLVAcfnK+LSA2fqBgjamazKRe0klWMhWgPhZWw62ZAya0DqEsjuxFggRkx 72U6CvELkZE/PS6L1DNl4zbKOzUI+jmV8PQ45HPxqrp8pQwNv3meN6oeCUF7SM8/STX9BR8Azla lreqiteK/I1dJXJbRggc4RKqb0JsuPQih+F1jmq0WeL9C7y83BBFqyvRDq5MgjQh9GlVED3yIaf FgKYeU4SuM0hyANhY1WGyGtdN46hO013GpI6qXfxYRZ7v/roIlSz0aMR2zGn3Zao/qiQCAhmm5d TB5muWBgWm4Db7QJRury3KpvnszgwDxurxdklrTUnh7+ImH9QbSftal1pEfrIMUnkSwQHtZLmsn tJCci42xWjPrMgz2jTg== X-Authority-Analysis: v=2.4 cv=ZIJCCn7b c=1 sm=1 tr=0 ts=6b0ce1ff cx=c_pps a=t4gDRyhI9k+KZ5gXRQysFQ==:117 a=t4gDRyhI9k+KZ5gXRQysFQ==:17 a=zJRp6_cAMcgA:10 a=qPHU084jO2kA:10 a=VkNPw1HP01LnGYTKEx00:22 a=tU_645BZ7FZt8VqRJtHG:22 a=-4-sGo8i1FcW4KD7_GeR:22 a=gEfo2CItAAAA:8 a=jIQo8A4GAAAA:8 a=VwQbUJbxAAAA:8 a=NgWDuXVoyzEVJw4EWi0A:9 a=sptkURWiP4Gy88Gu7hUp:22 X-Proofpoint-GUID: W-8zRzcs_AYlZ9z1Eu1s939lfKMljTzF X-Proofpoint-Spam-Info: AW1haW4tMjYxMTMwMDAxMCBTYWx0ZWRfX9Gbx+pe1cToi tU5ljZ2NZwCLClDTyRVkbCwy/sYmB47o5Hbfdugpy5LSHTgTBsUjae6dC2tUAoB+1inqZugiqCN uwa0mFUVHJXtOqsNU8+yV8YNwuduCVY= X-Proofpoint-ORIG-GUID: W-8zRzcs_AYlZ9z1Eu1s939lfKMljTzF X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-30_01,2026-11-27_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_active_cloned_notspam policy=outbound_active_cloned score=0 adultscore=0 malwarescore=0 clxscore=1015 impostorscore=0 bulkscore=0 priorityscore=1501 suspectscore=0 lowpriorityscore=0 phishscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611300010 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: | + 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 + + 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: | + 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 + + 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. + + 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. + +patternProperties: + "^.*@[0-9a-f]+$": + type: object + $ref: spi-peripheral-props.yaml + additionalProperties: true + + properties: + reg: + minimum: 0 + maximum: 3 + + rx-sample-delay-ns: + description: + Per-device Rx sample delay override, in nanoseconds. + +unevaluatedProperties: false + +required: + - compatible + - reg + - interrupts + - "#address-cells" + - "#size-cells" + - clocks + +dependencies: + snps,xip-continuous-mode: [ snps,xip-enabled ] + snps,xip-prefetch-mode: [ snps,xip-enabled ] + +allOf: + - $ref: spi-controller.yaml# + - if: + required: + - snps,xip-enabled + then: + properties: + reg: + minItems: 2 + reg-names: + minItems: 2 + required: + - reg-names + +examples: + - | + spi@20100000 { + compatible = "snps,dwc-ssi-2.02a"; + reg = <0x20100000 0x1000>, <0x60000000 0x10000000>; + reg-names = "ssi_base", "xip_mem"; + #address-cells = <1>; + #size-cells = <0>; + interrupts = <0 42 4>; + clocks = <&spi_clk>; + clock-names = "ssi_clk"; + num-cs = <2>; + dmas = <&dma0 10>, <&dma0 11>; + dma-names = "tx", "rx"; + rx-sample-delay-ns = <3>; + snps,xip-enabled; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <50000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <4>; + rx-sample-delay-ns = <7>; + }; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index ce1b9e514e08..e68a4337a651 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -27304,6 +27304,13 @@ S: Supported F: Documentation/admin-guide/perf/dwc_pcie_pmu.rst F: drivers/perf/dwc_pcie_pmu.c +SYNOPSYS DESIGNWARE SSI GEN2 SPI DRIVER +M: Prakriti Sharma +M: Siddhant Kumar +L: linux-spi@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/spi/snps,dwc-ssi-2.02a.yaml + SYNOPSYS HSDK RESET CONTROLLER DRIVER M: Eugeniy Paltsev S: Supported -- 2.34.1