Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3338293ybd; Tue, 25 Jun 2019 00:31:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqwT0qraPsJNWfLEtnosoTgBgK3roSKPXS2eXOX1vYwCVw5C2ZQy0Yj0/I4iiWd2H4s+gBmo X-Received: by 2002:a17:902:be10:: with SMTP id r16mr89469635pls.294.1561447885510; Tue, 25 Jun 2019 00:31:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561447885; cv=none; d=google.com; s=arc-20160816; b=wizOKWsy3IDB5sTPlbDgYT1HDxIVJtVW1Gm2HHSUpF87bUPgi1tNtGUqSFsPaJYAQf AOPViU11C0suzWhWud9rVs1J8tVVbT8/f98GzSagrWdIktQzNHN7t30NkVS19Lw2odZy jPzstj2l1ul+u9KUSKyqQjSOZcKJT6jaaDqI3dVTPlBJZ/UPw5IIAJpz3VCe0N2Y/YFq IbZVvjx7cQ4zCzdxuDrLk0V73PsQ9q5HeE0PiBdX/AerfMiE117grCrLjk8fsLQmGbf8 PTSv3pDCReP1Z2gcZc5iYBzmfvoAZUPLV4Yrlv/ob0BEyIWr6/KVOHP4CxttbTnVsHbI cZdg== 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=HUavlQ9MBs5sHgk99HYFBpD/7UbgQYqZaqSgQ1sBZjE=; b=GempnoLzIXtYuzt4Mdwiqkr8ZoQJuZXL7MeIetBt+kSJDhRlghu+kPKvaOubrA/Sbp Hn91uAUCmz0Bzvd7/mgYdmAwwWnHXP7L6esZ3Z1ITj8HZBEZry5MCBg0NYYbcxT0ZE7s rZOth+G6VL6fVam46SlMjc6VGv1u2/0XVqPem8mhUQgL8+Ru15q6fS7Y7GOefeicsllJ zP5jmJwle//q4sISojVsP/FOyTaL574jU2y4O7+XSGW5x6KhC55Osqu+GeLku9jglBRO uGB0poRl1PGJiN84cMzt6EGcCKebwOWch3YjekBvdTmDbpBfIghVGmssjllv5xJ6EYsQ zjjA== 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 v197si1238636pgb.29.2019.06.25.00.31.09; Tue, 25 Jun 2019 00:31:25 -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 S1728614AbfFYFsj (ORCPT + 99 others); Tue, 25 Jun 2019 01:48:39 -0400 Received: from twhmllg3.macronix.com ([211.75.127.131]:34810 "EHLO TWHMLLG3.macronix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728563AbfFYFsf (ORCPT ); Tue, 25 Jun 2019 01:48:35 -0400 Received: from localhost.localdomain ([172.17.195.96]) by TWHMLLG3.macronix.com with ESMTP id x5P5mKt2093478; Tue, 25 Jun 2019 13:48:23 +0800 (GMT-8) (envelope-from masonccyang@mxic.com.tw) From: Mason Yang To: miquel.raynal@bootlin.com, marek.vasut@gmail.com, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, bbrezillon@kernel.org, dwmw2@infradead.org, computersforpeace@gmail.com, vigneshr@ti.com, paul.burton@mips.com, liang.yang@amlogic.com, richard@nod.at, anders.roxell@linaro.org, christophe.kerello@st.com, paul@crapouillou.net, jianxin.pan@amlogic.com, stefan@agner.ch, devicetree@vger.kernel.org Cc: juliensu@mxic.com.tw, lee.jones@linaro.org, masonccyang@mxic.com.tw, broonie@kernel.org Subject: [PATCH v4 2/2] dt-bindings: mtd: Document Macronix raw NAND controller bindings Date: Tue, 25 Jun 2019 14:10:56 +0800 Message-Id: <1561443056-13766-3-git-send-email-masonccyang@mxic.com.tw> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1561443056-13766-1-git-send-email-masonccyang@mxic.com.tw> References: <1561443056-13766-1-git-send-email-masonccyang@mxic.com.tw> X-MAIL: TWHMLLG3.macronix.com x5P5mKt2093478 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 | 26 ++++++++++++++++++++++ 1 file changed, 26 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..3d198e4 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/mxic-nand.txt @@ -0,0 +1,26 @@ +Macronix Raw NAND Controller Device Tree Bindings +------------------------------------------------- + +Required properties: +- compatible: should be "mxic,raw-nand-ctlr" +- reg: should contain 1 entrie for the registers +- reg-names: should contain "regs" +- interrupts: interrupt line connected to this NAND controller +- clock-names: should contain "ps_clk", "send_clk" and "send_dly_clk" +- clocks: should contain 3 entries for the "ps_clk", "send_clk" and + "send_dly_clk" clocks + +Example: + + nand: mxic-nfc@43c30000 { + compatible = "mxic,raw-nand-ctlr"; + reg = <0x43c30000 0x10000>; + reg-names = "regs"; + clocks = <&clkwizard 0>, <&clkwizard 1>, <&clkc 15>; + clock-names = "send_clk", "send_dly_clk", "ps_clk"; + + nand-ecc-mode = "soft"; + nand-ecc-algo = "bch"; + nand-ecc-step-size = <512>; + nand-ecc-strength = <8>; + }; -- 1.9.1