Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp706072imu; Fri, 9 Nov 2018 04:55:08 -0800 (PST) X-Google-Smtp-Source: AJdET5cIBE6cbku2SQCkNuPbGLysWdwAVNQvkvrK7tqIkwFHDr5XHEcDbTGgryuc+PDND2rtIHY4 X-Received: by 2002:a63:ca44:: with SMTP id o4mr7407903pgi.258.1541768108753; Fri, 09 Nov 2018 04:55:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541768108; cv=none; d=google.com; s=arc-20160816; b=sanO/LmWhFknMi28Bvni5Vru4cLxnG/DrwAL8G9ruDi5rG/nXylxoyzdQL30s5owPj spyYTcXh5A0MnjprLl/uSsUXsFhc203NGop46hlNrNgcbSLJTpmYpGH75AikPTwgndcg Fgmb93fPWxjxYuuBfJ92hTq5kTS/Wgee/k3GB6Pdje8i/S/IQmUa9S0E/btbHh2L1sb9 Ybs5VOj8XfJuHnQuXGWRwtuM0RW9P4dMrbtA4v/YEq9IZe4101xX2wkaPczruq9U3eHU XR06hNz9yhe1n4J0oeT5UUr+dEWeEwuh/jXc6Q4OXkUKp9hrVSZxNqQ0+QUKB2+NqbVR 1g7A== 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=+d7QkHT4F+QK4xMjVQuYlYKMTph8WiEMJV86Aw8u/gQ=; b=iNB5N35S5//AfuNmTi81yEpUf+05sZ6aHn5+ttouAXH771ztiEyVpl/lXDNXNE0ufZ ZgcFLZ5btMEv10X7jNP3ygoKi0NqJ8+0a8qPF9tBcqZxpVJTnwnIKRvbYLOuXOLZG5GT eBzmj6Hz0rQwpW+cTx3PZXzD+2SiOrQ09OKdze7DPZacjORMDqLHkNMK3BP/SgC5L7we m/GWOA/JQCEdcd7OtSusYbw+54TIhXJ4KVAwk5I1rDR/Pe/vMBJdpU1AmePojd8gGWSc 5qxHjThWYs01NbdM5nMN9XC38pVkVZ4TZMz1n+WaUVmNuPj5qPtL7LAwAuUNgeFbf3qF sCVw== 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 p12si6730040pgl.106.2018.11.09.04.54.52; Fri, 09 Nov 2018 04:55:08 -0800 (PST) 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 S1727977AbeKIWes convert rfc822-to-8bit (ORCPT + 99 others); Fri, 9 Nov 2018 17:34:48 -0500 Received: from mail.bootlin.com ([62.4.15.54]:44794 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727676AbeKIWer (ORCPT ); Fri, 9 Nov 2018 17:34:47 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 497372072A; Fri, 9 Nov 2018 13:54:16 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.2 Received: from xps13 (aaubervilliers-681-1-30-49.w90-88.abo.wanadoo.fr [90.88.15.49]) by mail.bootlin.com (Postfix) with ESMTPSA id E485A2071E; Fri, 9 Nov 2018 13:54:05 +0100 (CET) Date: Fri, 9 Nov 2018 13:54:05 +0100 From: Miquel Raynal To: Naga Sureshkumar Relli Cc: Boris Brezillon , "richard@nod.at" , "dwmw2@infradead.org" , "computersforpeace@gmail.com" , "marek.vasut@gmail.com" , Michal Simek , "linux-mtd@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "nagasuresh12@gmail.com" , "robh@kernel.org" Subject: Re: [LINUX PATCH v12 1/3] dt-bindings: mtd: arasan: Add device tree binding documentation Message-ID: <20181109135405.3b93b267@xps13> In-Reply-To: References: <1541739641-17789-1-git-send-email-naga.sureshkumar.relli@xilinx.com> <1541739641-17789-2-git-send-email-naga.sureshkumar.relli@xilinx.com> <20181109072857.75e86cb6@bbrezillon> Organization: Bootlin X-Mailer: Claws Mail 3.16.0 (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 Naga, [...] > > > diff --git a/Documentation/devicetree/bindings/mtd/arasan_nand.txt > > > b/Documentation/devicetree/bindings/mtd/arasan_nand.txt > > > new file mode 100644 > > > index 0000000..b522daf > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/mtd/arasan_nand.txt > > > @@ -0,0 +1,32 @@ > > > +Arasan NAND Flash Controller with ONFI 3.1 support > > > + > > > +Required properties: > > > +- compatible: Should be "xlnx,zynqmp-nand", "arasan,nfc-v3p10" > > > +- reg: Memory map for module access > > > +- interrupts: Should contain the interrupt for the device > > > +- clock-name: List of input clocks - "sys", "flash" > > > + (See clock bindings for details) > > > +- clocks: Clock phandles (see clock bindings for details) > > > + > > > +Required properties for child node: > > > +- nand-ecc-mode: see nand.txt > > > > Why is it required? Can't you fallback to HW when this prop is missing? > Yes, we can. > Do you want me to update that in driver now? > Looks like you have some comments in driver as well, so while addressing those I will update the code to fallback to HW ECC when > It is missing. Yes, please. > > > Oh, and reg is not listed in the required props. > Which reg? > I already mention this " reg: Memory map for module access " in required properties. > > Thanks, > Naga Sureshkumar Relli > > > > > + > > > +For NAND partition information please refer the below file > > > +Documentation/devicetree/bindings/mtd/partition.txt > > > + > > > +Example: > > > + nfc: nand@ff100000 { > > > + compatible = "xlnx,zynqmp-nand", "arasan,nfc-v3p10"; > > > + reg = <0x0 0xff100000 0x1000>; > > > + clock-name = "sys", "flash"; > > > + clocks = <&misc_clk &misc_clk>; > > > + interrupt-parent = <&gic>; > > > + interrupts = <0 14 4>; > > > + #address-cells = <1>; > > > + #size-cells = <0>; > > > + > > > + nand@0 { > > > + reg = <0>; This one, for the CS line(s). > > > + nand-ecc-mode = "hw"; > > > + }; > > > + }; > Thanks, Miquèl