Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1645629imm; Fri, 7 Sep 2018 03:58:56 -0700 (PDT) X-Google-Smtp-Source: ANB0VdayibD74neKci1h/OD/mLzXisP1qJ0EiSoR21ArAvy9EhB6ACNgBIYVBdW6mdKfX8QAd0p9 X-Received: by 2002:a62:438f:: with SMTP id l15-v6mr8049725pfi.196.1536317936602; Fri, 07 Sep 2018 03:58:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536317936; cv=none; d=google.com; s=arc-20160816; b=vVjJyQrdDtFfre0Q7Az3RZFfGOGv8ys1Z6mJAuP38pkAP1i13cBEEuuL+RZBJCLYAe jMYj1LMCEmBV6HjKpwKFTit48JYwL69a7IG5LpoBdEltP5ooVfmyzxdfaNbst473Jzfi EghZwczUa/bntL1Ek1eT8MvB2J9zVDibBJEMemNDWtBhZ/dOKx7BjMWWSpV8pHS7DISn aCQ6qMB3wsmjW1gGdO0eoFwFErAg2+vKeoGQw8geNbTJlWjwCcR1GEBD2MSZp9kf72Zd Mq5aPu/mPxlkVvCCRMGGEbvmqR+wdvQ0cef920j34n4Xsb7JmcipSeXTP2QTrW++Ji3T d6ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=lFDeMK3f/X66xu2IcMaCFLEhMz0wlrNao/ZuiNhiHm0=; b=aIbE8UvYby8E0r1CJQMrxZz7x29S7pyb/P9MoW/zv9R20MiqJ2649AyELCeXFJX+VO ki5ZL0Ut8QnIBJ4rKckzKoAUjEY/32riE1gFF1LXO0FdGREtZncIo7+gcoCOihD0bgMU u3NHaZH+RTH6ChPGj/Fk1LI2VotqGlUrLBZAFjbkiG0F2oN4rzmzUMN4zUuGY4v/EV3j F/dMPgjJsLQrVVV89kQ3Z8NYe3A6ZyUlVJnBzMcKJgh/bPNaPTd1lbx5b9+UGWTsPu1B XGJGBGIixHaD+x+h4p4E7mmawPRxQ8Ui6FGMbCCSb3Jvo1hrQJA+BUogGWxY9oHgHBg4 YcDw== 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 u7-v6si7615849plr.46.2018.09.07.03.58.41; Fri, 07 Sep 2018 03:58:56 -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 S1728794AbeIGPh4 (ORCPT + 99 others); Fri, 7 Sep 2018 11:37:56 -0400 Received: from mail-sh2.amlogic.com ([58.32.228.45]:19408 "EHLO mail-sh2.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727785AbeIGPhy (ORCPT ); Fri, 7 Sep 2018 11:37:54 -0400 Received: from localhost.localdomain (10.18.11.217) by mail-sh2.amlogic.com (10.18.11.6) with Microsoft SMTP Server id 15.0.1320.4; Fri, 7 Sep 2018 18:57:47 +0800 From: Jianxin Pan To: Boris Brezillon , CC: Liang Yang , Yixun Lan , David Woodhouse , Brian Norris , Marek Vasut , Richard Weinberger , Jerome Brunet , Neil Armstrong , Martin Blumenstingl , Carlo Caione , Kevin Hilman , Rob Herring , Jian Hu , Jianxin Pan , Hanjie Lin , Victor Wan , , , , Subject: [RFC PATCH v3 1/2] dt-bindings: nand: meson: add Amlogic NAND controller driver Date: Fri, 7 Sep 2018 18:57:10 +0800 Message-ID: <1536317831-58056-2-git-send-email-jianxin.pan@amlogic.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1536317831-58056-1-git-send-email-jianxin.pan@amlogic.com> References: <1536317831-58056-1-git-send-email-jianxin.pan@amlogic.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.18.11.217] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Liang Yang Add Amlogic NAND controller dt-bindings for Meson SoC, Current this driver support GXBB/GXL/AXG platform. Signed-off-by: Liang Yang Signed-off-by: Yixun Lan --- .../devicetree/bindings/mtd/amlogic,meson-nand.txt | 91 ++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/amlogic,meson-nand.txt diff --git a/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.txt b/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.txt new file mode 100644 index 0000000..655a778 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.txt @@ -0,0 +1,91 @@ +Amlogic NAND Flash Controller (NFC) for GXBB/GXL/AXG family SoCs + +This file documents the properties in addition to those available in +the MTD NAND bindings. + +Required properties: +- compatible : contains one of: + - "amlogic,meson-gxl-nfc" + - "amlogic,meson-axg-nfc" +- clocks : + A list of phandle + clock-specifier pairs for the clocks listed + in clock-names. + +- clock-names: Should contain the following: + "core" - NFC module gate clock + "device" - device clock from eMMC sub clock controller + +- pins : Select pins which NFC need. +- nand_pins: Detail NAND pins information. +- amlogic,mmc-syscon : Required for NAND clocks, it's shared with SD/eMMC + controller port C + +Optional children nodes: +Children nodes represent the available nand chips. + + + +Other properties: +see Documentation/devicetree/bindings/mtd/nand.txt for generic bindings. + +Example demonstrate on AXG SoC: + + sd_emmc_c_clkc: mmc@7000 { + compatible = "amlogic,meson-axg-mmc-clkc", "syscon"; + reg = <0x0 0x7000 0x0 0x800>; + status = "okay"; + }; + + nand: nfc@7800 { + compatible = "amlogic,meson-axg-nfc"; + reg = <0x0 0x7800 0x0 0x100>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = ; + status = "disabled"; + + clocks = <&clkc CLKID_SD_EMMC_C>, + <&sd_emmc_c_clkc CLKID_MMC_DIV>; + clock-names = "core", "device"; + amlogic,mmc-syscon = <&sd_emmc_c_clkc>; + + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&nand_pins>; + + nand@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <1>; + + nand-on-flash-bbt; + nand-ecc-mode = "hw"; + nand-ecc-strength = <8>; + nand-ecc-step-size = <1024>; + + amlogic,nand-enable-scrambler; + + partition@0 { + label = "boot"; + reg = <0x00000000 0x00200000>; + read-only; + }; + partition@200000 { + label = "env"; + reg = <0x00200000 0x00400000>; + }; + partition@600000 { + label = "system"; + reg = <0x00600000 0x00a00000>; + }; + partition@1000000 { + label = "rootfs"; + reg = <0x01000000 0x03000000>; + }; + partition@4000000 { + label = "media"; + reg = <0x04000000 0x8000000>; + }; + }; + }; -- 1.9.1