Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2992775ybd; Fri, 28 Jun 2019 00:44:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqwcRcYYz6MPKcJOzoDeXfI026Wr5Djm9t5EyJBJYQhhEdaEVEQWnTPFC+WIpev+rlaU8Jbv X-Received: by 2002:a17:90a:17c4:: with SMTP id q62mr11651291pja.104.1561707893715; Fri, 28 Jun 2019 00:44:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561707893; cv=none; d=google.com; s=arc-20160816; b=Ce68TauTFzy4hOwdDFtfeRqe4OzCo6nKwtePkwQ1OF7ecZBzY0VKIi0hBArzstWbO4 c9f/z9WGZpL1fWEAfQ+a7wvP846lZfpG0RnsWFQX3MgENIqfceSMkgRq9ARxZljbszVX fToRR1XFzhzZrgWpG4h046ncU9xHggU78w4rVSOP8PSNm+zyLLDk4/0Pp7ucU6RZA+5L p8yp47J4XZ+9GWiAp8Zfc5CsFvGIPl4PluxRkc8mGcRfKLdBFvQbkB8Ja7ZALT4kpKSt WKz8yjB/TsPvdopLomuGm1LHN1ak6PEbKFwyKZIcY13upW8hSq4pWm985Fv2tcXIMQ3O U3tQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=rhT4SoMO0hBzF7wpVKFTPiifpaN8SIf4b1qmgKD7jRE=; b=QLKAVH5QVI6e9go8VlTqX8pVJqTrS6YcDO27TGcLCIKIJHuVYJ5bFuZ2Lg+k4ao1Qh fCddks/N49VR8qBrH4cEeqgd3lePrd3MMR8P4EItXKI6/vyECJqNnrXULUpW0F3+Fu8K KjtoU5s3fVnST6lnn6yI50RWDWKy7GliO2iEwgCuT1CqS/i8/mxdnXTNMCvyKaVlp01U hp5f89SQ/jDGaOqvzHMdvvtj/Tlc+9ruxlkm6FYd7OCGImEQOVX2PywKDsNwMyaF7ZoO DTHnzwcLH1Ikh1Xuvy1ZKjOtTQujV6DPx1KOwDviavdgNRGTuxo20F2hRAAjjsnIbUQo oCyg== 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 n34si1453809pld.202.2019.06.28.00.44.38; Fri, 28 Jun 2019 00:44:53 -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 S1726620AbfF1HnB convert rfc822-to-8bit (ORCPT + 99 others); Fri, 28 Jun 2019 03:43:01 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:59717 "EHLO relay9-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726385AbfF1HnB (ORCPT ); Fri, 28 Jun 2019 03:43:01 -0400 X-Originating-IP: 86.250.200.211 Received: from xps13 (lfbn-1-17395-211.w86-250.abo.wanadoo.fr [86.250.200.211]) (Authenticated sender: miquel.raynal@bootlin.com) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 6B4AEFF803; Fri, 28 Jun 2019 07:42:51 +0000 (UTC) Date: Fri, 28 Jun 2019 09:42:50 +0200 From: Miquel Raynal To: masonccyang@mxic.com.tw 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, robh+dt@kernel.org Subject: Re: [PATCH v4 2/2] dt-bindings: mtd: Document Macronix raw NAND controller bindings Message-ID: <20190628094250.1fd84505@xps13> In-Reply-To: References: <1561443056-13766-1-git-send-email-masonccyang@mxic.com.tw> <1561443056-13766-3-git-send-email-masonccyang@mxic.com.tw> <20190627192609.0965f6d5@xps13> Organization: Bootlin X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mason, Please always Cc: Rob (robh+dt@kernel.org) when you send bindings related patches. masonccyang@mxic.com.tw wrote on Fri, 28 Jun 2019 14:48:02 +0800: > 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. Yes I know, I mean: you don't necessarily need the 'reg-names' property as it is supposed that the only entry will be the IP registers (unless there are more). I don't know what's Rob preference here but I would either drop the reg-names property or enhance the name, "regs" is terribly not descriptive. > > > +- 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. The bindings have nothing to do with the kernel views. They might actually be merged in a different project, out of the kernel. Thanks, Miquèl