Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2950976ybd; Thu, 27 Jun 2019 23:50:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqzBXDEWqIupkumK6BTdGmzFj2CFnFzJVdfq5MLxcYxC612FzflRyA5TlkUU3J1SXi/z3/Ti X-Received: by 2002:a17:90a:ad89:: with SMTP id s9mr11217164pjq.41.1561704620603; Thu, 27 Jun 2019 23:50:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561704620; cv=none; d=google.com; s=arc-20160816; b=BHEXkXzHltFM2WzI6Ilrl0wh4l7Jpc0BrhOCSs+qY2XLrGe9fVIzB5opu997d9ucjJ Jm7Klsd6sez2eg+kReVMcKFK3+pJYhnRjYE1u2S/aPYXgbK9xTAMtwjj/lAJvKhG4cw0 ER8mJ5HvOJykiHvbisAijMX0dnma2ntBejFh3USRj11T02Cdbsc3CfEFNkbfEfIAFtsg kiBhIJcNCZHsgN2kKNzc5ri7uvSzUtDjcKy9TzlaIhoL8chAyybvfj3GI0xAYBmnAnzs WYHGamqmlmtljuH5fui1EhybygDZr58qiZGae7ANE/WR3MSRF8QmhtIIESRz9IghYB9K llOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:from:message-id:mime-version:subject :cc:to:references:in-reply-to; bh=4Bswt5TgJRbTZ2ViS0nhTM17SURMxoC4jYRC8servUs=; b=yPmCXvfI0ewW1jNDgZQPuXxQze/bJcKU25X36BELCPqIu95igMLlZckFYrJsGkv73p anZWb4My/YAlY1YdbKPIL7VoY4uIrBhQG2onOE4TgVFVoBdR02SiStdKJwYk/9TEQ3YB Sinxv9YV0eZoAm7OFOmTJ8AL1/9ztmV7gDtOS/+eF/eFxjELRgBfUjbk4jx3FJ53RIq5 655/uJ1DEBsIw/dXYIPd2QtWR/HvlvUH0QQNJNfWe9NqN/eqRAHKY3qp0k7tC641pFqi ekTws3DyMq0YAGR+btbybo/UXuhFhJaqwasyymzc0AYf5UJRcEyG1R4XinJK/bgTd/Pg Ve0A== 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 w20si1261520plp.394.2019.06.27.23.50.04; Thu, 27 Jun 2019 23:50:20 -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 S1727280AbfF1GtY (ORCPT + 99 others); Fri, 28 Jun 2019 02:49:24 -0400 Received: from twhmllg3.macronix.com ([211.75.127.131]:44851 "EHLO TWHMLLG3.macronix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726827AbfF1GtX (ORCPT ); Fri, 28 Jun 2019 02:49:23 -0400 Received: from twhfmlp1.macronix.com (twhfm1p1.macronix.com [172.17.20.91]) by TWHMLLG3.macronix.com with ESMTP id x5S6m1Tv035815; Fri, 28 Jun 2019 14:48:01 +0800 (GMT-8) (envelope-from masonccyang@mxic.com.tw) Received: from MXML06C.mxic.com.tw (mxml06c.mxic.com.tw [172.17.14.55]) by Forcepoint Email with ESMTP id C8B2B7E87EA3F2CAB608; Fri, 28 Jun 2019 14:48:01 +0800 (CST) In-Reply-To: <20190627192609.0965f6d5@xps13> References: <1561443056-13766-1-git-send-email-masonccyang@mxic.com.tw> <1561443056-13766-3-git-send-email-masonccyang@mxic.com.tw> <20190627192609.0965f6d5@xps13> To: "Miquel Raynal" Cc: anders.roxell@linaro.org, bbrezillon@kernel.org, broonie@kernel.org, christophe.kerello@st.com, computersforpeace@gmail.com, devicetree@vger.kernel.org, dwmw2@infradead.org, jianxin.pan@amlogic.com, juliensu@mxic.com.tw, lee.jones@linaro.org, liang.yang@amlogic.com, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, marek.vasut@gmail.com, paul@crapouillou.net, paul.burton@mips.com, richard@nod.at, stefan@agner.ch, vigneshr@ti.com Subject: Re: [PATCH v4 2/2] dt-bindings: mtd: Document Macronix raw NAND controller bindings MIME-Version: 1.0 X-KeepSent: FBD1710A:54AC467B-48258427:0023FCA3; type=4; name=$KeepSent X-Mailer: Lotus Notes Release 8.5.3FP4 SHF90 June 10, 2013 Message-ID: From: masonccyang@mxic.com.tw Date: Fri, 28 Jun 2019 14:48:02 +0800 X-MIMETrack: Serialize by Router on MXML06C/TAIWAN/MXIC(Release 9.0.1FP10 HF265|July 25, 2018) at 2019/06/28 PM 02:48:01, Serialize complete at 2019/06/28 PM 02:48:01 Content-Type: text/plain; charset="US-ASCII" X-MAIL: TWHMLLG3.macronix.com x5S6m1Tv035815 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Miquel, > > 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" > > I would prefer "macronix,nand-controller" okay, will patch it. > > > +- reg: should contain 1 entrie for the registers > > entry > > > +- reg-names: should contain "regs" > > Not sure you need that? for a base address of ctlr registers. > > > +- 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 > > s/entries/phandles/ ? ? as I know that kernel views the phandle values as device tree structure information instead of device tree data and thus does not store them as properties. > > > + > > +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>; > > The last 4 lines are probably not needed. okay, will remove them. thanks for your review. best regards, Mason CONFIDENTIALITY NOTE: This e-mail and any attachments may contain confidential information and/or personal data, which is protected by applicable laws. Please be reminded that duplication, disclosure, distribution, or use of this e-mail (and/or its attachments) or any part thereof is prohibited. If you receive this e-mail in error, please notify us immediately and delete this mail as well as its attachment(s) from your system. In addition, please be informed that collection, processing, and/or use of personal data is prohibited unless expressly permitted by personal data protection laws. Thank you for your attention and cooperation. Macronix International Co., Ltd. ===================================================================== ============================================================================ CONFIDENTIALITY NOTE: This e-mail and any attachments may contain confidential information and/or personal data, which is protected by applicable laws. Please be reminded that duplication, disclosure, distribution, or use of this e-mail (and/or its attachments) or any part thereof is prohibited. If you receive this e-mail in error, please notify us immediately and delete this mail as well as its attachment(s) from your system. In addition, please be informed that collection, processing, and/or use of personal data is prohibited unless expressly permitted by personal data protection laws. Thank you for your attention and cooperation. Macronix International Co., Ltd. =====================================================================