Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1405446ybl; Fri, 16 Aug 2019 14:33:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqy7008tTqHpZSOSHnTbcgjOyR/rGqOqbNs7Fka0WIkASISusTZ/XIffIWxwgVJi2x4ETYuY X-Received: by 2002:a17:90a:a114:: with SMTP id s20mr9222934pjp.20.1565991213534; Fri, 16 Aug 2019 14:33:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565991213; cv=none; d=google.com; s=arc-20160816; b=ov0mrRa/san0BlrTrvQg/KJPUcL6Nkkv80+QgUYK9wcsRrnbqjsD8urholhhhBVCfu ERvFfaqPosNkLSu0SwVfEGBrG5+m3RSkYDIun1TuLAg2ppzGoOuA+QsBGVu9bh1dXk3F 1x4jo6RSGA9l5K5wfMhFE9GFtX9iYFvoVdUWFZnN6LyR9u/wG4UXAYBjVhzCg9SZw3oI IrmytSZQX1fA7GQaGleaVPr7PhMgwpgZczPAR22JNIcrIaLki5gAtBKs7EtEa5pxrzXu OhZbZHpHCiw2k5rEv/cqVuYp2pwlbpQWAs/EPoLJ2C81e1bEoFHa5G5RdP3lHoPY7KmA ++Sg== 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=cSkX6HP4edadRsvUTh8Dt4dFym0rz2BKxLaGaU9X7YM=; b=wTVNkK5em3S/6Pn/+dVWlCT3E0p5DRpARPiLfw4xX15dvbu2V1iT+0brdkXwlZU+OX 9qMt1shJj4rgE2kI9bYaH8gtLC5Bt9HPZ0XRHoHczjotP3GzO43TqCedQSnD9xvygNEH eJj64cDgzmjlt4qYx9BDOVOpbaaNpqTejZQzfvL0Dnfslg36T20V3eU5B/2NDcVGaeDL hM9ywKgEnqg9jQhlb69BOBQsaUZHq9iObp+c9sf/evOiC77O6bBqeA393/g65FVtXR0v bItt17yCZkjmbRX5iyL5/gY1jV4+MzUlA9EhMr3EVLtqGtJ8nlEXYRrERE1L2Sk28dTM /iWg== 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 a64si4641165pla.432.2019.08.16.14.33.17; Fri, 16 Aug 2019 14:33:33 -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 S1727716AbfHPVbO (ORCPT + 99 others); Fri, 16 Aug 2019 17:31:14 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:45141 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727684AbfHPVbN (ORCPT ); Fri, 16 Aug 2019 17:31:13 -0400 Received: by mail-oi1-f196.google.com with SMTP id v12so2155144oic.12; Fri, 16 Aug 2019 14:31:13 -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=cSkX6HP4edadRsvUTh8Dt4dFym0rz2BKxLaGaU9X7YM=; b=ZgUmVKfdwWwhiTQ2EErxp+cuevIMxDs5Nomwxj25zHdlAysAW9KDjh7TapJNbGWQMR MjXmGTNwO03D4vL6pLgf9SC7bGfTuAGDHuEo4mH3dCUi0feYYVgiA5HRo1QGXUrU1H5A uCWsFb2sdotKmqiDt1hCLCFkSBqgtJjaOdllMv5RZjO6wrYvFMv/7hFYaGmGm4jQEfyv 05VBfXXALmc+kSVZTCAIfUgIpoFFj/c0u5bL7aSwSV1EUgHlVL1VXl1stZyuJleSb5ZS 7i4F61EKjWoYrSy15fK082NwgXEulel53HMZ67EcyYWBNI2bpcYtU/4OUyE3SmzXbdvx fpjA== X-Gm-Message-State: APjAAAVo5e2QMtm1ZoKBKDdktwKZxM4EL1xQmSAOWXAPhYCfFm7KXact eGe3vIqH6qOICCCYHJZ4Gg== X-Received: by 2002:aca:fc14:: with SMTP id a20mr6589631oii.156.1565991072842; Fri, 16 Aug 2019 14:31:12 -0700 (PDT) Received: from localhost ([2607:fb90:1cdf:eef6:c125:340:5598:396e]) by smtp.gmail.com with ESMTPSA id q9sm1802485oij.5.2019.08.16.14.31.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Aug 2019 14:31:11 -0700 (PDT) Date: Fri, 16 Aug 2019 16:31:10 -0500 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, Kazuhiro Kasai Subject: Re: [v5 2/2] dt-bindings: mtd: Add Cadence NAND controller driver Message-ID: <20190816213110.GA31192@bogus> References: <20190725145804.8886-1-piotrs@cadence.com> <20190725145955.13951-1-piotrs@cadence.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190725145955.13951-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 Thu, Jul 25, 2019 at 03:59:55PM +0100, Piotr Sroka wrote: > Document the bindings used by Cadence NAND controller driver > > Signed-off-by: Piotr Sroka > --- > Changes for v5: > - replace "_" by "-" in all properties > - change compatible name from cdns,hpnfc to cdns,hp-nfc > Changes for v4: > - add commit message > 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 | 50 ++++++++++++++++++++++ > 1 file changed, 50 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..423547a3f993 > --- /dev/null > +++ b/Documentation/devicetree/bindings/mtd/cadence-nand-controller.txt > @@ -0,0 +1,50 @@ > +* Cadence NAND controller > + > +Required properties: > + - compatible : "cdns,hp-nfc" > + - 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 > + 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 > + > +Child nodes represent the available NAND chips. > + > +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 { space ^ > + compatible = "cdns,hp-nfc"; > + reg = <0x60000000 0x10000>, <0x80000000 0x10000>; > + reg-names = "reg", "sdma"; > + clocks = <&nf_clk>; > + cdns,board-delay-ps = <4830>; > + interrupts = <2 0>; You need #address-cells and #size-cells here. With those fixes, Reviewed-by: Rob Herring > + nand@0 { > + reg = <0>; > + label = "nand-1"; > + }; > + nand@1 { > + reg = <1>; > + label = "nand-2"; > + }; > + > +}; > -- > 2.15.0 >