Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3844825ybl; Mon, 9 Dec 2019 00:42:41 -0800 (PST) X-Google-Smtp-Source: APXvYqxv7IIhF0TtMv/L4PQ58Yam0g0xFEx2SrO5IXaKODix46e0PJ4QJi8DrISGj28xkGJwuNsR X-Received: by 2002:aca:fc06:: with SMTP id a6mr16413833oii.12.1575880960900; Mon, 09 Dec 2019 00:42:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575880960; cv=none; d=google.com; s=arc-20160816; b=hzItlIHBNR4tYJbdZI6iaghEZAe+wpDV0dl5J/HqFDfmrBJ1hA7U/iggGMHPvxf0gQ L2ASszTEAGoed6lUpudXlU58uA4bAQvyux+Sr/g1zyjyISN1IzCnYzfe22Z/IfOLgVOD I3D8tcSiQt14Dbj9VQ8LHnhwpLKhO5JWJtZnMrYE87CguRxXPnHbafDuOzotyPF26mQC Qt7FaUnYnvkxIqNQW5CKF51XL66W7Nz1NUadh8X4iR+kruDAVyIgHxGcUEsWPwYakWig DW9lDxY7DctgjFyRIm4lQs5Ygx96v5A9JP0PgpeL6JVvDsQbC73o/fBanCLDF767TOeN d66A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=GhOmAtBydnyLOzYLkAYJY9At3cIoynJj0ayIBrQycWI=; b=lO+YOoqKrBJ2BcDyR8cu1M/GrqdRKBwpA9U00DkODevtLlWSph35s3FTEyVj1c9CBD B8Ms/C03M/V1dt7ix/AFPk5epsrf5arXwzzBXnSlAcAeAHM4Rqkd6qUYH3X2h5ZnLbnc OpUWrL6RjDkblwTYUoTuV8AIy9IcujGPQx5Dyi2rzDQIDAUHxNjWJehu08KEvyFIr+fz AEoSYp5O383IzB9wVEEHmug268HvcOvwyn1EGzjqXJbF1IcAfumekD0AQFIyI/mtMN0M Fn+xKVOk1p9HpPb7u0shykyDGErsJc4XaU8D8dWbBaZSqzrx9a+HQa4ZQ3rsB6Q1Rnbb 1egw== 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 t3si11548193oig.25.2019.12.09.00.42.29; Mon, 09 Dec 2019 00:42:40 -0800 (PST) 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 S1727310AbfLIIkp (ORCPT + 99 others); Mon, 9 Dec 2019 03:40:45 -0500 Received: from mga18.intel.com ([134.134.136.126]:11442 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727047AbfLIIko (ORCPT ); Mon, 9 Dec 2019 03:40:44 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Dec 2019 00:40:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,294,1571727600"; d="scan'208";a="215139094" Received: from sgsxdev004.isng.intel.com (HELO localhost) ([10.226.88.13]) by orsmga003.jf.intel.com with ESMTP; 09 Dec 2019 00:40:40 -0800 From: "Ramuthevar,Vadivel MuruganX" To: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: broonie@kernel.org, vigneshr@ti.com, robh+dt@kernel.org, cheol.yong.kim@intel.com, qi-ming.wu@intel.com, Ramuthevar Vadivel Murugan Subject: [PATCH v3 1/2] dt-bindings: spi: Add schema for Cadence QSPI Controller driver Date: Mon, 9 Dec 2019 16:40:34 +0800 Message-Id: <20191209084035.55603-2-vadivel.muruganx.ramuthevar@linux.intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20191209084035.55603-1-vadivel.muruganx.ramuthevar@linux.intel.com> References: <20191209084035.55603-1-vadivel.muruganx.ramuthevar@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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/spi/cadence,qspi.yaml | 162 +++++++++++++++++++++ 1 file changed, 162 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/cadence,qspi.yaml diff --git a/Documentation/devicetree/bindings/spi/cadence,qspi.yaml b/Documentation/devicetree/bindings/spi/cadence,qspi.yaml new file mode 100644 index 000000000000..7756c34bb453 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/cadence,qspi.yaml @@ -0,0 +1,162 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/spi/cadence,qspi.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Cadence QSPI Flash Controller support + +maintainers: + - Ramuthevar Vadivel Murugan + +allOf: + - $ref: "spi-controller.yaml#" + +description: | + Add support for the Cadence QSPI controller,This controller is + present in the Intel LGM, Altera SoCFPGA and TI SoCs and this driver + has been tested On Intel's LGM SoC. + + - compatible : should be one of the following: + Generic default - "cdns,qspi-nor". + For TI 66AK2G SoC - "ti,k2g-qspi", "cdns,qspi-nor". + For TI AM654 SoC - "ti,am654-ospi", "cdns,qspi-nor". + For Intel LGM SoC - "intel,lgm-qspi", "cdns,qspi-nor". + +properties: + compatible: + enum: + - cadence,qspi + - cdns,qspi-nor + - ti,k2g-qspi + - ti,am654-ospi + - intel,lgm-qspi + + reg: + description: | + 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 QSPI Controller data area. + + interrupts: + description: + Unit interrupt specifier for the controller interrupt. + + clocks: + description: + phandle to the Quad SPI clock. + + cdns,fifo-depth: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Size of the data FIFO in words. + + cdns,fifo-width: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Bus width of the data FIFO in bytes. + + cdns,trigger-address: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + 32-bit indirect AHB trigger address. + + cdns,is-decoded-cs: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Flag to indicate whether decoder is used or not. + + cdns,rclk-en: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Flag to indicate that QSPI return clock is used to latch the read data + rather than the QSPI clock. Make sure that QSPI return clock is populated + on the board before using this property. + + resets: + minItems: 1 + maxItems: 2 + + reset-names: + minItems: 1 + maxItems: 2 + items: + - const: qspi + - const: qspi-ocp + +# 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 for read capture logic, in clock cycles. + + cdns,tshsl-ns: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Delay in nanoseconds for the length that the master mode chip select + outputs are de-asserted between transactions. + + cdns,tsd2d-ns: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Delay in nanoseconds between one chip select being de-activated + and the activation of another. + + cdns,tchsh-ns: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Delay in nanoseconds between last bit of current transaction and + deasserting the device chip select (qspi_n_ss_out). + + cdns,tslch-ns: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Delay in nanoseconds between setting qspi_n_ss_out low and + first bit transfer. + +required: + - compatible + - reg + - interrupts + - clocks + - cdns,is-decoded-cs + - cdns,fifo-depth + - cdns,fifo-width + - cdns,trigger-address + - resets + - reset-names + +examples: + - | + qspi: spi@ff705000 { + compatible = "cadence,qspi", "cdns,qspi-nor"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0xff705000 0x1000>, + <0xffa00000 0x1000>; + interrupts = <0 151 4>; + clocks = <&qspi_clk>; + cdns,is-decoded-cs; + cdns,fifo-depth = <128>; + cdns,fifo-width = <4>; + cdns,trigger-address = <0x00000000>; + resets = <&rst QSPI_RESET>, <&rst QSPI_OCP_RESET>; + reset-names = "qspi", "qspi-ocp"; + + flash0: n25q00@0 { + ... + cdns,read-delay = <4>; + cdns,tshsl-ns = <50>; + cdns,tsd2d-ns = <50>; + cdns,tchsh-ns = <4>; + cdns,tslch-ns = <4>; + }; + }; + -- 2.11.0