Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp390070imu; Thu, 8 Nov 2018 22:30:05 -0800 (PST) X-Google-Smtp-Source: AJdET5d3JR06rIGA4avIawXSJBtkATsWm3MjHsRgvdfbwlEDcWbuLEBWufNSiDTubmofy9aU9DA+ X-Received: by 2002:a17:902:780f:: with SMTP id p15-v6mr7488012pll.197.1541745005530; Thu, 08 Nov 2018 22:30:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541745005; cv=none; d=google.com; s=arc-20160816; b=cBVnhhYyEOZ4w1hQgrTLixq1/ISHOruVC5l8LzBXChIPFB98kdS4cPTY0noAaP/LxI UoC9AODJe5jnCQyLLENL5h/9D4kW2tQe8pA99+PbZxRX/wiDjiRIH7M82JWrBCv7K3lU uYpMlfKiDa5U7rvw7Ow+jmOkxiUSUwto6TR4kWjVme8gsaYtrUAsC2OP2acVAW4yxteQ NCGZva+4aK6k4IkTxjCZ/sJZDB9W6GakulUKSsm94Y7neUkP6ORxrzqOqq35jP5VUJqj JIU1kmmpklRvXrOUwdGaG/TqaBuPnLVj8oG2jzHxQKwgB3SIWE7nNwv+UrMDwVMzn7xP G+Lg== 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 :references:in-reply-to:message-id:subject:cc:to:from:date; bh=QaUm79mL1gTU63dknrfCDcIsV6UzJoVvmpUkzuNjEqA=; b=QPU653VDT7ip5LWtP4pdhnBTVXUIZ3E5iZOmF4Q7i5FSv9Vltnu/Ci5i4znFTSsPTc whLKqdh8hKPwSqFPVWhg57KU2fCBcGyV33DvlLXI3VC7jBehV3h6FPDp/TkWRxTnKWqw 756iWpu14pYfiMhKEGxKRV99aLI+9om3/YzxoWHsZKa7FqD3U4ys3zK+MIcpwUl8xuzG Bxh0L9kpaTBEkom+Y43ZSo++21Tj/ZnhjV1sy3lBHZEIcffMlRxzQ3yHKUoYSzNp5h0M DSOzasCxeEnPPQHJ80o5rIUYqjgkuFioZv1tdHfXimPwVR8qqv9f8npv4Gv3+ufass1C yeIQ== 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 a4-v6si7971320pll.50.2018.11.08.22.29.26; Thu, 08 Nov 2018 22:30:05 -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 S1727797AbeKIQIH (ORCPT + 99 others); Fri, 9 Nov 2018 11:08:07 -0500 Received: from mail.bootlin.com ([62.4.15.54]:33646 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727693AbeKIQIH (ORCPT ); Fri, 9 Nov 2018 11:08:07 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 7115920787; Fri, 9 Nov 2018 07:29:00 +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 bbrezillon (unknown [91.160.177.164]) by mail.bootlin.com (Postfix) with ESMTPSA id 1B448206D8; Fri, 9 Nov 2018 07:29:00 +0100 (CET) Date: Fri, 9 Nov 2018 07:28:57 +0100 From: Boris Brezillon To: Naga Sureshkumar Relli Cc: , , , , , , , , , Subject: Re: [LINUX PATCH v12 1/3] dt-bindings: mtd: arasan: Add device tree binding documentation Message-ID: <20181109072857.75e86cb6@bbrezillon> In-Reply-To: <1541739641-17789-2-git-send-email-naga.sureshkumar.relli@xilinx.com> References: <1541739641-17789-1-git-send-email-naga.sureshkumar.relli@xilinx.com> <1541739641-17789-2-git-send-email-naga.sureshkumar.relli@xilinx.com> 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=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 9 Nov 2018 10:30:39 +0530 Naga Sureshkumar Relli wrote: > This patch adds the dts binding document for arasan nand flash controller > > Signed-off-by: Naga Sureshkumar Relli > --- > Changes in v12: > - Removed interrupt-parent description as it is implied as suggested by > Rob Herring > - Added missing ';' as required > Changes in v11: > - Updated compatible description as suggested by Boris > - Removed arasan-has-dma property > Changes in v10: > - None > Changes in v9: > - None > Changes in v8: > - Updated compatible and clock-names as per Boris comments > Changes in v7: > - Corrected the acronyms those should be in caps > Changes in v6: > - Removed num-cs property > - Separated nandchip from nand controller > Changes in v5: > - None > Changes in v4: > - Added num-cs property > - Added clock support > Changes in v3: > - None > Changes in v2: > - None > --- > .../devicetree/bindings/mtd/arasan_nand.txt | 32 ++++++++++++++++++++++ > 1 file changed, 32 insertions(+) > create mode 100644 Documentation/devicetree/bindings/mtd/arasan_nand.txt > > 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? Oh, and reg is not listed in the required props. > + > +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>; > + nand-ecc-mode = "hw"; > + }; > + };