Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp326526ybb; Thu, 19 Mar 2020 23:08:31 -0700 (PDT) X-Google-Smtp-Source: ADFU+vumewYfFT9/+xApbbZDQ3ZofyJ7pGyWYhsCVHtyRtCN2EzQzJVtPVbvqdzNEPeB4Dn0y6Xo X-Received: by 2002:aca:cc0c:: with SMTP id c12mr5240526oig.6.1584684511845; Thu, 19 Mar 2020 23:08:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584684511; cv=none; d=google.com; s=arc-20160816; b=AMlzoND/iS7EurVbcjeZSImF44n9Q4wW9ZlVXz1w1QaGhrXCHJC0U80VPL0GOYIto5 1RyVCHmocjEut9LJZ7KR9cZIDYECJSYiYnNH6vlV/EdkGaAvlUTsGan8XbOFCG76E/d6 lSXL9TlJsHj0fPVjYwWn5Zor1JIfszB7gTa+BJ2kTZiFCyw1NTgB7lNvGdi+l+RjmoPu hs4MhrxgJflVPyyOOjLexgIVlozSZRdLIHHZ0cVJ3+hDpUyg89o35vchdX1CCbHx4Jj/ zgBiBiEXLVpqTUWy5wQKeyYtsy+ssfRrIWYFoaRU+NyYMKY53MIf0ifXvaXBoRdgrd7M ihDw== 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:dkim-signature; bh=54+jme14f9l+F5m+jvtM+/CK152iu0QJDNvmuwSkKso=; b=sf2+Qq9J62Wv3v8rwbDE0jnmTvUNkbKkQ3sYk6GbLE6z+0oA077TJGAtCaYYwz5KVI RReDkmSUR6I133ODh95dESyKtO1vM4wIvaEWCe0SsVxRFuYluQW1LmJiqK4YWA4BaXR1 4VNfTkgilp2DsFB5RuorThYVlfiPRfc9/nIwNgq7ZJCSMfTUI0bC/yTfZDqNOCP6fCsT 0KnACjtIgNuvqH6pbTbo2aZYdiKe63Z7W1ySoeu8fGFiiY+DRBnDk+9sn7f1kK6VMZXz y2d4OyVS1WpJO8Gw4k0x74IpSTR2+gq1/V6U78Cn14osDMZhjYTZqr78JM6d1cfC+926 jD7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=dF0p6Szc; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 9si2113933oir.76.2020.03.19.23.08.18; Thu, 19 Mar 2020 23:08:31 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=dF0p6Szc; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726778AbgCTGGs (ORCPT + 99 others); Fri, 20 Mar 2020 02:06:48 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:48604 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726232AbgCTGGr (ORCPT ); Fri, 20 Mar 2020 02:06:47 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 02K667HF013962; Fri, 20 Mar 2020 01:06:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1584684367; bh=54+jme14f9l+F5m+jvtM+/CK152iu0QJDNvmuwSkKso=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=dF0p6Szc2W4e1lfCb0KUwKB5d934NjsUCmhvtLSgw3fGFK78HNvmwRI9UneGh7grT L/+MFnIw4JRXSgnGwaWBq4eqRlrnNFAT5GHTlXyWVPPYVwoMR499A8VY3GbMrWIg/H 7odLbJCtgHV8ri0MfbVTUaaeCO0QJdwvUqD3xOpg= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 02K666rY003898 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 20 Mar 2020 01:06:06 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Fri, 20 Mar 2020 01:06:05 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Fri, 20 Mar 2020 01:06:06 -0500 Received: from [10.250.132.43] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 02K65wsQ029497; Fri, 20 Mar 2020 01:05:59 -0500 Subject: Re: [PATCH v12 1/4] dt-bindings: spi: Add schema for Cadence QSPI Controller driver To: "Ramuthevar,Vadivel MuruganX" , , , , CC: , , , , , , , , , , , , , , , References: <20200310015213.1734-1-vadivel.muruganx.ramuthevar@linux.intel.com> <20200310015213.1734-2-vadivel.muruganx.ramuthevar@linux.intel.com> From: Vignesh Raghavendra Message-ID: Date: Fri, 20 Mar 2020 11:35:57 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200310015213.1734-2-vadivel.muruganx.ramuthevar@linux.intel.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/03/20 7:22 am, Ramuthevar,Vadivel MuruganX wrote: > From: Ramuthevar Vadivel Murugan > > Add dt-bindings documentation for Cadence-QSPI controller to support > spi based flash memories. > > Signed-off-by: Ramuthevar Vadivel Murugan > --- > .../devicetree/bindings/mtd/cadence-quadspi.txt | 67 ----------- > .../devicetree/bindings/spi/cdns,qspi-nor.yaml | 127 +++++++++++++++++++++ > 2 files changed, 127 insertions(+), 67 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/mtd/cadence-quadspi.txt > create mode 100644 Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml > [...] > + > +# subnode's properties > +patternProperties: > + "^.*@[0-9a-fA-F]+$": > + type: object > + description: > + flash device uses the subnodes below defined properties. > + > + cdns,read-delay: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + Delay in 4 microseconds, read capture logic, in clock cycles. Not its not... See the old binding description please: -- cdns,read-delay : Delay for read capture logic, in clock cycles There is no mention of 4us. Range is 0x0 - 0xF > + > + cdns,tshsl-ns: > + description: | > + Delay in 50 nanoseconds, for the length that the master mode chip select > + outputs are de-asserted between transactions. Again see the description in old binding file: cdns,tshsl-ns : Delay in nanoseconds for the length that the master mode chip select outputs are de-asserted between transactions. Need not be 50ns or its multiple > + > + cdns,tsd2d-ns: > + description: | > + Delay in 50 nanoseconds, between one chip select being de-activated > + and the activation of another. > + same here > + cdns,tchsh-ns: > + description: | > + Delay in 4 nanoseconds, between last bit of current transaction and > + deasserting the device chip select (qspi_n_ss_out). > + Same here... Need not be 4ns... > + cdns,tslch-ns: > + description: | > + Delay in 4 nanoseconds, between setting qspi_n_ss_out low and > + first bit transfer. Same here... Above four values ( cdns,*-ns) come directly from the flash datasheets. These values are converted appropriate number of cycles depending upon the QSPI ref_clk frequency. So, there is no easy way to express the constraint (or range) in DT schema. I would recommend to just stick with the description that is there in the old binding file without any modifications. Regards Vignesh