Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3802682ybb; Mon, 23 Mar 2020 08:00:32 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsC55S6TaVrpxIHQP7aQhBgkyXGFKr4+Mkc51JTKP/eGUE1LbW65bXJ/QIBwUdKsfC3a+nJ X-Received: by 2002:aca:b7c1:: with SMTP id h184mr17682834oif.77.1584975632509; Mon, 23 Mar 2020 08:00:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584975632; cv=none; d=google.com; s=arc-20160816; b=FZlfZGiNozrQKcdO9OuyZpoZyAyYacJ8G022DlWMDtRdAsAj9p+X8M1zTb+4e7NxAx DRXnODjW8OwjE1jUzwfZ4w2ScQqzEMHcjAtYJFyIMOV5LlXIA4BLLGnP0F05SypNv/Mv oh93P1kPDz/juuTzU4EuF9UcMZxsHoSEC1qDS45GiccO7NRyOLBIbCfcodTYIHXOmUCB FOsfTS6b/430Su8cKjPY+s+HCnDVnqwwkeFVW/sdiv8zwPwtnpFFRJC0K91Q83yiLPnr LUuEElsF6cRD3ZlqDUhDtfDBlm4a87Rg7avv3VYavLjfOG5YsB/4RnVVxrUtxb7+ID6s GqIA== 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=yoIK90tuRPwC25Pp82+brJU/Ki+zCwsNgXSgRHpTEmE=; b=wfNmX3iShttYF94VYdNB8zKmgis5B06q8UUsKBolQNLjS92qABrqNwhKQgOzMepH0q CPeb83/h2+1tuj3JFWR47+Cg7Gzl4B0KiIebMpAcHnQli6Pj/NgIm0SoaKfKPH8N4KZq MCAr2IAVzySjn7l8wqNCDefIpNjYj63sshtCMtTOqmpCzdRHD9mNdcU2wSixyOIuK4T8 YKhCV8gAymGsIrQZtXN8eIGtr/t8a+R0ksunywj+lqM/S6Lhh0lI6VOHq44JH8VX+8KO 7/+hsIZ52bm3thutKY9SW003eqWoisxOHYqvvRvCLuPvTCr4epRlPr4sCaLSBJfPfVeZ Ie5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=Kw3F0Qfj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id v142si7696031oie.217.2020.03.23.08.00.12; Mon, 23 Mar 2020 08:00:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=Kw3F0Qfj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727124AbgCWO7x (ORCPT + 99 others); Mon, 23 Mar 2020 10:59:53 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:45054 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725912AbgCWO7w (ORCPT ); Mon, 23 Mar 2020 10:59:52 -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 02NEbU8j023776; Mon, 23 Mar 2020 15:59:24 +0100 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=yoIK90tuRPwC25Pp82+brJU/Ki+zCwsNgXSgRHpTEmE=; b=Kw3F0Qfj9wlZpMlmthXNy16b7cAByjyv0hCtOmt2Vsd0LTpUkldMQtGiZfNnLmwRd0/y NjI3EiWmbJ7L5Ou2DGpPjx22IWML4GfSKi4y8Z3eVvUXrd1APMe9MCib1Lh4RrGfZgHE b3v6mf1ImKY2r4hPPKcZ4tONCXTprb9rFKMpP1fQgfVBLwky0SiyMIlGjhysdw3jpBEL sfTpWzF9+gH+CrawxPi2FU3yHTv0Zl+f+G1bsuUwt/6l6+BeTIT1tdAj9kjYTSvpj2cp PBogZxVkcemvcm5Dxt+iiQ92/ynA/cZz5G00YFJ9OUaCd4d4UBvcSRv+XM3kW/1b3qdf ew== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2yw995ajb2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 23 Mar 2020 15:59:23 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id F2E8910003A; Mon, 23 Mar 2020 15:59:18 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag6node2.st.com [10.75.127.17]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id DA321220F81; Mon, 23 Mar 2020 15:59:18 +0100 (CET) Received: from localhost (10.75.127.46) by SFHDAG6NODE2.st.com (10.75.127.17) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Mon, 23 Mar 2020 15:59:18 +0100 From: Christophe Kerello To: , , , , , , CC: , , , , Christophe Kerello Subject: [00/12] add STM32 FMC2 controller drivers Date: Mon, 23 Mar 2020 15:58:40 +0100 Message-ID: <1584975532-8038-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.46] X-ClientProxiedBy: SFHDAG3NODE1.st.com (10.75.127.7) To SFHDAG6NODE2.st.com (10.75.127.17) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.645 definitions=2020-03-23_05:2020-03-21,2020-03-23 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. Christophe Kerello (12): dt-bindings: mfd: stm32-fmc2: add STM32 FMC2 controller documentation mfd: stm32-fmc2: add STM32 FMC2 controller driver bus: stm32-fmc2-ebi: add STM32 FMC2 EBI controller driver 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 mtd: rawnand: stm32_fmc2: move all registers mtd: rawnand: stm32_fmc2: use regmap APIs mtd: rawnand: stm32_fmc2: use stm32_fmc2 structure in nfc controller mtd: rawnand: stm32_fmc2: add new MP1 compatible string .../devicetree/bindings/mfd/st,stm32-fmc2.yaml | 370 ++++++ drivers/bus/Kconfig | 11 + drivers/bus/Makefile | 1 + drivers/bus/stm32-fmc2-ebi.c | 1093 +++++++++++++++++ drivers/mfd/Kconfig | 12 + drivers/mfd/Makefile | 1 + drivers/mfd/stm32-fmc2.c | 120 ++ drivers/mtd/nand/raw/Kconfig | 3 + drivers/mtd/nand/raw/stm32_fmc2_nand.c | 1273 +++++++++----------- include/linux/mfd/stm32-fmc2.h | 226 ++++ 10 files changed, 2407 insertions(+), 703 deletions(-) create mode 100644 Documentation/devicetree/bindings/mfd/st,stm32-fmc2.yaml create mode 100644 drivers/bus/stm32-fmc2-ebi.c create mode 100644 drivers/mfd/stm32-fmc2.c create mode 100644 include/linux/mfd/stm32-fmc2.h -- 1.9.1