Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp147347ybk; Thu, 14 May 2020 19:11:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvp7Xj+oorvNE2ooC5MJYmZh9cxZfVA3EUg/NmjWTidM2KuzY1KcbVrv+x31YkxYX01TA+ X-Received: by 2002:a50:bb25:: with SMTP id y34mr798544ede.237.1589508703567; Thu, 14 May 2020 19:11:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589508703; cv=none; d=google.com; s=arc-20160816; b=nPemKeySO+RtwFQ2y2i/hcts00n88fRqd3ghrWt6CUwvcHkMf5UhyrTZcSAwYE5isv 9oCx9TVhx6i3S98CGX3igQwumauRyox6sfOg9smSTFW/u/Ciq+0WGivR+koQLEYlrMjs zbqmn6jcVE8fO0UhoZz9PpnG3NTRA8nMPjvUJFH7TIp2j5P2h1I57GuDAzlI7zLusIqN bu2LnmoG7b95/MRfiZMye9pU7z8CF6WpmxekzBsyNfS4juS7t9FkeL8C/IaWSPEgxuFa 6ws50p1pW3I/aCx1yp9ntbGrwR+ozp+ieVjpClDtl5zPqSJIo9yNDaNcd48NoHcPz7vL picg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:reply-to:ironport-sdr :ironport-sdr; bh=x0z3OespqaNpES2ZNWXqb3txsqCIHguH9/pPpVj3YvI=; b=jFY+F12sk21Yh1X4cZav9FTn0VDPbH7CuitRb5Z/A9Wzi1QsVIg1pLM4DBD69WhqRX tBsAZpPkjzxI4Oo9RTv2zNJy3KlavLlgSOaXa72K128/czkR4o5AenZu3CkbwfqBFY5j YHDx09tqeehenLgwTCWfQx/bsbN/dd2lWvT6s8WIyqP4BOK0+wAvsjhkGSJpvDXZ7xQT 7IINRXJWIm/sXMd2mF1xLDO6uSyUnm60YP2a2KrqmJZfpLQkXJP1NHJW2mATwuf6JuBo jEnh3HdQr5DcOUGm/8JW3VgDU36TydUHrKapKpzqSZAxLVSHChX/qk/saPsKqEl/Jskz Ut9Q== 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l24si330515edr.396.2020.05.14.19.11.20; Thu, 14 May 2020 19:11:43 -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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728103AbgEOCGb (ORCPT + 99 others); Thu, 14 May 2020 22:06:31 -0400 Received: from mga02.intel.com ([134.134.136.20]:15577 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726112AbgEOCGb (ORCPT ); Thu, 14 May 2020 22:06:31 -0400 IronPort-SDR: 1bN+sEaggGzs+ZqGQqO1VB7iAEN13WeKOvnqseqD+dssu6/nkXsfOIEffd9pEzkgbP4WkfMBOa ONmuOmO+eSUQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 May 2020 19:06:30 -0700 IronPort-SDR: Xe0oTyAejSCuxTExL/lzRxj20dECodjALgyh0jXW7dSuEqyHpUB+GTAMrHJSAJye9eDuDPHBd5 udnnsrj93UPw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,393,1583222400"; d="scan'208";a="251878183" Received: from linux.intel.com ([10.54.29.200]) by orsmga007.jf.intel.com with ESMTP; 14 May 2020 19:06:30 -0700 Received: from [10.213.147.163] (vramuthx-mobl1.gar.corp.intel.com [10.213.147.163]) by linux.intel.com (Postfix) with ESMTP id 74F675804B6; Thu, 14 May 2020 19:06:24 -0700 (PDT) Reply-To: vadivel.muruganx.ramuthevar@linux.intel.com Subject: Re: [PATCH v6 1/2] dt-bindings: mtd: Add Nand Flash Controller support for Intel LGM SoC To: Rob Herring 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 References: <20200513104615.7905-1-vadivel.muruganx.ramuthevar@linux.intel.com> <20200513104615.7905-2-vadivel.muruganx.ramuthevar@linux.intel.com> <20200514130321.GB8436@bogus> From: "Ramuthevar, Vadivel MuruganX" Message-ID: <3248d380-1d08-3088-8d18-0373a8a5aef9@linux.intel.com> Date: Fri, 15 May 2020 10:06:22 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200514130321.GB8436@bogus> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, Thank you for the review comments... On 14/5/2020 9:03 pm, Rob Herring wrote: > 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) Noted. > >> +%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. Sure, will define it. > >> + >> + 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 Yes, Thanks! > >> + >> + pinctrl-names: true > > No need for this. Tools add pinctrl properties. will drop it. > >> + >> +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. Noted, will update the schema name. > >> + reg = <0xe0f00000 0x100>, >> + <0xe1000000 0x300>, >> + <0xe1400000 0x8000>, >> + <0xe1c00000 0x1000>; > > Is it 4 or 6 entries? yes, will update. > >> + reg-names = "ebunand", "hsnand", "nand_cs0", "nand_cs1", >> + "addr_sel0","addr_sel1"; > > Not documented. Noted, will document it. > >> + clocks = <&cgu0 125>; >> + dma-names = "tx", "rx"; >> + #address-cells = <1>; >> + #size-cells = <0>; >> + #clock-cells = <1>; > > This is a clock provider too? Yes, it is getting clock from CGU for nand-controller. Regards Vadivel > >> + >> + nand@0 { >> + reg = <0>; >> + nand-on-flash-bbt; >> + #address-cells = <1>; >> + #size-cells = <1>; >> + }; >> + }; >> + >> +... >> -- >> 2.11.0 >>