Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1757347yba; Thu, 4 Apr 2019 18:12:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqyR/0oILenEfJ7lpYHqcBRtsyXEIqYPATiIFcea5BDvr6iuwK4IByOVVmbEF9HuFA/C3fGg X-Received: by 2002:a63:f212:: with SMTP id v18mr8782091pgh.231.1554426768271; Thu, 04 Apr 2019 18:12:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554426768; cv=none; d=google.com; s=arc-20160816; b=prOlsrIGleZ3C03/Vu2UMuf+JspmbXgxrJC9xY0jEfmzcF7qlqrCBvoR6Oajl8xBjA n+9z65MHEAk1u+OTLpJkMPFRUagPHyVYYdOEPtWpsKl3QEN561lrciRLg53MgxdOIzS1 Fzan/eFlcDWNq0doazul0X2ApAFc0E+PuK8K6giG+rYw20zR4RHYxFO61Ton6Osa0eap kbgPw4xpReceeXS6UH4zEnsd2P/+Zj/b9d4NKo8fjP8Umk0lIb/WkgWZHZ7YpijbhB4Z K4gnqICxNTz/MhGl6NZk15+ii1qULJdH1GAWIasnt639evfESNqv60SNNNWh5yi2gdA5 gxaw== 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=UI55pKb+sdPb0XZNgJdTj04yVil0AOFyMJLcyBa3hBg=; b=KQc0ex5Lok2KfNDj/fDNa5k9mtQDNFO59XsKZ8VZ+Ei0vo6PDUSWVGtZaaD0Lprc4J dsYfRVq7+7oFg+JEWynMA/RFxibZB3DNa2D7hvDRTiQZM2wuzADazF5GNXu9XNzOLhIz JBy9OqaCW5MF2dxo/WKtblsp3zjYBZstzYzNoRwJDiX1j2bUSuFmTDxQl7R4qP7T/Eoi LmH6fPjb2nIUY0Ch8dOxaBDKHMOc4aoNWpOYNDs5F8MpNe5antvcwLeUQp3OW5D9OtCw QzGX55zHIzNZAPsDDJM/mbMbk1tXYm60a6FFpe6xS/GhWotwlcPMPPHUWD56AbsIc8lt QX9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=A3nvBv7L; 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 127si17945084pgf.595.2019.04.04.18.11.55; Thu, 04 Apr 2019 18:12:48 -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=A3nvBv7L; 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 S1731066AbfDEAOw (ORCPT + 99 others); Thu, 4 Apr 2019 20:14:52 -0400 Received: from hqemgate16.nvidia.com ([216.228.121.65]:11333 "EHLO hqemgate16.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730762AbfDEAOi (ORCPT ); Thu, 4 Apr 2019 20:14:38 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate16.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Thu, 04 Apr 2019 17:14:35 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Thu, 04 Apr 2019 17:14:37 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Thu, 04 Apr 2019 17:14:37 -0700 Received: from HQMAIL107.nvidia.com (172.20.187.13) by HQMAIL104.nvidia.com (172.18.146.11) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 5 Apr 2019 00:14:37 +0000 Received: from hqnvemgw02.nvidia.com (172.16.227.111) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Fri, 5 Apr 2019 00:14:37 +0000 Received: from skomatineni-linux.nvidia.com (Not Verified[10.110.103.48]) by hqnvemgw02.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Thu, 04 Apr 2019 17:14:36 -0700 From: Sowjanya Komatineni To: , , , , , , , CC: , , , , Subject: [PATCH V2 19/20] DT bindings: spi: document tx/rx clock delay properties Date: Thu, 4 Apr 2019 17:14:18 -0700 Message-ID: <1554423259-26056-19-git-send-email-skomatineni@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1554423259-26056-1-git-send-email-skomatineni@nvidia.com> References: <1554423259-26056-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=1554423275; bh=UI55pKb+sdPb0XZNgJdTj04yVil0AOFyMJLcyBa3hBg=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:X-NVConfidentiality:MIME-Version: Content-Type; b=A3nvBv7LMSJxcYh/FOSRrSZZJWA3k47qR+eWNoKbHsA+9WetpafyUwv9ppkNWrppz fulVDOeprn9gD1m/ETLiyFYU4oYh47kb8YrAPPOvECs9QPtY94sh7sLsuP1ZXV9gWy I8frshjitX+8gK4D3SX6qXpoCmB2LDPcHGS3pHUZ6IjyJf4oXB/i+wy5+iijCw9Yc1 z3qdVZls4rRuFbWLRI48WWFOBG3Y+u7sU1k8JprRxkGguOe2qE8BQdXP6oZjd3tSl5 XKeElRAKCxraqTyo+qKuf383lD9f2DMqc1ZS3iLaZxtHCkrw1lavglKUeZtFnF480R BSv24yp3C8XJA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Tegra SPI controller has TX and RX trimmers to tuning the delay of SPI master clock with respect to the data. TX and RX tap values are based on the platform validation across the PVT and the trimmer values vary based on the trace lengths to the corresponding SPI devices. Signed-off-by: Sowjanya Komatineni --- .../devicetree/bindings/spi/nvidia,tegra114-spi.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Documentation/devicetree/bindings/spi/nvidia,tegra114-spi.txt b/Documentation/devicetree/bindings/spi/nvidia,tegra114-spi.txt index 9ba7c5a273b4..db8e0d71c5bc 100644 --- a/Documentation/devicetree/bindings/spi/nvidia,tegra114-spi.txt +++ b/Documentation/devicetree/bindings/spi/nvidia,tegra114-spi.txt @@ -23,6 +23,18 @@ Required properties: Recommended properties: - spi-max-frequency: Definition as per Documentation/devicetree/bindings/spi/spi-bus.txt +Optional properties: +- 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. + Tap values vary based on the platform design trace lengths from Tegra SPI + to corresponding slave devices. Valid tap values are from 0 thru 63. +- 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. + Tap values vary based on the platform design trace lengths from Tegra SPI + to corresponding slave devices. Valid tap values are from 0 thru 63. + Example: spi@7000d600 { @@ -38,4 +50,12 @@ spi@7000d600 { reset-names = "spi"; dmas = <&apbdma 16>, <&apbdma 16>; dma-names = "rx", "tx"; + @ { + ... + ... + nvidia,rx-clk-tap-delay = <0>; + nvidia,tx-clk-tap-delay = <16>; + ... + }; + }; -- 2.7.4