Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp7668127ybn; Mon, 30 Sep 2019 18:14:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxNj9J+RoWtBzxu2A0gldHoVoZyPwWNdst9oCh5pPJ1UNZFB6ZEw8NNMG+m9p0x1p566RVS X-Received: by 2002:a50:b501:: with SMTP id y1mr22630732edd.167.1569892486105; Mon, 30 Sep 2019 18:14:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569892486; cv=none; d=google.com; s=arc-20160816; b=TQF6ozQOI7tfsFW1oUb5VJ0ZmoGCmufga0yoXJHvesW/BMPcpZwHp07NzJe0rym4y1 7JYEtAcSaVYXWhfF1qDwiw14mPWQqRxawuQMIaNhU7P8E8ydDvIkStuQ5zy+o8DgUGGm 62vec/bRljVbw4AizxPmXT5MBfZVZRr0dHsTkeGbalW4QvtNszi2/IJzgx0qUwGVcJpg Z48qCkObPsNU0QKxxW9yHCZYnF1NZ/gqy3VmM7/KrWd3R/fiVtKnrB0tPL9NUX3tOpq7 aQXs7kjut/Ga4c4gbIcN+DyWJLqmevVzBU4Cu4Faq58CGezhkWJuFy5D7nqib2IwFi0C G5MQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=J4TkEeo8hHdWyCFmkGpiCZ2i+W7cJjMidJbs8qkN5Ic=; b=KalOvqH4Ft+x+OMwPs8catrVdlFeeqaNK5kfW/EdsZ9i4+mGeQDD19NP86kwwo2wbA U/ut8h/RNRDfDhkGuoORv50lEOzKWGfLysqWn2SV9A+FLAVirFVVXPCHGWNtLJLAoRIB kbP7FG3P61qTCg5/c+0nwFn4HMm+68iaTq04gwQtCY9k0GssD2iapYcTPrfUm5ztA4jA BKQ5SYKFpIVt+G7z52rYaPUR/1gY1ExNUz+Ddt1MSGddXpVPpiAy3oyFI19/5E9fuB0+ lLuXoEbwskbTesktF//XISP6PZuOUl40B6gQDOq4ujQQJUnRPd3jJPUae6ESwtTvXJXR dVAg== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m22si7609296ejr.368.2019.09.30.18.14.21; Mon, 30 Sep 2019 18:14:46 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730977AbfJABNR (ORCPT + 99 others); Mon, 30 Sep 2019 21:13:17 -0400 Received: from mga12.intel.com ([192.55.52.136]:64309 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726157AbfJABNR (ORCPT ); Mon, 30 Sep 2019 21:13:17 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Sep 2019 18:13:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,569,1559545200"; d="scan'208";a="191307813" Received: from linux.intel.com ([10.54.29.200]) by fmsmga007.fm.intel.com with ESMTP; 30 Sep 2019 18:13:16 -0700 Received: from [10.226.38.18] (unknown [10.226.38.18]) by linux.intel.com (Postfix) with ESMTP id 927655803E4; Mon, 30 Sep 2019 18:13:14 -0700 (PDT) Subject: Re: [PATCH v1 1/2] dt-bindings: spi: Add support for cadence-qspi IP Intel LGM SoC To: Rob Herring Cc: broonie@kernel.org, mark.rutland@arm.com, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, cheol.yong.kim@intel.com, qi-ming.wu@intel.com References: <20190916073843.39618-1-vadivel.muruganx.ramuthevar@linux.intel.com> <20190916073843.39618-2-vadivel.muruganx.ramuthevar@linux.intel.com> <20190930223640.GA18491@bogus> From: "Ramuthevar, Vadivel MuruganX" Message-ID: Date: Tue, 1 Oct 2019 09:13:13 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20190930223640.GA18491@bogus> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US 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 1/10/2019 6:36 AM, Rob Herring wrote: > On Mon, Sep 16, 2019 at 03:38:42PM +0800, Ramuthevar,Vadivel MuruganX wrote: >> From: Ramuthevar Vadivel Murugan >> >> On Intel Lightening Mountain(LGM) SoCs QSPI controller support >> to QSPI-NAND flash. This introduces to device tree binding >> documentation for Cadence-QSPI controller and spi-nand flash. >> >> Signed-off-by: Ramuthevar Vadivel Murugan >> --- >> .../devicetree/bindings/spi/cadence,qspi-nand.yaml | 84 ++++++++++++++++++++++ >> 1 file changed, 84 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/spi/cadence,qspi-nand.yaml >> >> diff --git a/Documentation/devicetree/bindings/spi/cadence,qspi-nand.yaml b/Documentation/devicetree/bindings/spi/cadence,qspi-nand.yaml >> new file mode 100644 >> index 000000000000..9aae4c1459cc >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/spi/cadence,qspi-nand.yaml >> @@ -0,0 +1,84 @@ >> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: "http://devicetree.org/schemas/spi/cadence,qspi-nand.yaml#" >> +$schema: "http://devicetree.org/meta-schemas/core.yaml#" >> + >> +title: Cadence QSPI Flash Controller on Intel's SoC >> + >> +maintainers: >> + - Ramuthevar Vadivel Murugan >> + >> +allOf: >> + - $ref: "spi-controller.yaml#" >> + >> +description: | >> + The Cadence QSPI is a controller optimized for communication with SPI >> + FLASH memories, without DMA support on Intel's SoC. >> + >> +properties: >> + compatible: >> + const: cadence,lgm-qspi > Vendor here should be 'intel'. Perhaps the binding should be shared too > like the driver. > > Plus the vendor prefix for Cadence is cdns. Agreed!, will update. >> + >> + reg: >> + maxItems: 1 >> + >> + fifo-depth: >> + maxItems: 1 >> + > This is vendor specific, so needs a vendor prefix, type, and > description. agreed! >> + fifo-width: >> + maxItems: 1 > Same > >> + >> + qspi-phyaddr: >> + maxItems: 1 > Same > >> + >> + qspi-phymask: >> + maxItems: 1 > Same will update all the above. >> + >> + clocks: >> + maxItems: 2 > Need to define what each clock is when there is more than 1. Sure, will update. >> + >> + clocks-names: >> + maxItems: 2 > Need to define the strings. Noted, will update. >> + >> + resets: >> + maxItems: 1 >> + >> + reset-names: >> + maxItems: 1 >> + >> +required: >> + - compatible >> + - reg >> + - fifo-depth >> + - fifo-width >> + - qspi-phyaddr >> + - qspi-phymask >> + - clocks >> + - clock-names >> + - resets >> + - reset-names >> + >> +examples: >> + - | >> + qspi@ec000000 { > spi@... Controller is qspi , so that have updated. With Best Regards Vadivel Murugan R >> + compatible = "cadence,qspi-nand"; >> + reg = <0xec000000 0x100>; >> + fifo-depth = <128>; >> + fifo-width = <4>; >> + qspi-phyaddr = <0xf4000000>; >> + qspi-phymask = <0xffffffff>; >> + clocks = <&cgu0 LGM_CLK_QSPI>, <&cgu0 LGM_GCLK_QSPI>; >> + clock-names = "freq", "qspi"; >> + resets = <&rcu0 0x10 1>; >> + reset-names = "qspi"; >> + #address-cells = <1>; >> + #size-cells = <0>; >> + >> + flash: flash@1 { >> + compatible = "spi-nand"; >> + reg = <1>; >> + spi-max-frequency = <10000000>; >> + }; >> + }; >> + >> -- >> 2.11.0 >>