Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2334109ybl; Sun, 18 Aug 2019 23:56:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqyUgHe7lvfjs7y52eE/++EISmdbn89ytn6LRA0KhKygkO9s+V7sdrK//Q3KpYEocNdrET7B X-Received: by 2002:a17:90a:f0c7:: with SMTP id fa7mr19588079pjb.115.1566197763606; Sun, 18 Aug 2019 23:56:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566197763; cv=none; d=google.com; s=arc-20160816; b=0saqjJkSUckHZHHPkLOM75izJfOxr02A5RaGNuH/R14Hshac81kZzomyaQxn/bM332 KDlG+jl0LijHTRwj0RIvd7Z1l0ThMNBi3wgC+jJ8XOGtVYrZfloVfanahT6jCTMg7e7D GWcpK20Axz3FclIOS0BNbJNQZ9/oazDfcxf7bM9YooMmTQnzFkzdNfO8nZMRs7oagpWD bpoh5kmXA1MWvmQPx51aVvFTm1p/CXRwDctWf3BTqh1us24PVZAM7aiKAbp7l91tDW+k uv1rxSMZbddVihiHIw1/Soa/tVa0ksuCi50x8nc19UUV586SWtgB84pdbQ+E4GDTE7fo M5GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=dbGbAGHmqdiqIE7fRJvss1xu5y2QnnO8+HoALEzjpLI=; b=hRc8/A72rHCFV6KFqHP8YGDzj4wL7Yrc0VuosfwHuxU3w5A4lBJ/If+wbvs21SuHZS WIxwAUkMWnJ2R3bbPFohq9bUnsB0N5hfucg5ijfc76MDo+t5kHCN+JdG3gZdNCtisqjn etvcuKrA8iNVNLJ65hAWjSH5honRzy0H9z1FVNnYVlvW0CJT73L5YVG8vXxbljK0VwKI t2ZCfQvemEhlDeZ8MEzNW1252w/7O0MGBMLVTi1vu+CyhReBMUO+SqGNyVudKsysDu8l sBNQf4ZtVPCcm3vUayFRTVZrlchPYBg46Lu5K6+cOX0mp+YvQoE2P50IKKudIrTu4ewQ zsvg== 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 f15si9863509pfn.41.2019.08.18.23.55.48; Sun, 18 Aug 2019 23:56:03 -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 S1726814AbfHSGyf (ORCPT + 99 others); Mon, 19 Aug 2019 02:54:35 -0400 Received: from twhmllg4.macronix.com ([211.75.127.132]:59675 "EHLO TWHMLLG4.macronix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725790AbfHSGye (ORCPT ); Mon, 19 Aug 2019 02:54:34 -0400 Received: from localhost.localdomain ([172.17.195.96]) by TWHMLLG4.macronix.com with ESMTP id x7J6sIRK002951; Mon, 19 Aug 2019 14:54:21 +0800 (GMT-8) (envelope-from masonccyang@mxic.com.tw) From: Mason Yang To: miquel.raynal@bootlin.com, richard@nod.at, marek.vasut@gmail.com, dwmw2@infradead.org, bbrezillon@kernel.org, computersforpeace@gmail.com, vigneshr@ti.com, robh+dt@kernel.org, stefan@agner.ch, mark.rutland@arm.com Cc: lee.jones@linaro.org, juliensu@mxic.com.tw, linux-kernel@vger.kernel.org, paul.burton@mips.com, liang.yang@amlogic.com, linux-mtd@lists.infradead.org, masonccyang@mxic.com.tw, anders.roxell@linaro.org, christophe.kerello@st.com, paul@crapouillou.net, devicetree@vger.kernel.org Subject: [PATCH v7 2/2] dt-bindings: mtd: Document Macronix raw NAND controller bindings Date: Mon, 19 Aug 2019 15:19:09 +0800 Message-Id: <1566199149-5669-3-git-send-email-masonccyang@mxic.com.tw> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1566199149-5669-1-git-send-email-masonccyang@mxic.com.tw> References: <1566199149-5669-1-git-send-email-masonccyang@mxic.com.tw> X-MAIL: TWHMLLG4.macronix.com x7J6sIRK002951 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document the bindings used by the Macronix raw NAND controller. Signed-off-by: Mason Yang --- .../devicetree/bindings/mtd/mxic-nand.txt | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/mxic-nand.txt diff --git a/Documentation/devicetree/bindings/mtd/mxic-nand.txt b/Documentation/devicetree/bindings/mtd/mxic-nand.txt new file mode 100644 index 0000000..46c5529 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/mxic-nand.txt @@ -0,0 +1,36 @@ +Macronix Raw NAND Controller Device Tree Bindings +------------------------------------------------- + +Required properties: +- compatible: should be "mxic,multi-itfc-v009-nand-controller" +- reg: should contain 1 entry for the registers +- #address-cells: should be set to 1 +- #size-cells: should be set to 0 +- interrupts: interrupt line connected to this raw NAND controller +- clock-names: should contain "ps", "send" and "send_dly" +- clocks: should contain 3 phandles for the "ps", "send" and + "send_dly" clocks + +Children nodes: +- children nodes represent the available NAND chips. + +See Documentation/devicetree/bindings/mtd/nand-controller.yaml +for more details on generic bindings. + +Example: + + nand: nand-controller@43c30000 { + compatible = "mxic,multi-itfc-v009-nand-controller"; + reg = <0x43c30000 0x10000>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = ; + clocks = <&clkwizard 0>, <&clkwizard 1>, <&clkc 15>; + clock-names = "send", "send_dly", "ps"; + + nand@0 { + reg = <0>; + nand-ecc-mode = "soft"; + nand-ecc-algo = "bch"; + }; + }; -- 1.9.1