Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4984924img; Tue, 26 Mar 2019 22:59:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqzdKR40Byq8TcFe0Mb50mlNlbLrWN30VW4VQOPGnyGEgC0jIHsrU29IJWhPIup/iu1O7Upq X-Received: by 2002:a17:902:a512:: with SMTP id s18mr26702289plq.185.1553666381173; Tue, 26 Mar 2019 22:59:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553666381; cv=none; d=google.com; s=arc-20160816; b=apiw9uWao/Jd83ClZr02ci1EVChyPAWWGiWAtQwQJvXih7RxshhYU8/BcSpXi1cDKZ JpdVgG2W5lPuBs+jT90GiKjLyZlET/sLEpH4CbBLf3kl+N/+SdZhgsjucnDEKrC0cOyo MMUfdNK4m3VdOdL8NBMX6HkS6Kk+fPUs7hHekHF/8N31OEQk+Dcy6382G3rLb1Nd81C6 RoZ900SliqM7LJy6cRTU3kX3cLNKnJpT/+OUpc9PGF/BcbADLhWDWpGdDwF3avzjnWPy GOGjNzFxey9nIsOHo2Wrs6Bd0wN31Ze8G3aESAfPcx7j1uOWHU+W6WVXpDwxq109vGOd aqvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from; bh=ZhooVT7e7y0UvpyK4jtj0c+ZzgA5KeS46L9eKsUYhhg=; b=CM6EaQarsR0RHxS0RiA1w2VbpElXCEN/GM2B9prDaJ2t8c4SciLw0l2VoCXMO14AhS jRaLDNE77GzM3NHDIsdqyF1AQ0XPjS7z/g0c1MGfcj2j64q5Fe6rnFpHbf8gyA2/nVTW jmn/atg866vlumttaP5nt7phfHWQ7o5MKivEBHfip3afefeCHL/QaEfA5IDf/1TAeGLi uFXEMXTGphiF/0vSUKsLQ/IQuRk8VbW1ovrZ1x6F8WqflImzm750RvqsTueG0vkAOz6s enO+tm8CIRQ9VWLLPhlyB273469xn9rfZ/8dd69NlChwJb1hWrJv/hX+vxb21lLLUYxD zjtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=EaIXBjrR; 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=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y8si1434975pll.313.2019.03.26.22.59.26; Tue, 26 Mar 2019 22:59:41 -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=@nvidia.com header.s=n1 header.b=EaIXBjrR; 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=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387477AbfC0F6M (ORCPT + 99 others); Wed, 27 Mar 2019 01:58:12 -0400 Received: from hqemgate14.nvidia.com ([216.228.121.143]:17626 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733260AbfC0F5j (ORCPT ); Wed, 27 Mar 2019 01:57:39 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Tue, 26 Mar 2019 22:57:41 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Tue, 26 Mar 2019 22:57:38 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Tue, 26 Mar 2019 22:57:38 -0700 Received: from HQMAIL108.nvidia.com (172.18.146.13) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 27 Mar 2019 05:57:38 +0000 Received: from hqnvemgw01.nvidia.com (172.20.150.20) by HQMAIL108.nvidia.com (172.18.146.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Wed, 27 Mar 2019 05:57:38 +0000 Received: from skomatineni-linux.nvidia.com (Not Verified[10.2.161.83]) by hqnvemgw01.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Tue, 26 Mar 2019 22:57:37 -0700 From: Sowjanya Komatineni To: , , , , , , , CC: , , , , Subject: [PATCH V1 21/26] DT bindings: spi: add tx/rx clock delay SPI client properties Date: Tue, 26 Mar 2019 22:56:42 -0700 Message-ID: <1553666207-11414-21-git-send-email-skomatineni@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1553666207-11414-1-git-send-email-skomatineni@nvidia.com> References: <1553666207-11414-1-git-send-email-skomatineni@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1553666261; bh=ZhooVT7e7y0UvpyK4jtj0c+ZzgA5KeS46L9eKsUYhhg=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:X-NVConfidentiality:MIME-Version: Content-Type; b=EaIXBjrRc3l56FkjN08LgIdJx2fncM3u/HK2HdHZQ58GjFTe/H9xkcBSqns7hgSUy NVWe5AzzbfxyKBME1wHZyAO2zFOKWVzHtK8z2FarQp+lzZOqU9GZM5TyY4P9JFiot1 gMntU+KZVeWxgwJHPTw7RnDPJKRk62kWCJlldYQ3qLxTXl25STC/JZaDDsVD+i1Vg0 ddfdwSsLhmxVIfkAOuE2CgTcL1edecoDQHgWhcRSyajDhiF+eDAI3dJpwnKrSzTO+L 01iagCH6gD2FST0ilngLddvmtJdCK7pJG2Ytjp3waXEUVV3qTz3LXrNWJbErRPe8zK qml8x2nDgfBtw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds Tegra SPI master tx and rx clock delay properties. TX/RX clock delays may vary depending on the platform design trace lengths for each client on the Tegra SPI bus. These properties helps to tune the clock delays. Signed-off-by: Sowjanya Komatineni --- .../devicetree/bindings/spi/nvidia,tegra114-spi.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Documentation/devicetree/bindings/spi/nvidia,tegra114-spi.txt b/Documentation/devicetree/bindings/spi/nvidia,tegra114-spi.txt index 6167c5234b64..2b84b7b726ce 100644 --- a/Documentation/devicetree/bindings/spi/nvidia,tegra114-spi.txt +++ b/Documentation/devicetree/bindings/spi/nvidia,tegra114-spi.txt @@ -29,6 +29,12 @@ spi-client device controller properties: - nvidia,cs-hold-clk-count: CS hold timing parameter. - nvidia,cs-inactive-cycles: CS inactive delay in terms of clock between transfers. +- nvidia,tx-clk-tap-delay: Delays the clock going out to the external device + with this tap value. This property is used to tune the outgoing data from + Tegra SPI master with respect to outgoing Tegra SPI master clock. +- nvidia,rx-clk-tap-delay: Delays the clock coming in from the external device + with this tap value. This property is used to adjust the Tegra SPI master + clock with respect to the data from the SPI slave device. Example: @@ -45,4 +51,14 @@ spi@7000d600 { reset-names = "spi"; dmas = <&apbdma 16>, <&apbdma 16>; dma-names = "rx", "tx"; + + @ { + ... + ... + nvidia,cs-setup-clk-count = <10>; + nvidia,cs-hold-clk-count = <10>; + nvidia,rx-clk-tap-delay = <0>; + nvidia,tx-clk-tap-delay = <16>; + ... + }; }; -- 2.7.4