Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp688997imu; Fri, 16 Nov 2018 08:42:23 -0800 (PST) X-Google-Smtp-Source: AJdET5fJ3ZLvHys30wZzUinnltazSg5Kc379jtW25CsAjT1jFj5cYGbEmSe04Lqq17nBtRYqhPiN X-Received: by 2002:a17:902:b60a:: with SMTP id b10mr10891445pls.303.1542386543255; Fri, 16 Nov 2018 08:42:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542386543; cv=none; d=google.com; s=arc-20160816; b=TjAoYGL/TyZAPB8oQyzJWxgea3biHMBuv5WcgUy2x6jVGmU75tBjbcB4PDvMBOojfl 2uk+n+pBTW0/YlhmkmnYsn1iNL9LZdoeXL+RZzdrWZbG6Rh5WRshelv/z3hbaAAR4vsa ogrgzv/zKdFth9g+uKs7ZQQFysAC7NVLql4IMVR8CK2nEqWGRUG75818kFMs7mvqbBkF cncbTXggDJhGR5rpxjPRcu6jXJLCe4NpaFsIKiWvxm7lsxB4s+RbRdnZkgVRVKco9bYk FoCAh7aLaXvFFycIjZnj990gVXKvzW+FCNzbTwBXbxRUGoA3iegQBRch6EhB98Kfy8jp 7ZGw== 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=8KpOem7mGaXxjHOr7x1YEjUF1cKV2NO2mM7IG70FGko=; b=j5WistXGUE3RIOW4F4zVzt1UF4w4O+JjhE7ggMXj4FoHqJyHi8yoqJpdD8Rx45xI7K NwQv3ZIhKs2xkjL/RxfWpyckHwK6fdVPf0p/a1wRGs5SyzgmxwCwIy5nesiTRHMvECRe hKLj2hrLZals+/i5wCJVB2FSA2NrUCgYUzHLU2SJzL5+3Zp6RBGJVv/r8S7im1PXTDKx 1PwqhH6FuapIjakaLR9IUcFPkKe9jG/gg35FP7WFCFkt7YaAPhhhvP2kYIjLYukActO/ JM/bV6heF2h7u8TO6uzeD52BeeIsDsjFxwW2l2wSbJLkxUwkUlabuGyZb617W+QsgS8P PMpg== 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 n26-v6si32505811pfe.218.2018.11.16.08.42.08; Fri, 16 Nov 2018 08:42:23 -0800 (PST) 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 S2390397AbeKQCyG (ORCPT + 99 others); Fri, 16 Nov 2018 21:54:06 -0500 Received: from mail-sh2.amlogic.com ([58.32.228.45]:20987 "EHLO mail-sh2.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390172AbeKQCyF (ORCPT ); Fri, 16 Nov 2018 21:54:05 -0500 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; Sat, 17 Nov 2018 00:40:58 +0800 From: Jianxin Pan To: Boris Brezillon , CC: Liang Yang , Yixun Lan , Jianxin Pan , David Woodhouse , Miquel Raynal , Brian Norris , Marek Vasut , Richard Weinberger , Jerome Brunet , Neil Armstrong , Martin Blumenstingl , Carlo Caione , Kevin Hilman , Rob Herring , Jian Hu , Hanjie Lin , Victor Wan , , , , Subject: [PATCH v7 1/2] dt-bindings: nand: meson: add Amlogic NAND controller driver Date: Sat, 17 Nov 2018 00:40:37 +0800 Message-ID: <1542386439-30166-2-git-send-email-jianxin.pan@amlogic.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1542386439-30166-1-git-send-email-jianxin.pan@amlogic.com> References: <1542386439-30166-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 Signed-off-by: Jianxin Pan Reviewed-by: Rob Herring --- .../devicetree/bindings/mtd/amlogic,meson-nand.txt | 60 ++++++++++++++++++++++ 1 file changed, 60 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..3983c11 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.txt @@ -0,0 +1,60 @@ +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 + "rx" - rx clock phase + "tx" - tx clock phase + +- 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>; + }; + + nand-controller@7800 { + compatible = "amlogic,meson-axg-nfc"; + reg = <0x0 0x7800 0x0 0x100>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = ; + + clocks = <&clkc CLKID_SD_EMMC_C>, + <&sd_emmc_c_clkc CLKID_MMC_DIV>, + <&sd_emmc_c_clkc CLKID_MMC_PHASE_RX>, + <&sd_emmc_c_clkc CLKID_MMC_PHASE_TX>; + clock-names = "core", "device", "rx", "tx"; + amlogic,mmc-syscon = <&sd_emmc_c_clkc>; + + pinctrl-names = "default"; + pinctrl-0 = <&nand_pins>; + + nand@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <1>; + + nand-on-flash-bbt; + }; + }; -- 1.9.1