Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1631035ybj; Wed, 6 May 2020 02:14:02 -0700 (PDT) X-Google-Smtp-Source: APiQypLvbjqVhWMQfWV3Tbm/P185lgLzCEjh6kMYbsjy6XB9eijixAyQDitUrDyhx2SGMU14dolC X-Received: by 2002:a50:a624:: with SMTP id d33mr6213584edc.58.1588756442324; Wed, 06 May 2020 02:14:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588756442; cv=none; d=google.com; s=arc-20160816; b=kGafZef/ihvs8Pfia0VBfp+49PG8FMh9IuYdBcT24ovH+BNXWJigC7FKskHuOkuHyA 6DGV8AebFD9dtlRA39C78sKnjggQCyBVEr9iHQ5CSp6UX4AcnWJwfZutc8EJqQh+8Ak6 whf6ifyyQ0oefhJG5ZvB5YhtgsJOVqOGKjt0Gkz/2JExbc7d6kFzp993gBX/1v2Brx1P sH+XXSCLbLsu7HGQGOs/tY6TpRHA7Awfrm3I3i4cVDK//ucqejZdl299/j/Pfrzh6QKG Wz8smn23QpOAt52pI7vcqBP8G1gZyMChUc8CC71iRpDRg2u0y5TDaoz28WX63VtlQMdz FL2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=XGQKAQuav9TpCHTlyeLUSt6M0sNEeVgAi7gME92XMVY=; b=Ph3ixn5vxdyrQ2Os4kalsT/C4u96nh1HWaR8K92vhk/zMv3S7ZWSTByszumtvTCFJN 21nMTI5fvGdkdESU2pJmH0EO4EvzoLGf5CcNNiiK9h4p7iBORqJAClAia2fKLJhP+ijT NXvBhCoLWqVPFYXa4mgrppW9U5wESc0bB1WplEWhxXPTgWWTGcthcq8J0IgTYkpoF5NI PBIhhhayoieF/DQ2y1y9gL2lMIXabQeYpCPe9xpVo60StgtAlAUdKJiISnkGMLMqqr4u 5s3L3IGppWp13wnbw2YV5dPWwG11q619O4YxkkNIc+XghHuEfmpItzuQq/XtOBWs/DHg ZNPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=TAlXRj8P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id co4si633058edb.83.2020.05.06.02.13.38; Wed, 06 May 2020 02:14:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=TAlXRj8P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728943AbgEFJMU (ORCPT + 99 others); Wed, 6 May 2020 05:12:20 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:39366 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728571AbgEFJMT (ORCPT ); Wed, 6 May 2020 05:12:19 -0400 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 04697FwD001978; Wed, 6 May 2020 11:11:58 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=STMicroelectronics; bh=XGQKAQuav9TpCHTlyeLUSt6M0sNEeVgAi7gME92XMVY=; b=TAlXRj8PvOSk2o3fHUp8vOhRJTsp0BhVr7SPA5dek+Z/i/BSYmOOlyPWjpwMIF3W5x4G Wf3o+psCeMOJb6H7ZXt3rEp460W5KUFuUEvDak6CxDpwifG/Q14Bkj0mTZAXRJ47T7pD akcF6TXd8Z2Efg9kGeGyfYB8nwthd8f83v48W8XTfPS7Pkt5W0SaeVErnBYaFVAJj3CF rZcTlXuAFIG1ffhuvdWa5TnYm0Zf5e1J/u53HuUZ+TP/sXL6ypPis4PYL+YmcFCPaVvs fsz1VaK7feXF5sbCb7H6xPNdqlShQVrXDDRxK7ycrf3VWmnY/e5y/t93yquCip6x0dgF 4A== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 30rxb254w7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 06 May 2020 11:11:58 +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 1A619100034; Wed, 6 May 2020 11:11:57 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag6node2.st.com [10.75.127.17]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id D248B222CF7; Wed, 6 May 2020 11:11:57 +0200 (CEST) Received: from localhost (10.75.127.48) by SFHDAG6NODE2.st.com (10.75.127.17) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 6 May 2020 11:11:57 +0200 From: Christophe Kerello To: , , , , , , CC: , , , , , Christophe Kerello Subject: [PATCH v4 00/10] add STM32 FMC2 EBI controller driver Date: Wed, 6 May 2020 11:11:09 +0200 Message-ID: <1588756279-17289-1-git-send-email-christophe.kerello@st.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.48] X-ClientProxiedBy: SFHDAG7NODE2.st.com (10.75.127.20) To SFHDAG6NODE2.st.com (10.75.127.17) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.676 definitions=2020-05-06_03:2020-05-04,2020-05-06 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The FMC2 functional block makes the interface with: synchronous and asynchronous static devices (such as PSNOR, PSRAM or other memory-mapped peripherals) and NAND flash memories. Its main purposes are: - to translate AXI transactions into the appropriate external device protocol - to meet the access time requirements of the external devices All external devices share the addresses, data and control signals with the controller. Each external device is accessed by means of a unique Chip Select. The FMC2 performs only one access at a time to an external device. Changes in v4: - bindings: - fix filename: st,stm32-fmc2-ebi.yaml Changes in v3: - NAND: - rename labels used on errors - add in the commit log the reason to increase FMC2_TIMEOUT_MS (patch 3) - add Miquel reviewed-by tag (patches 2/4/5/9) - EBI: - move in memory folder - merge MFD and BUS drivers to avoid a MFD driver - bindings: - pattern name has been modified - vendor properties have been modified - s/_/-/ - add unit suffix (-ns) on timing properties Christophe Kerello (10): mtd: rawnand: stm32_fmc2: manage all errors cases at probe time mtd: rawnand: stm32_fmc2: remove useless inline comments mtd: rawnand: stm32_fmc2: use FMC2_TIMEOUT_MS for timeouts mtd: rawnand: stm32_fmc2: cleanup mtd: rawnand: stm32_fmc2: use FIELD_PREP/FIELD_GET macros dt-bindings: mtd: update STM32 FMC2 NAND controller documentation dt-bindings: memory-controller: add STM32 FMC2 EBI controller documentation memory: stm32-fmc2-ebi: add STM32 FMC2 EBI controller driver mtd: rawnand: stm32_fmc2: use regmap APIs mtd: rawnand: stm32_fmc2: get resources from parent node .../memory-controllers/st,stm32-fmc2-ebi.yaml | 261 +++++ .../bindings/mtd/st,stm32-fmc2-nand.yaml | 19 +- drivers/memory/Kconfig | 10 + drivers/memory/Makefile | 1 + drivers/memory/stm32-fmc2-ebi.c | 1206 ++++++++++++++++++++ drivers/mtd/nand/raw/Kconfig | 1 + drivers/mtd/nand/raw/stm32_fmc2_nand.c | 1176 ++++++++++--------- 7 files changed, 2061 insertions(+), 613 deletions(-) create mode 100644 Documentation/devicetree/bindings/memory-controllers/st,stm32-fmc2-ebi.yaml create mode 100644 drivers/memory/stm32-fmc2-ebi.c -- 1.9.1