Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1315519ybk; Thu, 14 May 2020 06:06:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmjHzXiIdAdGMJvFZc/WPQRYje+9soqcC++3FqLEjRDQfBCpcqL3DvABSrcNbsBmrOGSYH X-Received: by 2002:aa7:d7d8:: with SMTP id e24mr3903736eds.215.1589461611106; Thu, 14 May 2020 06:06:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589461611; cv=none; d=google.com; s=arc-20160816; b=N9+pBtknhs6pNvOLrW3W94C3h+ZamFXb+vV3Od4PK0EacCOTzeRCpjycmfyKtXUgCL ARm9ZkIwOj6ZkmJVKgaFF9XfuL+HAbMWUQbCtbdVhFt5i/azpUdlGjZF4+IVtpFnwKmg Ezjrnnsq/w8T3ZFE86IWxJlzMC+rsq2Hg9W9R+18AmHzMlulErXEfgo3AyGbgyxsKLLT AK0Bp8NdoCuNTpHHcHX0B1Iemr9ZTzKUi9ZwzDgFqYi8uweK1M7p+XvXMhWKRbokK1Vo 0axCprhFLd+BnSOOLaEZWoTvMjZXEPoWuvRocRN84HSyYy8pR9UsIhjia6vWU5MtQpCC HzBA== 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=PAAq3M4gzQu8HSRZbaaHX+1SesRsxaYoIJArKgrswws=; b=hXSPctzjh4dbKDMkP8GhJv5Zv5YNA3fzRFJ/t99oPedPfmj9qYRRoMNn2bJT9EYzPu nH2Ddyp9AdNZXyZvBbdPhfXxIxafHc9S/HJOcjcq40v32yN907alGDTaAyCmjRQi7Eim vAhwu8cFOYMCch46SQ434uTBL4jvwW/wdlFKEGqcX/qC8KHzE5Q1ffzuWquGJObILnBv xNcyi72mVKrR/03QTqcvmY8E+xeVUURZytgieTBUVKovzwREgz3Xl9vidcljLk3qg5Y2 QVS+epcgASkGy/6pCO6XOtT0uTTyaK8fADWjG0gB+FO8AQTmWGMeqYYDdhm6BWy9fk+v WevQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dj17si1431192edb.556.2020.05.14.06.06.28; Thu, 14 May 2020 06:06:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727033AbgENND0 (ORCPT + 99 others); Thu, 14 May 2020 09:03:26 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:32791 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726056AbgENND0 (ORCPT ); Thu, 14 May 2020 09:03:26 -0400 Received: by mail-ot1-f68.google.com with SMTP id v17so2281155ote.0; Thu, 14 May 2020 06:03:25 -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=PAAq3M4gzQu8HSRZbaaHX+1SesRsxaYoIJArKgrswws=; b=Yfe0/3is/dHKayOCHp7iYgLjtCjQhBpv/lsLMOALJW0MqY8FybHkesUjTP3KYlkYR7 lFq/YesSZtNLvn73W+r83GK2NqI/oWm4bKwaAvBkHuKNqldOkOv94Mx8aR6n0bOvlDwT pua6xjDxzCCXUYZmYou5QHvChfdfyi2vwoYF+bTbT88DLtj4uFyIKnNFKKIzNMmLvaxD bPZnP4/84rCDodtUJWq4PosUQjwn1vdXdYWETRhxHojEP51mllMIDcfzfUWHAgRzsOp2 2mfHcTrDBqtbbEpIcy/gS0aL3F3iWEwfXaFCrB/NIz3dYBsqL+r23/1vDeNBC3oHsyv6 MNpg== X-Gm-Message-State: AOAM532CK8GeOHPH4KRkmk8vjCL5HHd/dHmUvgb7eCgAlWZruPrtXFb/ xu0NG/JbduVeGMIRGfZ6+w== X-Received: by 2002:a9d:7343:: with SMTP id l3mr3144827otk.276.1589461403791; Thu, 14 May 2020 06:03:23 -0700 (PDT) Received: from rob-hp-laptop (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id i10sm765855oos.28.2020.05.14.06.03.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 May 2020 06:03:23 -0700 (PDT) Received: (nullmailer pid 17389 invoked by uid 1000); Thu, 14 May 2020 13:03:21 -0000 Date: Thu, 14 May 2020 08:03:21 -0500 From: Rob Herring To: "Ramuthevar,Vadivel MuruganX" Cc: linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, arnd@arndb.de, brendanhiggins@google.com, tglx@linutronix.de, boris.brezillon@collabora.com, anders.roxell@linaro.org, masonccyang@mxic.com.tw, linux-mips@vger.kernel.org, hauke.mehrtens@intel.com, andriy.shevchenko@intel.com, qi-ming.wu@intel.com, cheol.yong.kim@intel.com Subject: Re: [PATCH v6 1/2] dt-bindings: mtd: Add Nand Flash Controller support for Intel LGM SoC Message-ID: <20200514130321.GB8436@bogus> References: <20200513104615.7905-1-vadivel.muruganx.ramuthevar@linux.intel.com> <20200513104615.7905-2-vadivel.muruganx.ramuthevar@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200513104615.7905-2-vadivel.muruganx.ramuthevar@linux.intel.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 Wed, May 13, 2020 at 06:46:14PM +0800, Ramuthevar,Vadivel MuruganX wrote: > From: Ramuthevar Vadivel Murugan > > Add YAML file for dt-bindings to support NAND Flash Controller > on Intel's Lightning Mountain SoC. > > Signed-off-by: Ramuthevar Vadivel Murugan > --- > .../devicetree/bindings/mtd/intel,lgm-nand.yaml | 83 ++++++++++++++++++++++ > 1 file changed, 83 insertions(+) > create mode 100644 Documentation/devicetree/bindings/mtd/intel,lgm-nand.yaml > > diff --git a/Documentation/devicetree/bindings/mtd/intel,lgm-nand.yaml b/Documentation/devicetree/bindings/mtd/intel,lgm-nand.yaml > new file mode 100644 > index 000000000000..d9e0df8553fa > --- /dev/null > +++ b/Documentation/devicetree/bindings/mtd/intel,lgm-nand.yaml > @@ -0,0 +1,83 @@ > +# SPDX-License-Identifier: GPL-2.0 Dual license new bindings please: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/mtd/intel,lgm-nand.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Intel LGM SoC NAND Controller Device Tree Bindings > + > +allOf: > + - $ref: "nand-controller.yaml" > + > +maintainers: > + - Ramuthevar Vadivel Murugan > + > +properties: > + compatible: > + const: intel,lgm-nand-controller > + > + reg: > + maxItems: 1 Looks like you have 4 or 6 entries, not 1. Need to define what each one is. > + > + clocks: > + maxItems: 1 > + > + dmas: > + maxItems: 2 > + > + dma-names: > + enum: > + - rx > + - tx This defines a single entry. I believe you want: items: - const: tx - const: rx > + > + pinctrl-names: true No need for this. Tools add pinctrl properties. > + > +patternProperties: > + "^nand@[a-f0-9]+$": > + type: object > + properties: > + reg: > + minimum: 0 > + maximum: 7 > + > + nand-ecc-mode: true > + > + nand-ecc-algo: > + const: hw > + > + additionalProperties: false > + > +required: > + - compatible > + - reg > + - clocks > + - clock-names > + - dmas > + > +additionalProperties: false > + > +examples: > + - | > + nand-controller@e0f00000 { > + compatible = "intel,nand-controller"; Doesn't match the schema. > + reg = <0xe0f00000 0x100>, > + <0xe1000000 0x300>, > + <0xe1400000 0x8000>, > + <0xe1c00000 0x1000>; Is it 4 or 6 entries? > + reg-names = "ebunand", "hsnand", "nand_cs0", "nand_cs1", > + "addr_sel0","addr_sel1"; Not documented. > + clocks = <&cgu0 125>; > + dma-names = "tx", "rx"; > + #address-cells = <1>; > + #size-cells = <0>; > + #clock-cells = <1>; This is a clock provider too? > + > + nand@0 { > + reg = <0>; > + nand-on-flash-bbt; > + #address-cells = <1>; > + #size-cells = <1>; > + }; > + }; > + > +... > -- > 2.11.0 >