Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1498714imm; Thu, 19 Jul 2018 02:47:45 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd2sybSViSyaiihnf0XgAslbtWc8YFxUw4XGVgYKnHQOZTemBxURhNVots7cGQ+p1v9wzS3 X-Received: by 2002:a63:bf08:: with SMTP id v8-v6mr9097190pgf.3.1531993665404; Thu, 19 Jul 2018 02:47:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531993665; cv=none; d=google.com; s=arc-20160816; b=t/7jHhiwNhodPLagzFvGHstxzQcc/jI+IhA5ueJ/b3Y3B06fduCNFiZrsiaPrrnqP9 VCU0jfEJehWe9zvjf8QxwQ6R3CKsDRdu9/odp+U0/qk4IedzdB3dZc6bpN0y0NTy+VFn Oo+TZ29Tyg3dA2K2yQzSvYX5S5QkthxZeYcmhFzQD3Xte1b6IU0Pw0ZI6YSfmAmp7eXy Xq6gimlYIY0APsnGLs9ctx+oS4DmU7Yo10/+VeygvtbXf6weMP//YYb1rg8vhDBNnexB Atf3IjBG5VtolpR1wcv6qi7VmLlX46gS2WfvqHKJT13XvkRnGuy2D9WOx+s3hUK7KlhJ WmjA== 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:arc-authentication-results; bh=W1guFzCyTCH+brPAtUVctKb6YKNn1UpzNuvZiypd8gs=; b=Xpt18jUrAOUD+4csIf27hkm1CKFBXXK3rfK7w6oRQrbk1jHjd4Pt5nENmpEwplP2ma 8Wj5rcA/kVBrcU8wuoiK1Mj0RO4ODH6iaVd5LYWEXLaN91GVdDwF13i1+OtagrEwJ8CG a1EgBig+GNs1QbBzQt0sq1Jz81vUvLRGKgGe/I7wxRuafqs2uv4/8W0ZhoLk8RxH7R5R ySH2bXqOz2SKv/MODimyKw9wio87U3/2TR/BHWFRhEcwsJWrJvnQdahpKxN/E3z2xsNG tPg5MrKrGeRrnl0w8FecalsiFWuhmZYB7CpZDDkfPKpNZw56JWq9gvDFF4nH+CDllZxG GaeQ== 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 e10-v6si5590859pge.48.2018.07.19.02.47.30; Thu, 19 Jul 2018 02:47:45 -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 S1728071AbeGSK3N (ORCPT + 99 others); Thu, 19 Jul 2018 06:29:13 -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 S1726894AbeGSK3M (ORCPT ); Thu, 19 Jul 2018 06:29:12 -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: 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 , , , , Subject: [RFC PATCH v2 1/2] dt-bindings: nand: meson: add Amlogic NAND controller driver Date: Thu, 19 Jul 2018 17:46:11 +0800 Message-ID: <20180719094612.5833-2-yixun.lan@amlogic.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180719094612.5833-1-yixun.lan@amlogic.com> References: <20180719094612.5833-1-yixun.lan@amlogic.com> 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 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 --- .../bindings/mtd/amlogic,meson-nand.txt | 95 +++++++++++++++++++ 1 file changed, 95 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 000000000000..31f910dcd27a --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.txt @@ -0,0 +1,95 @@ +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. + +Optional properties: +- amlogic,nand-enable-scrambler: enable the NAND scrambler feature. + - (absent) = scrambler is disabled + - (present) = scrambler is enabled + + +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>; + }; + }; + }; -- 2.18.0