Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp1864581imc; Fri, 22 Feb 2019 12:41:35 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ+R2iAF0x21h8RbDFN6gMA61odlQXaShJKBuTwnhuaooYthEPTFWw14lfrVvi6xieU+8TQ X-Received: by 2002:a63:5153:: with SMTP id r19mr5698497pgl.281.1550868095515; Fri, 22 Feb 2019 12:41:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550868095; cv=none; d=google.com; s=arc-20160816; b=LLSgWu+Btt04OfgfdvQb6+bEgDRwzBkW55Ut8sr+1/K3L89Nst/tROGgjl84aAJB/k OJ42PnrN03sYtcpSJSS0mNmazx5ZerVlfMSCAIIErfRvqzZxsrwc7tnSxLj31jW/6jOp 4iepuVl4s9dyvosV/Irf4PNdHOiwaipbO9N9iTB0yql9d1YIgklNnowrgOjjqhvasXjC fm1+IcyBUK0mtswyKPz3luciB5KHfT0o4eKceuqG7x9T5VMtYbs2DF9g6almL/5LNeap 6fiRrLDdRQqjH5wElmR4OMqphjG+I3KROQFzN4mSgxQt5mShBtKggdX/kCIwQM/NSunG T/7A== 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=k6Nt+rTOyhB130p46hK42kJOh3SKIT6oOPXdqmBAy3o=; b=IqkMqOOMJhImuTgKrWPnS21K7KjEaryym6Vd6P3PF+hzl8gpDXT08Vhhvze+KdRFG6 G3cv13dYSm2Mo3a3N8ua7pNMWUwtwFis4Og+pLdRfHDkMpirKqadXchQKEBiOnAs55FD s/RDvGyi1Lil0pXeh0XtWN5ePixtBYVn0D7Zpgt3yk7Z/9f6fwycx9aE7c+fJA17GnEr XvoIA/bb6cBFdTKPzQDlN1HqooFJVcxPmQmsEkUtCTkUmQdWozxuxYJwwXqrEhyWJxXO 2JmO0/mVmvSH4oURYAxmLGNbgxdUcnsXZfAqGS68KCbTPW+KE/8wCK94IApcrbROvlJ/ m9Fw== 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 z10si2182580pgf.549.2019.02.22.12.41.19; Fri, 22 Feb 2019 12:41:35 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726859AbfBVUkz (ORCPT + 99 others); Fri, 22 Feb 2019 15:40:55 -0500 Received: from mail-oi1-f194.google.com ([209.85.167.194]:41414 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725821AbfBVUky (ORCPT ); Fri, 22 Feb 2019 15:40:54 -0500 Received: by mail-oi1-f194.google.com with SMTP id e7so2757302oia.8; Fri, 22 Feb 2019 12:40:54 -0800 (PST) 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=k6Nt+rTOyhB130p46hK42kJOh3SKIT6oOPXdqmBAy3o=; b=q8gpzZl5mFt42d2SawQ9ZLibYskoTvLoq49r3sSCSJ/btP+Os8c7rCegiZJ/JIQYlC SwZ3DJ1As4/NaqNyoRAV5/oK9c45WVZ2mwnoyFeUkGk3lzP5jMEnmeMP2JmZJ2FvOr1i IiA1dAd55GdjZ1/nifH1CRC11rVpTRq8sNsy6Eo+1CGyx0sIYPkFIn94H6aAC7zOrom2 hUQqPNaP27keSK2cplXrGQwTNF+QhBwNSWgXRaKeUwqfIwQOsXLabbiBIYTqGPGUnltW tT/WaULU+2UAJT7gjeAusKjFfnQxWdoUPmbPWKUaqKAnvbPYtozxKXk4z5z/Xax3e5lc PQew== X-Gm-Message-State: AHQUAuamwIKGytgYcivEkJqdpw6ZWyf+VJ4OU8w84qQAde4UDuEB1QjH tyrDpfd/E2cx2piJ3AzV9IFk0Hg= X-Received: by 2002:a54:4606:: with SMTP id p6mr3572245oip.162.1550868053511; Fri, 22 Feb 2019 12:40:53 -0800 (PST) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id n76sm1123335ota.51.2019.02.22.12.40.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 Feb 2019 12:40:52 -0800 (PST) Date: Fri, 22 Feb 2019 14:40:52 -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: [PATCH v2 2/2] dt-bindings: nand: Add Cadence NAND controller driver Message-ID: <20190222204052.GA17855@bogus> References: <20190219161406.4340-1-piotrs@cadence.com> <20190219161920.26602-1-piotrs@cadence.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190219161920.26602-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 Tue, Feb 19, 2019 at 04:19:20PM +0000, Piotr Sroka wrote: > Signed-off-by: Piotr Sroka > --- > 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 > under the NAND controller node > --- > .../bindings/mtd/cadence-nand-controller.txt | 48 ++++++++++++++++++++++ > 1 file changed, 48 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..3d9b4decae24 > --- /dev/null > +++ b/Documentation/devicetree/bindings/mtd/cadence-nand-controller.txt > @@ -0,0 +1,48 @@ > +* Cadence NAND controller > + > +Required properties: > + - compatible : "cdns,hpnfc" Only one version of IP or is that discoverable? > + - 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 "cadence_reg" and "cadence_sdma" 'cadence_' part is pointless. > + - interrupts : The interrupt number. > + - clocks: phandle of the controller core clock (nf_clk). > + - Children nodes represent the available NAND chips. Need a blank line and remove the '-' as it's not a property. > + > +Required properties of NAND chips: > + - reg: shall contain the native Chip Select ids from 0 to max supported by > + the cadence nand flash controller > + > +Optional properties: For child nodes? If not move before child nodes. > + - dmas: shall reference DMA channel associated to the NAND controller > + - cdns,board-delay : Estimated Board delay. The value includes the total > + 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 Units? Use unit suffix as defined in property-units.txt. > + > +See Documentation/devicetree/bindings/mtd/nand.txt for more details on > +generic bindings. > + > +Example: > + > +nand_controller: nand-controller @60000000 { space ^ > + compatible = "cdns,hpnfc"; > + reg = <0x60000000 0x10000>, <0x80000000 0x10000>; > + reg-names = "cadence_reg", "cadence_sdma"; > + clocks = <&nf_clk>; > + cdns,board-delay = <4830>; > + interrupts = <2 0>; > + nand@0 { > + reg = <0>; > + label = "nand-1"; > + }; > + nand@1 { > + reg = <1>; > + label = "nand-2"; > + }; > + > +}; > -- > 2.15.0 >