From patchwork Tue Aug 23 07:58:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrice CHOTARD X-Patchwork-Id: 12951850 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 66084C32793 for ; Tue, 23 Aug 2022 08:01:51 +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=D8Dc6NbQ2VtBg1w2Q0knTqErlmUqmBVmlBDmrCehhWw=; b=dPeztHU1jEWzvM ubvqRpKPCKX63M52AcZ6un/lfUWSafeGjwMRz4W9WlImgL0ilrRyD4QH62O6oEIFOScZ1uhyQRelm nOzsPu9/EU7giqk4PK4BAjyHLc0mgfkk3Pr00FlypbRxjKzrWi4NTLzwd6hXc+mMl4e9nsrKh4Stn DVqmaJE0ja5FZJpBYQw4kC9QgsgZoKRePH6N8IsnRTabTiy8Wldson1vp4pWrRQ+khZTyI/aDNRDm cjuAY7ykF3tdWTzG57+wk+G4x6iA8AsEW7g4D0Uy+tjETd6VcpmH7+B1ZtRfwQz7PgpmBiW+yjP8y o+M+MHezMWSIAsuGGYpg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oQOpR-003icz-Vt; Tue, 23 Aug 2022 08:00:06 +0000 Received: from mx07-00178001.pphosted.com ([185.132.182.106]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oQOoa-003iBG-JY for linux-arm-kernel@lists.infradead.org; Tue, 23 Aug 2022 07:59:21 +0000 Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 27N71aRl017490; Tue, 23 Aug 2022 09:58:55 +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=aTuz4LoVP2rqxcOgWSRXXWx7NUQjy/a02YEBQAhT/hQ=; b=I6cWmZaaP33IJk0/I/B82Z072Exs3FvS/D+UD8bMkqCiruRFLpdEOb2ZT+SHdCLXI316 YkXLA4cBUnt4Vfi4y/ds4BBsy5uCWvYPgP45QqVG2U/Wm7Ewx358cv992mICLWgZZ+Y2 RP2qGbcv35A/UM/ub756A+TUtjC62LGzO2OSLb6bBlItfPbp3iT6FO4RT+Aj7r5TIHcm 8ybpiqveG80OvO1XSJxXFF8y4WLwle2WGptWWvJLU/iq6j+/9qUm2Uup7CZR5tptYyWt lN7B+0QUi2+J2YHuiwcpuzv7qGkVb6/q+GwTB+3vJ5Xp8RmKV+LR8THH+yRkcFFcN3Ph vA== 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 3j2w2pvp6s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 23 Aug 2022 09:58:55 +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 5C51110002A; Tue, 23 Aug 2022 09:58:55 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 4F836216EE8; Tue, 23 Aug 2022 09:58:55 +0200 (CEST) Received: from localhost (10.75.127.118) 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, 23 Aug 2022 09:58:55 +0200 From: To: Mark Brown , Alexandre Torgue CC: , , , , , Subject: [PATCH v4 0/2] spi: stm32_qspi: use QSPI bus as 8 lines communication channel Date: Tue, 23 Aug 2022 09:58:48 +0200 Message-ID: <20220823075850.575043-1-patrice.chotard@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.75.127.118] X-ClientProxiedBy: GPXDAG2NODE6.st.com (10.75.127.70) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-08-23_04,2022-08-22_02,2022-06-22_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220823_005920_446454_A3BDD3AD X-CRM114-Status: GOOD ( 13.46 ) 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 | 118 +++++++++++++++++++++-- 3 files changed, 152 insertions(+), 28 deletions(-)