From patchwork Tue Aug 16 16:13:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrice CHOTARD X-Patchwork-Id: 12945064 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 CD7A3C25B0E for ; Tue, 16 Aug 2022 16:15:31 +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=SNyo4nyyGX3P96Jp1zYQSgNE/StD7UGTJmzUTap1s6k=; b=gKLVE4xaxaWq2K uw21uqHsKrJEHhlxtzKHl2HLwsyCEWe9bcKwIVBaVrfLSBIHTUssMfcQ509kor6sV1f/nAx+ajyee i0s9Q285dSWajPsTd1y1hjnaj6yh+vKDQkkp4zF2mY6ZcOaQUVs+ySCXBvM0ERC49NoFoNKgvoTIY PP829GDNP01qw1hrf7yfdwIYYDMDBSfvFeNyibUCv7mOKG/cZ4YqFNNEOmDqrmhIx8YOU3v6bRk/L 9zZ3wg7VXN2RTTqnNixJ+gTqJRWyoi3g0qcDcBLy+EJEuPKdC4x0oG2qsP8tcfCDjY87Gu1TmFLb0 y+Sj9JWgY3dz+n60NRgA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oNzCx-004RKj-O6; Tue, 16 Aug 2022 16:14:23 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oNzCu-004RE7-GN for linux-arm-kernel@lists.infradead.org; Tue, 16 Aug 2022 16:14:22 +0000 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 27GBKpBO005831; Tue, 16 Aug 2022 18:14:03 +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=qP/LM/Dp36sWiV7fPSfYlt7cCniRU3gHuTlVC1r1NOE=; b=RTegEcAAzmmoY9zSO5EATPkVE04GpF/UCgUAGO3N750Ac1wp5WRH7tKo6oqGiM7wn+NE 05e95KYE0f1I0U3mhqvsJMW49nWsh7Nc3if6bCuqYBughVAFwpTYVU29SY9OCCGo5aqQ IE4Z3ye61g/uwbjbSgq/He0NkVH1qxDmqBX5ef+tV+pBzXkR3OZ8qpdqzOKGF7/3aS9Z VrVgoz2gzNOJzutVzG/ZPc7kUvj7vq/hQGrjG44pEpC4LGQADM/hHJM4T1hfSayh8CFE ryNofU47rZLL3QjUZ/BRrqf1yNhzgSalsgqS2u0ZHvRY44bq9ftbinFgqwFhvJ7iqQV5 ng== 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 3hx2uhfpq3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 Aug 2022 18:14:03 +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 F220410002A; Tue, 16 Aug 2022 18:14:02 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 68C1123BE1A; Tue, 16 Aug 2022 18:14:02 +0200 (CEST) Received: from localhost (10.75.127.116) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2308.20; Tue, 16 Aug 2022 18:14:02 +0200 From: To: Mark Brown , Alexandre Torgue CC: , , , , , Subject: [PATCH v3 0/2] spi: stm32_qspi: use QSPI bus as 8 lines communication channel Date: Tue, 16 Aug 2022 18:13:42 +0200 Message-ID: <20220816161344.2599908-1-patrice.chotard@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.75.127.116] X-ClientProxiedBy: GPXDAG2NODE5.st.com (10.75.127.69) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-08-16_08,2022-08-16_02,2022-06-22_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220816_091421_023694_CD21A87B X-CRM114-Status: GOOD ( 13.66 ) 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 From: Patrice Chotard The goal of this series is to allow to use QSPI bus as a 8 lines communication channel for specific purpose. The QSPI block offers the possibility to communicate with 2 flashes in parrallel using the dual flash mode, 8 data lines are then used. Usage of cs-gpios populated and spi-tx-bus-width / spi-rx-bus-width both set to 8, is needed to enable dual flash mode. The addition of the legacy transfer_one_message() spi callback is also needed as currently the stm32-qspi driver only supports spi_controller_mem_ops API. Patrice Chotard (2): ARM: dts: stm32: Create separate pinmux for qspi cs pin in stm32mp15-pinctrl.dtsi spi: stm32_qspi: Add transfer_one_message() spi callback arch/arm/boot/dts/stm32mp15-pinctrl.dtsi | 50 ++++++--- arch/arm/boot/dts/stm32mp157c-ev1.dts | 12 ++- drivers/spi/spi-stm32-qspi.c | 125 +++++++++++++++++++++-- 3 files changed, 159 insertions(+), 28 deletions(-)