From patchwork Thu Jun 15 07:58:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Valentin Caron X-Patchwork-Id: 13280859 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 02C98EB64D9 for ; Thu, 15 Jun 2023 07:59:20 +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=7SsAxb1rv9I56mlvcz2INFeWf82xtyP1+olLN3Qfzbs=; b=mc1IzjFEHH/uGU A9KnMPfl5gHcavuGFu8Ucvd7MC3S10frFe1X6AcVBWBKi6ajJZI8HpaxgJBNeJWKrOSlRkal608xJ cAxn2LCk/0kXIXvpHeLwAc/RRP8WnIUofLVtznwttmgvxXWUmipL72RUSG7v+Yjd6F6d8tQZkCXLk 5wah0COgPkGwP3QXQHMQmF/7qBARN9F6XmyIYzw3flIefI6JjpbSXTz+5eHnp+jnoLtbR0PfR/p81 WeWlQSFLMAUNB42+SqBPYkgrZ1bKD6b3a7imcAVHLrRzADtZWxlGF4KJ+tdQ1B2MtINcCaK2BZ3/D C4gFh0p157B6zJv9ihlg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q9hsi-00E6Gz-0b; Thu, 15 Jun 2023 07:59:00 +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 1q9hsf-00E6Et-0B for linux-arm-kernel@lists.infradead.org; Thu, 15 Jun 2023 07:58:58 +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 35F6ZufH016146; Thu, 15 Jun 2023 09:58:47 +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=qpy+o5laPne4j+FJxWvlTMZEusSxs73H8zYgkOpl2yA=; b=zf9EO38kI9GPhZ8KqZLMPbriVkd09aBQZxxpDkcl3zAsKnwGpzxkv7veriQqcNou/axp R5GnqUEHn+NQJwnnG9fL6Hy7udM98WSS7/ynIy/cePR23GVPdAGGQp+tFoFS6IDP4gwK qT17KwGwHEV+Q5ERx+pY3ahq3e016TSmzHLbBDYgMFIKWKQTVyx0S4CIMfxvDxSiNZ33 r8DcgBSvt7810ZppQwYJiYONE5gKaNIgWKy+NxFXyeSepWWKwjIy9v2YBQds+sT5C5e8 2lojUNtdNlqA7sbTgCUoAONVUQY0WLH4h3pyJQsh5aAjhKWS4gmgsUeRYKmyPcjb0/oC Gg== 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 3r7wgx0trp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 15 Jun 2023 09:58:47 +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 A2529100046; Thu, 15 Jun 2023 09:58:46 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 8CF9D21682B; Thu, 15 Jun 2023 09:58:46 +0200 (CEST) Received: from localhost (10.252.8.64) 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; Thu, 15 Jun 2023 09:58:46 +0200 From: Valentin Caron To: Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alexandre Torgue , Alain Volmat CC: , , , , , Valentin Caron Subject: [PATCH v3 0/4] spi: stm32: add spi device mode Date: Thu, 15 Jun 2023 09:58:11 +0200 Message-ID: <20230615075815.310261-1-valentin.caron@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.252.8.64] 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.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-15_04,2023-06-14_02,2023-05-22_02 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230615_005857_710613_3F90FFEF X-CRM114-Status: GOOD ( 13.33 ) 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 device mode. This series adds this functionnality in spi-stm32 driver. Since v2: - Rename this series: spi device mode Since v1: - Do not add #address-cells and #size-cells in st,stm32-spi.yaml - Do not add cs-gpio description in st,stm32-spi.yaml - Do not add st,spi-slave-underrun property to handle spi slave 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: disable spi-slave property for stm32f4-f7 Valentin Caron (1): spi: stm32: introduction of stm32h7 SPI device mode support .../devicetree/bindings/spi/st,stm32-spi.yaml | 1 + drivers/spi/Kconfig | 1 + drivers/spi/spi-stm32.c | 274 ++++++++++-------- 3 files changed, 161 insertions(+), 115 deletions(-)