Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1498676imm; Thu, 19 Jul 2018 02:47:41 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdvqeSNG7K2qBefd9o3fjxOKV24gJV24FJzIUSKz5C3TuczPXaWwAERiECuezcVZEOZsk5x X-Received: by 2002:a17:902:bc49:: with SMTP id t9-v6mr9424863plz.116.1531993661516; Thu, 19 Jul 2018 02:47:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531993661; cv=none; d=google.com; s=arc-20160816; b=0+xBLg3zZuBSnJh651AT612l3UbK+mJ4R9u/5heAZrvkq74mcw5yIE9AI9uUvEUuBr b0+outdUOP9DL9nrmmfVLMrR3IGd/x3QDeJGfICLhIAuAKmf7bPkByaL3WLD8jG1Ur0c cMUYWxxUBPkXu/jTqioIrWFzfsA721LkCpIT2cg1jMFr+YJdygqs2Wn1tOeTYGhHxYqJ 6zN1kIHqLaPEpZKvAR50hf9mrmmb6L8nI7F+xpr5CjlzxAYovrs1FlqEGu2hAnErXzyD wX6d0LDz0JWNlhi2/a+P5eqsKiYk6RgUfni27AB1QBhvF5gaTr5XIGAwEpayr+d7htDn HzAg== 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:arc-authentication-results; bh=iA/vjYk/IRbIhNTOj+sVrof1VSVPFI9yRkGA8G8NzAg=; b=TX7Du54dHJw9ArBKB1V0KdZiXNTVEAZ9njKXJeGuA9vNqj/dpII32hjpLMZKvOEYGS 6W+a1QWJWsfy07Ga6iz5mxFS2vPVZpWmu0B1mfs7StHvP1NHCd6kaHhlNCBZtWR0gZ+N O7CBRCkoRgRxOhrCFhqMURr5/XDOOavk7sxOZd0qY6Ujmz5iC4OyYgAkowsnt8TRtDR+ IFBXxB7I/jdDMOEZZzVLttW+5Rj28bKQ5lJaNu/MmBa2+brf7rcfCQ9bpRZfrg/KDP6p cOnnmgwmdXckQwuWpLRYFpMGyYrv0RUyGs3NfWJlayLikg6oNXSPGczDTf/6e19RTnyg 0rmg== 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 g9-v6si5384310plb.103.2018.07.19.02.47.26; Thu, 19 Jul 2018 02:47:41 -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 S1727449AbeGSK3K (ORCPT + 99 others); Thu, 19 Jul 2018 06:29:10 -0400 Received: from mail-sh2.amlogic.com ([58.32.228.45]:56724 "EHLO mail-sh2.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726894AbeGSK3K (ORCPT ); Thu, 19 Jul 2018 06:29:10 -0400 Received: from ofmlt.linux-actions.org (10.18.20.235) by mail-sh2.amlogic.com (10.18.11.6) with Microsoft SMTP Server id 15.0.1320.4; Thu, 19 Jul 2018 17:46:07 +0800 From: Yixun Lan To: Boris Brezillon , CC: Yixun Lan , David Woodhouse , Brian Norris , Marek Vasut , Richard Weinberger , Jerome Brunet , Neil Armstrong , Martin Blumenstingl , Carlo Caione , Kevin Hilman , Rob Herring , Jian Hu , Liang Yang , , , , Subject: [RFC PATCH v2 0/2] mtd: rawnand: meson: add Amlogic NAND driver support Date: Thu, 19 Jul 2018 17:46:10 +0800 Message-ID: <20180719094612.5833-1-yixun.lan@amlogic.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.18.20.235] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These two patches try to add initial NAND driver support for Amlogic Meson SoCs, current it has been tested on GXL(p212) and AXG(s400) platform. Note this patch series actually depend on the eMMC clkc patch[2] which still not merged. Changes since v1 at [1]: - adopt property amlogic,nand-enable-scrambler - thanks Martin - drop nand pins in DT - convert clk access to emmc clkc model - fix regiser field definition alignment - convert devm_kmalloc to kmalloc API - drop nand-user-mode - parse cs id from DT - rework n2m, m2n function - explain why insert two "IDLE" command - implement exec_op() - drop meson_nfc_get_nand_chip_dts() - release resource once error occur in meson_nfc_nand_chips_init(), - call nand_cleanup(nand) once mtd_device_register fail Items not addressed in this version: - convert to ECC conf helper() - how to construct mtd->name [1] https://lkml.kernel.org/r/20180613161314.14894-1-yixun.lan@amlogic.com [2] https://lkml.kernel.org/r/20180712211244.11428-1-yixun.lan@amlogic.com Liang Yang (1): dt-bindings: nand: meson: add Amlogic NAND controller driver Yixun Lan (1): mtd: rawnand: meson: add support for Amlogic NAND flash controller .../bindings/mtd/amlogic,meson-nand.txt | 95 ++ drivers/mtd/nand/raw/Kconfig | 10 + drivers/mtd/nand/raw/Makefile | 1 + drivers/mtd/nand/raw/meson_nand.c | 1333 +++++++++++++++++ 4 files changed, 1439 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/amlogic,meson-nand.txt create mode 100644 drivers/mtd/nand/raw/meson_nand.c -- 2.18.0