Message ID | 20220808074051.44736-1-patrice.chotard@foss.st.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 5C58CC00140 for <linux-arm-kernel@archiver.kernel.org>; Mon, 8 Aug 2022 07:42:33 +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=qJGLoNfXtdMEfqquC1uyF65AQFsyz+9NpvjOJ0OzvIM=; b=BnSfcqxjq3GaYe qMlRlAG7/B0ucpalUzxXXEpEoikyL+VJInE7yhyY9+EBxhBbR+cnvaeUO5ALOMkEP7/lbz1dxwcKw b6qoaCQQ0DGpWr3G/SQVF7HZEO04aymKRg0c/shHO+ZCZO/okR8fJePvRd5OQmLkT1DJMcKFxhps3 1lgKK7CS3SojsK5Tjh+b65MPjqWw918PCYDFxL6yU86QyU4M4qvyJVf7vSgY+eEh1/JY2xsHwLaBR kA4OfGjZgvXu2KxOORCS7kHk+/6R1/ErFXuQ654FkkHINen8LlggpX+KLapYomfsU6M2+ag4YIUzJ tw5HKqhNlINOBmRKZ+Yw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oKxOH-00CBUw-06; Mon, 08 Aug 2022 07:41:33 +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 1oKxO4-00CBOY-3E for linux-arm-kernel@lists.infradead.org; Mon, 08 Aug 2022 07:41:21 +0000 Received: from pps.filterd (m0288072.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 2787Iv8L007741; Mon, 8 Aug 2022 09:41:02 +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=AP3c4vCG+hy28xwUF/P0YX2tPnnN/Gf/cJsN6OS+P7k=; b=vX3ebXFWNTAarsJUuG2imn4UrPchQug4OCcvkB8UFjkZUbDc6RTv/2O9UkvKbduKT6uJ +waxhpaRSwohiDrD0j34h9HRsi4zoyE2bfgHFXrfeK1OaunfL6XpbzGSMkyg8lGHom+8 EW0Zr47aPKZuIZoT1NlNuVktU/fbk/ztSybmm9NCj5rzGgQQYasiDCVBUrVBaaamV0Xs NE6fvMLprFsa/hNEcti4m7RBfzHCE1r8YRncn5ZoOuOSvU7y5TP068BbdguGFXPTBwYD eEkSbN8Cz5i9JB80bDjP6SS1j5s5mfxlLybdFlTWYioMD5BbzAe3FqchhiUEDJPvlsZ+ yg== 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 3hsdqkg8ut-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 08 Aug 2022 09:41:02 +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 1070C100038; Mon, 8 Aug 2022 09:41:00 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 7AA672171DD; Mon, 8 Aug 2022 09:41:00 +0200 (CEST) Received: from localhost (10.75.127.117) 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; Mon, 8 Aug 2022 09:40:58 +0200 From: <patrice.chotard@foss.st.com> To: Mark Brown <broonie@kernel.org>, Alexandre Torgue <alexandre.torgue@foss.st.com>, <robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org> CC: <linux-spi@vger.kernel.org>, <linux-stm32@st-md-mailman.stormreply.com>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <christophe.kerello@foss.st.com>, <patrice.chotard@foss.st.com>, <devicetree@vger.kernel.org> Subject: [PATCH 0/3] spi: stm32_qspi: use QSPI bus as 8 lines communication channel Date: Mon, 8 Aug 2022 09:40:48 +0200 Message-ID: <20220808074051.44736-1-patrice.chotard@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.75.127.117] 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-08_05,2022-08-05_01,2022-06-22_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220808_004120_510519_4BBE7451 X-CRM114-Status: GOOD ( 13.27 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
spi: stm32_qspi: use QSPI bus as 8 lines communication channel
|
expand
|
From: Patrice Chotard <patrice.chotard@foss.st.com> 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. A new ST specific property need to be created to enable this 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 (3): dt-bindings: spi: stm32: Add st,dual-flash property in st,stm32-qspi.yaml spi: stm32_qspi: Add transfer_one_message() spi callback ARM: dts: stm32: Create separate pinmux for qspi cs pin in stm32mp15-pinctrl.dtsi .../bindings/spi/st,stm32-qspi.yaml | 8 ++ arch/arm/boot/dts/stm32mp15-pinctrl.dtsi | 50 +++++--- arch/arm/boot/dts/stm32mp157c-ev1.dts | 12 +- drivers/spi/spi-stm32-qspi.c | 111 ++++++++++++++++-- 4 files changed, 155 insertions(+), 26 deletions(-)