Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp953897ybj; Tue, 5 May 2020 10:16:21 -0700 (PDT) X-Google-Smtp-Source: APiQypJxMYk27/f5lR67QKC2NCoe2eY9x+GFD27YpedYbbAieUSChbeJNL1EE/za6SxfBFj1px4D X-Received: by 2002:aa7:da1a:: with SMTP id r26mr2052863eds.259.1588698981727; Tue, 05 May 2020 10:16:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588698981; cv=none; d=google.com; s=arc-20160816; b=XlCSdZftmWNNVONQCiCdZAP/7ZrXoSJfyMgG63OtzLA1kQfVddUlbMsNeHwOKWsVT0 fVw7sEptX+fHF5t/s7iDSkhtvGIxBu0NYekO7rIa21QVTE6i0P3Y3ag7xJYPw0jH6zPE rFRNtlfQXsxEbFTB5wDp583X8lZvsSqE8262eHq3K5fygCr3IrniX4/VdNTZ+NGQoFBC 1Q9fR5hl1rFH4wO18FFqDBman80GG6SRnMS4PFOuCbHi9Ox/Vf4StFIWRkEJ+rlO5L37 bRCPISHgelFpFSvZ92TWPoqK/w1PMBIQOpYsVnsVal+G0OTEo6Le8/vcDx5lWqiv/y2y et1g== 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=saX4lP2HLA+Ud4B3Z1FOStFfoSHeb14YlpgoOtNGAF0=; b=hBmtmYfP0QK+1xSW7tZwTSH+WoW+5T3V1OzQpSvY3749t29U1+kliPzAyaaI3lK0m3 0kzS/bWcRdPDDSFuvbK0YSTrsy1ll1MkneXTZI1FW52MIHv46Ng44I8W8kiL6CMf2duZ Uykb2X+OnnqL+GmICQ40qEdGUSamQAdR6LCVvZGhc47662nRxSFStC5GGLXtCqGxXMLm vJ0Zu7mTUk+s8n58WKClytNsofWPLt5isN5WaqGFqBI4GefLXVLFRgd6zwd2ki17zrN8 lvQwH+lGRjXExYZxJ7uriwBlsxW7GFRaaOWa43jTkVxwVeFez6ZEn3kTqEa40Oa/5cR0 zFsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=vXlbdvLt; 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 sd16si1398237ejb.106.2020.05.05.10.15.58; Tue, 05 May 2020 10:16:21 -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=vXlbdvLt; 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 S1730135AbgEEROG (ORCPT + 99 others); Tue, 5 May 2020 13:14:06 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:56406 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729570AbgEEROG (ORCPT ); Tue, 5 May 2020 13:14:06 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 045Gvi9w012978; Tue, 5 May 2020 19:13:38 +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=saX4lP2HLA+Ud4B3Z1FOStFfoSHeb14YlpgoOtNGAF0=; b=vXlbdvLtyJIimTN46SAZTQ6jBEY9Z6ResaovlEBOFBaRlGGoXHxYZ+qNczOsGQxJ96jV rVYfnsDjHJZI5Q4ZOBWZtvQhAn5faghP1BAZYKgiG7/p6VCSArYauJVutVa6kCUflWbV GRhUCesqGIQWPAsJLyEfsvrx/I6ctpvw5QPSz2QJgv2syRtfT+L/65JkvzuzsfPPBrYq OeG9+tG/BKYmWqxQyjL8vrTyJ3Y8zU2ZcJYPUi965/PGZS3ekltf1a2cJt7ibsZebqHv 6uk4Kvtcbjgockox58d1dj5hXZWBlJ1mBYPg9byE+GGLj3Sv5bbqtbniDgx2gukh39Rj 7A== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 30ryrj9de1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 05 May 2020 19:13:38 +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 8975D100034; Tue, 5 May 2020 19:13:36 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag6node2.st.com [10.75.127.17]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 6DF032B5A79; Tue, 5 May 2020 19:13:36 +0200 (CEST) Received: from localhost (10.75.127.44) by SFHDAG6NODE2.st.com (10.75.127.17) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Tue, 5 May 2020 19:13:35 +0200 From: Christophe Kerello To: , , , , , , CC: , , , , , Christophe Kerello Subject: [PATCH v3 00/10] add STM32 FMC2 EBI controller driver Date: Tue, 5 May 2020 19:10:58 +0200 Message-ID: <1588698668-25288-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.44] X-ClientProxiedBy: SFHDAG5NODE3.st.com (10.75.127.15) 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-05_09:2020-05-04,2020-05-05 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 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