From patchwork Wed Jul 20 03:41:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Pronin X-Patchwork-Id: 9238733 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5B129602F0 for ; Wed, 20 Jul 2016 03:41:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4A29C200F5 for ; Wed, 20 Jul 2016 03:41:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3C1932756B; Wed, 20 Jul 2016 03:41:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2D0AA2624D for ; Wed, 20 Jul 2016 03:41:37 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=sfs-ml-3.v29.ch3.sourceforge.com) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1bPiO7-0000MB-Uz; Wed, 20 Jul 2016 03:41:35 +0000 Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1bPiO7-0000M6-KT for tpmdd-devel@lists.sourceforge.net; Wed, 20 Jul 2016 03:41:35 +0000 Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of chromium.org designates 209.85.192.172 as permitted sender) client-ip=209.85.192.172; envelope-from=apronin@chromium.org; helo=mail-pf0-f172.google.com; Received: from mail-pf0-f172.google.com ([209.85.192.172]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) id 1bPiO6-0003FC-RB for tpmdd-devel@lists.sourceforge.net; Wed, 20 Jul 2016 03:41:35 +0000 Received: by mail-pf0-f172.google.com with SMTP id y134so14166333pfg.0 for ; Tue, 19 Jul 2016 20:41:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=sLcd/rys0MCiMBkCCgMsnH2n3WHi8GTe8xLGrVTiVgU=; b=VuZ7SB2phUVRsZfcIs3T73C9S9XyDwCQhtMpJGFd/JxInEoLvLu/9nBuONWsx5W+e0 31kDUb8Nx/x5TbSaBKYYQpjqSVFqihRVcWkh4Bcnd+qd9F7nZJYTt0N3cqAacpkIRhDG 3EsfCdAQz2XLtn0EYIiIInW9swq0immKurqrs+dwjTPSJiHT2ZtRRz3APh13Pr6P4bMJ xqADX5UBzdyE2DJHdfMmkc1wuDf6TKpBWYuNRQzX25MjoMkLeHouX40g+ei6nRaHlou8 kRltdQCsc3EO6wHC9FgMSmUjdVRNq/1GGjWisN/5V1zjW7UBZo9r/4522XRyhkZbavq7 X/ng== X-Gm-Message-State: ALyK8tIKnPmM938Lt9vUQZTH1bHTg2jqlk/xCGo3urFjg9I2M5y95wjcYGqWWAzp1r5KT7Kt X-Received: by 10.98.10.148 with SMTP id 20mr60934141pfk.154.1468986089187; Tue, 19 Jul 2016 20:41:29 -0700 (PDT) Received: from apronin0.mtv.corp.google.com ([172.22.64.136]) by smtp.gmail.com with ESMTPSA id 132sm584930pfu.6.2016.07.19.20.41.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 19 Jul 2016 20:41:28 -0700 (PDT) From: Andrey Pronin To: Jarkko Sakkinen Date: Tue, 19 Jul 2016 20:41:24 -0700 Message-Id: <5274cc806888a709c639e701dad894543885b2c9.1468985673.git.apronin@chromium.org> X-Mailer: git-send-email 2.8.0.rc3.226.g39d4020 In-Reply-To: References: <1468549218-19215-1-git-send-email-apronin@chromium.org> In-Reply-To: References: <1468549218-19215-1-git-send-email-apronin@chromium.org> X-Headers-End: 1bPiO6-0003FC-RB Cc: Mark Rutland , devicetree@vger.kernel.org, Christophe Ricard , Pawel Moll , Ian Campbell , linux-kernel@vger.kernel.org, Rob Herring , tpmdd-devel@lists.sourceforge.net, Kumar Gala Subject: [tpmdd-devel] [PATCH v2 1/2] tpm: devicetree: document properties for cr50 X-BeenThere: tpmdd-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: Tpm Device Driver maintainance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: tpmdd-devel-bounces@lists.sourceforge.net X-Virus-Scanned: ClamAV using ClamSMTP Add TPM2.0 PTP FIFO compatible SPI interface for chips with Cr50 firmware. Several timing-related properties that may differ from one firmware version to another are added to devicetree. Document these properties. Signed-off-by: Andrey Pronin --- .../devicetree/bindings/security/tpm/cr50_spi.txt | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/security/tpm/cr50_spi.txt diff --git a/Documentation/devicetree/bindings/security/tpm/cr50_spi.txt b/Documentation/devicetree/bindings/security/tpm/cr50_spi.txt new file mode 100644 index 0000000..f212b6b --- /dev/null +++ b/Documentation/devicetree/bindings/security/tpm/cr50_spi.txt @@ -0,0 +1,32 @@ +* H1 Secure Microcontroller with Cr50 Firmware on SPI Bus. + +H1 Secure Microcontroller running Cr50 firmware provides several +functions, including TPM-like functionality. It communicates over +SPI using the FIFO protocol described in the PTP Spec, section 6. + +Required properties: +- compatible: Should be "google,cr50". +- spi-max-frequency: Maximum SPI frequency. + +Optional properties: +- access-delay-ms: Required delay between subsequent transactions on SPI. +- sleep-delay-ms: Time after the last SPI activity, after which the chip + may go to sleep. +- wake-start-delay-ms: Time after initiating wake up before the chip is + ready to accept commands over SPI. + +Example: + +&spi0 { + status = "okay"; + + cr50@0 { + compatible = "google,cr50"; + reg = <0>; + spi-max-frequency = <800000>; + + access-delay-ms = <2>; + sleep-delay-ms = <1000>; + wake-start-delay-ms = <60>; + }; +};