Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4148546imm; Mon, 17 Sep 2018 08:56:23 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYzT3BNHC2PiXRTjJTXaewapdl2vSQE6dS5A+2OzWETJnrOWETB1DATp4QZsm54kXikQcKU X-Received: by 2002:a63:4506:: with SMTP id s6-v6mr24490675pga.422.1537199783768; Mon, 17 Sep 2018 08:56:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537199783; cv=none; d=google.com; s=arc-20160816; b=dewot+1m/0JjCeLAecf3HN6Q2Gwib4od95PoFPbIQj3OQmznreupr1BI64KclQ+yEs vvGnjOcq+O/VrYmKHiTrd0aEPe1BCGChbwUlnnXIQ+LtDgs7+Kd1Llj0aMxOByVj5UWD RVJKWtBwOL0LOGhU59WlCcaSEFJTOiVtETh8dRPaDN//c/dI6QN42KtsaWQ1VzDcBUU4 KyRqDTl0aUhS29nix12M9/+/JNxG3xRsZDT15cINh+m1QHkkeR3TClMBHmZ6etmSTDWP we2BYDTfDcw1sxctOYYAJ+9Z6O+T4zN/9xsXFESNISgkjG6XykUNdFuI8Um9ooAwkndE KHMw== 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; bh=qwH2eFzHwzqYLZgtHZJYbkPj1cB6GMqibeloerirjzU=; b=AN8fS5umalIoQNvXVRO6zqtBuHdr/f8+qppUXWgBrHui3hOFGlO5jhvOP2y1G7xogb 0e2zPpIi62ddHTacPQ/lWh6ldA70G9hw5pc06LOw3fW2Emix+9r1zEIsWpvFeA5YuZOf WVFEN2Dt4tTDY5uzZNriONcp4o3wkL15ADjUhmxGFaWfiF6X/jpXfQlixEtN7MypoYHa iVldVh85JBJFL8hTuI0QFnZ9SvpfqwkG1DU72lwgTUheJV+Jx1HadkIY5oJTvw2H0X6i 2asGu8kUx8ir56lNC7R7/J8KS1KwUHp1GCFBOZLW9QgszPT3NuVGv+JU3lw5si+WMMMM SLvQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t31-v6si12082776pga.167.2018.09.17.08.56.08; Mon, 17 Sep 2018 08:56:23 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728578AbeIQVT1 (ORCPT + 99 others); Mon, 17 Sep 2018 17:19:27 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:51861 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727375AbeIQVT0 (ORCPT ); Mon, 17 Sep 2018 17:19:26 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w8HFnS6l005861; Mon, 17 Sep 2018 17:50:42 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2mgryeuyv7-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 17 Sep 2018 17:50:42 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 95A6D31; Mon, 17 Sep 2018 15:50:40 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag6node2.st.com [10.75.127.17]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 5B64551EC; Mon, 17 Sep 2018 15:50:40 +0000 (GMT) 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; Mon, 17 Sep 2018 17:50:38 +0200 From: To: , , , , , , , CC: , , , , Christophe Kerello Subject: [PATCH 0/3] mtd: rawnand: add STM32 FMC2 NAND flash controller driver Date: Mon, 17 Sep 2018 17:47:37 +0200 Message-ID: <1537199260-7280-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: SFHDAG6NODE1.st.com (10.75.127.16) To SFHDAG6NODE2.st.com (10.75.127.17) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-09-17_07:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christophe Kerello This patchset adds the support for the STMicroelectronics FMC2 NAND flash controller found on STM32MP SOCs. This patchset supports: - the command sequencer feature, a hardware accelerator for read/write within a page - the manual mode feature, useful for debug purpose - a maximum 8k page size - following ECC strength and step size - nand-ecc-strength = <8>, nand-ecc-step-size = <512> (BCH8) - nand-ecc-strength = <4>, nand-ecc-step-size = <512> (BCH4) - nand-ecc-strength = <1>, nand-ecc-step-size = <512> (Extended ecc based on HAMMING) This patchset has been tested on Micron MT29F8G08ABACAH4 (8-bit SLC NAND) and MT29F8G16ABACAH4 (16-bit SLC NAND) Christophe Kerello (3): dt-bindings: mtd: stm32_fmc2: add STM32 FMC2 NAND controller documentation mtd: rawnand: stm32_fmc2: add STM32 FMC2 NAND flash controller driver mtd: rawnand: stm32_fmc2: add manual mode .../devicetree/bindings/mtd/stm32-fmc2-nand.txt | 90 + drivers/mtd/nand/raw/Kconfig | 9 + drivers/mtd/nand/raw/Makefile | 1 + drivers/mtd/nand/raw/stm32_fmc2_nand.c | 1980 ++++++++++++++++++++ 4 files changed, 2080 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/stm32-fmc2-nand.txt create mode 100644 drivers/mtd/nand/raw/stm32_fmc2_nand.c -- 1.9.1