Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8015838ybi; Tue, 9 Jul 2019 07:49:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqy7oA9NPQ2ScXzkyQ8x/wlvrkzjRajyDWpOCqyy1NFpVghaA7Xs2GXfPzLfUWCvmqwk7y92 X-Received: by 2002:a17:90a:2486:: with SMTP id i6mr449427pje.125.1562683794874; Tue, 09 Jul 2019 07:49:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562683794; cv=none; d=google.com; s=arc-20160816; b=QYzdS1/rAoTE0y0eqNpD4ku9h53O9SA4/XjrNfubOc3I+J+qkiA1cr++8quGpLPupC cH5WbXXHTQjkASNt3DVD2Pq8trDtBnQArXVYm+3xgJ8QRFSBQlmoJeTo8CMENFRPee2/ jdPT5rQVJ2+IbcKefVLdsQ0VNURKYHkJOQqG4S2k/m5TSpD5j7GcGXc/ZCmCVsvskrmT tJxnVsUj4DrJEzLvH83PLGd6mI9mS7FFvfUEq9HSaYDPU3nYLkbNMw9rbqZwcMlUNWxO YF7mFzgh9mov3SnaWBvheUaEYB4g2ZJnnwuHqsQokq09FW8zmfczmJGw2M8W7Ip/ExWS +hlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=T/Vs1PK7xFKDrlW3gYSloAnKpvLJ7R0MVGjuRw+/My8=; b=wS+RXRF+j0wqLZ6Frq5p9QudIQSmXNl11JuivqKAJ+IdEuWsoQBNQ2Uok56kIxikzB QwV8hjWJr84TPSxLda9qPpA2vRerPQ+pOsHaHCMaHmy4iTwk9fZdLrtXnezV0x2m42Oo Mt3whSHW59gRPGs9qPJAWF2U9jnNVxf86KxXL+M0vXDd9XNB1cChrw9RYeRJHF80br5q JgAehr3JPdag4Zm1lDbolnahEiCSyzxpUBwIPWoYkokUrcJGpvdSCFcNx5CZgwTftH+u IxeBi57kp1qc09wfUnzf2/q/ymy63GyCl66/kFkN5SS2QOu2qhWHipE8sPix29mfb4Du QdYw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v8si19400552pgg.228.2019.07.09.07.49.39; Tue, 09 Jul 2019 07:49:54 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726496AbfGIOs5 (ORCPT + 99 others); Tue, 9 Jul 2019 10:48:57 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:43053 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726025AbfGIOs5 (ORCPT ); Tue, 9 Jul 2019 10:48:57 -0400 Received: by mail-io1-f66.google.com with SMTP id k20so43673377ios.10; Tue, 09 Jul 2019 07:48:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=T/Vs1PK7xFKDrlW3gYSloAnKpvLJ7R0MVGjuRw+/My8=; b=Aik42ZQ03K/p/LiQ+UxOCm0utOs0f60yFYR3CckErcaHkDPrzxOF8LKBHlOsHIixvy UQsCEEwHHu5iyD9NskL5ZPyYbToqsKbB1FiNYsd+qD+q/INR85nC/0tmu9Q4o4lbLUFy a8Q0wHUKrjeCei3qfS6r3r9PTBdZremeYoBOtNIAQfuV0/4yHn7khWED189Lok5ZzZKc Df9scvPI+/WjnECCLIKx4IvkD3ICTlL5vR7bsfRSo1ZLfe+OASWRKTrCNXE6WWP0Cr0q qH5pQO8sjwuOw43EaS1voaM6QRhvZBVEYhWsTwatUddcgXLpSgVspojvb4OliC4sWHpi bGhA== X-Gm-Message-State: APjAAAVzYDmyjLgbfpsMoHLCy+v73Ldoi0B0vX7clgXnNE5HjjF/eicj a4JngoJYrmw78GjEz99cEg== X-Received: by 2002:a02:878a:: with SMTP id t10mr28623549jai.112.1562683736075; Tue, 09 Jul 2019 07:48:56 -0700 (PDT) Received: from localhost ([64.188.179.251]) by smtp.gmail.com with ESMTPSA id r7sm19309768ioa.71.2019.07.09.07.48.54 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 09 Jul 2019 07:48:54 -0700 (PDT) Date: Tue, 9 Jul 2019 08:48:53 -0600 From: Rob Herring To: Piotr Sroka Cc: linux-kernel@vger.kernel.org, David Woodhouse , BrianNorris , Boris Brezillon , Marek Vasut , Richard Weinberger , Mark Rutland , linux-mtd@lists.infradead.org, devicetree@vger.kernel.org Subject: Re: [v3 2/2] dt-bindings: nand: Add Cadence NAND controller driver Message-ID: <20190709144853.GA23699@bogus> References: <20190614150956.31244-1-piotrs@cadence.com> <20190614151301.5371-1-piotrs@cadence.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190614151301.5371-1-piotrs@cadence.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 14, 2019 at 04:13:01PM +0100, Piotr Sroka wrote: > Signed-off-by: Piotr Sroka > --- > Changes for v3: > - add unit suffix for board_delay > - move child description to proper place > - remove prefix cadence_ for reg and sdma fields > Changes for v2: > - remove chip dependends parameters from dts bindings > - add names for register ranges in dts bindings > - add generic bindings to describe NAND chip representation > --- > .../bindings/mtd/cadence-nand-controller.txt | 51 ++++++++++++++++++++++ > 1 file changed, 51 insertions(+) > create mode 100644 Documentation/devicetree/bindings/mtd/cadence-nand-controller.txt > > diff --git a/Documentation/devicetree/bindings/mtd/cadence-nand-controller.txt b/Documentation/devicetree/bindings/mtd/cadence-nand-controller.txt > new file mode 100644 > index 000000000000..e485b87075bd > --- /dev/null > +++ b/Documentation/devicetree/bindings/mtd/cadence-nand-controller.txt > @@ -0,0 +1,51 @@ > +* Cadence NAND controller > + > +Required properties: > + - compatible : "cdns,hpnfc" Only 1 version of h/w features and bugs? 'hp-nfc' would be a bit more readable IMO. > + - reg : Contains two entries, each of which is a tuple consisting of a > + physical address and length. The first entry is the address and > + length of the controller register set. The second entry is the > + address and length of the Slave DMA data port. > + - reg-names: should contain "reg" and "sdma" > + - interrupts : The interrupt number. > + - clocks: phandle of the controller core clock (nf_clk). > + > +Optional properties: > + - dmas: shall reference DMA channel associated to the NAND controller > + - cdns,board-delay_ps : Estimated Board delay. The value includes the total s/_/-/ > + round trip delay for the signals and is used for deciding on values > + associated with data read capture. The example formula for SDR mode is > + the following: > + board_delay = RE#PAD_delay + PCB trace to device + PCB trace from device > + + DQ PAD delay > + > +Children nodes represent the available NAND chips. Child nodes... > + > +Required properties of NAND chips: > + - reg: shall contain the native Chip Select ids from 0 to max supported by > + the cadence nand flash controller > + > + > +See Documentation/devicetree/bindings/mtd/nand.txt for more details on > +generic bindings. > + > +Example: > + > +nand_controller: nand-controller @60000000 { remove space ^ > + > + compatible = "cdns,hpnfc"; > + reg = <0x60000000 0x10000>, <0x80000000 0x10000>; > + reg-names = "reg", "sdma"; > + clocks = <&nf_clk>; > + cdns,board-delay_ps = <4830>; > + interrupts = <2 0>; > + nand@0 { > + reg = <0>; > + label = "nand-1"; > + }; > + nand@1 { > + reg = <1>; > + label = "nand-2"; > + }; > + > +}; > -- > 2.15.0 >