From patchwork Fri Apr 28 12:15:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Valentin Caron X-Patchwork-Id: 13226333 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E8ABCC77B61 for ; Fri, 28 Apr 2023 12:17:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=to+1eb/SkOzh9DYMpoDES2b95ZpYuEUht4ob2zM9aVc=; b=WS3Dew783YsxEy y0PWJZxIV+0h/3u6HHuFDXR0ixmIa74P+GSisisBF+QBUNaht2D/DPNL6Nvrag10UHv+76Oqg+jnU bUn0dBaSRn98Z+5U9FP5o01N6ix8KouibfTEg8pFqejiNkSCsjECekhgVBdLQ7xUdB9Ij0rIc5d1S 1QqyulKSpvaQ1Iag09WAmEMxQ1IdtCl2r4m36GBOy9cMp8UIgT9e5LHHrznFm657iPKo0t/5gvipi p1I0NuTl55VIaARjVruqG/El0HDA8e0nTGZixxjz23lfuOPKstKzU/lblxFtONUClrhAV/k7rwMv8 zO1AHeYBY6UKrmSjv9eA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1psN1g-009fW0-1B; Fri, 28 Apr 2023 12:16:36 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1psN1a-009fNH-2X for linux-arm-kernel@lists.infradead.org; Fri, 28 Apr 2023 12:16:32 +0000 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33SADpqd030542; Fri, 28 Apr 2023 14:16:12 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=selector1; bh=85jl4gZs80ETP6AjY8It7o3CevTJ65Dn1pr+nB8DQUA=; b=n4qgZ3w0q5NPN1360Fb/tHLIYhkLld9EY74NauyP5JLa7b9hhjens0SfnrVn8/hNbMDw zJtON++ufDHsqqWnAQudEAnWR52l2uXbJwsGs6JEunApCv+vo6Ww6dfwcTd8bYtSBvt+ Ge4GzdpqdI+ll+OKMDMVi/mlvSD+ZYn65p+EBdoOvoX7mL4jyqlMpOMo7vXGb9scqaNR lIIH6rP8Ph4qEenihUqbeNzDlkLTQcIitiw/TyLeQ9OdY8/EZ4BWp3nICGP0yeIc/eZH SMTphs//bkGfsPP0UArZecBUu3+Xw/DJ3tjn5u7k+Y49IP9zi6VYQo10hVIwloiPeyQR uw== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3q7x8dduh1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 28 Apr 2023 14:16:12 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id CD5F710002A; Fri, 28 Apr 2023 14:16:10 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id AB9BA227EE0; Fri, 28 Apr 2023 14:16:10 +0200 (CEST) Received: from localhost (10.201.20.168) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Fri, 28 Apr 2023 14:16:10 +0200 From: Valentin Caron To: Mark Brown , Rob Herring , Krzysztof Kozlowski , Alexandre Torgue , Alain Volmat CC: , , , , , Valentin Caron Subject: [PATCH 0/7] spi: stm32: add spi slave mode Date: Fri, 28 Apr 2023 14:15:17 +0200 Message-ID: <20230428121524.2125832-1-valentin.caron@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.201.20.168] X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-28_04,2023-04-27_01,2023-02-09_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230428_051631_147546_16007005 X-CRM114-Status: GOOD ( 13.44 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org STM32 SPI can operate in slave mode. This series add this functionnality in spi-stm32 driver. The device-tree property st,spi-slave-underrun can configure STM32 SPI reaction to an underrun. Alain Volmat (3): spi: stm32: renaming of spi_master into spi_controller spi: stm32: use dmaengine_terminate_{a}sync instead of _all dt-bindings: spi: stm32: add bindings regarding stm32h7 spi slave Valentin Caron (4): dt-bindings: spi: stm32: add address-cells and size-cells into yaml spi: stm32: introduction of stm32h7 SPI slave support dt-bindings: spi: stm32: add stm32h7 st,spi-slave-underrun property spi: stm32: add support for stm32h7 SPI slave underrun detection .../devicetree/bindings/spi/st,stm32-spi.yaml | 19 + MAINTAINERS | 1 + drivers/spi/Kconfig | 1 + drivers/spi/spi-stm32.c | 386 ++++++++++++------ include/dt-bindings/spi/spi-stm32.h | 15 + 5 files changed, 307 insertions(+), 115 deletions(-) create mode 100644 include/dt-bindings/spi/spi-stm32.h