From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aK1jQ-00048J-J8 for linux-mtd@lists.infradead.org; Fri, 15 Jan 2016 10:35:49 +0000 Received: by mail-wm0-x243.google.com with SMTP id l65so2124383wmf.3 for ; Fri, 15 Jan 2016 02:35:28 -0800 (PST) From: Romain Izard To: linux-mtd@lists.infradead.org, devicetree@vger.kernel.org Cc: Josh Wu , Nicolas Ferre , Yang Wenyou , Romain Izard Subject: [PATCH v2 0/8] mtd: atmel_nand: Add support for NAND Flash on SAMA5D2 Date: Fri, 15 Jan 2016 11:34:54 +0100 Message-Id: <1452854102-6125-1-git-send-email-romain.izard.pro@gmail.com> List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , The NAND Flash controller for SAMA5D2 has small differences that make it impossible to use the existing driver for SAMA5D3. This patchset uses the device tree's compatible string to get those differences, and the code is slightly modified to handle them. Base on v4.4 To apply on the Atmel Linux 4.1 branch, support for of_device_get_match_data needs to be backported, or the function itself open coded. Compile tested for sama5_defconfig, and tested on SAMA5D3xek as there is no existing SAMA5D2 board with NAND Flash memory (yet). V2 -> V1: - Rebase on v4.4 - Use of_device_get_match_data - Split message cleanup - Reword a small part of the atmel_nand device tree binding - Use 'caps' for all private data structures RFC -> V1: - Split the support of 32-bit ECC on SAMA5D2 in two commits - Fix the missing ECC strength configuration code Romain Izard (8): mtd: atmel_nand: Do not warn on bitflips mtd: atmel_nand: Simplify error messages mtd: atmel_nand: Use of_device_get_match_data mtd: atmel_nand: Support variable RB_EDGE interrupts dt-bindings: atmel_nand: Reword the documenation mtd: atmel_nand: Support PMECC on SAMA5D2 mtd: atmel_nand: Support 32-bit ECC strength ARM: at91/dt: sama5d2: add nand0 and nfc0 nodes .../devicetree/bindings/mtd/atmel-nand.txt | 31 ++++---- arch/arm/boot/dts/sama5d2.dtsi | 38 +++++++++ drivers/mtd/nand/atmel_nand.c | 89 +++++++++++++++++----- drivers/mtd/nand/atmel_nand_ecc.h | 9 ++- drivers/mtd/nand/atmel_nand_nfc.h | 3 +- 5 files changed, 136 insertions(+), 34 deletions(-) -- 2.5.0