From patchwork Fri Jul 15 02:20:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Pronin X-Patchwork-Id: 9231051 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 4395D60572 for ; Fri, 15 Jul 2016 02:21:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 31B9828308 for ; Fri, 15 Jul 2016 02:21:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2652128326; Fri, 15 Jul 2016 02:21:00 +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 8E5D228308 for ; Fri, 15 Jul 2016 02:20:59 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=sfs-ml-2.v29.ch3.sourceforge.com) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1bNskM-0003YP-33; Fri, 15 Jul 2016 02:20:58 +0000 Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1bNskL-0003YF-3y for tpmdd-devel@lists.sourceforge.net; Fri, 15 Jul 2016 02:20:57 +0000 Received-SPF: pass (sog-mx-3.v43.ch3.sourceforge.com: domain of chromium.org designates 209.85.192.178 as permitted sender) client-ip=209.85.192.178; envelope-from=apronin@chromium.org; helo=mail-pf0-f178.google.com; Received: from mail-pf0-f178.google.com ([209.85.192.178]) by sog-mx-3.v43.ch3.sourceforge.com with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) id 1bNskK-0007nJ-Cl for tpmdd-devel@lists.sourceforge.net; Fri, 15 Jul 2016 02:20:57 +0000 Received: by mail-pf0-f178.google.com with SMTP id t190so35819893pfb.3 for ; Thu, 14 Jul 2016 19:20:56 -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; bh=b3wNpqrYrAKw8vJo6FFQLwQZjMnqM6oGAHXvJOvbqTE=; b=SrWxdB7ikd/108ZkAe7qAf+ND0d1UgtVonVU+NG2r44bBPZEPrzkpeQIMFW/MiwxUr BS7MgVFPVlkRU+Ubfst5HBV8T7Evn//VPHkttyA/CmwNgR+br/iW0tAeOI7Iadp/u+eJ rByGH6dY8bFa1aT6sph0XeIClRukxYGgiwD0Y01tI0aanTpt4fFrXgYBBvsVsZfzssSs edHQgoLe/EiQDa7kQUV9DxxoSqZ+nmMiZeV1kxtLaZZ3BewXAoX6nFwhae2Bgk0zo02M JHGvFVzUw9j+5M9P8u5b6Er5OQ52MDCqOi7wjDpOb7dJ9Gcm6CoBgLIi6jbVEGcQMLBR GP3g== X-Gm-Message-State: ALyK8tKRmSK3EbK8LX7tY+na99ylj002bYMuPTHdZ4J6BrB72j6hvSevf8lLQ5wOLFbPtnUa X-Received: by 10.98.86.85 with SMTP id k82mr17785531pfb.82.1468549250729; Thu, 14 Jul 2016 19:20:50 -0700 (PDT) Received: from apronin0.mtv.corp.google.com ([172.22.64.136]) by smtp.gmail.com with ESMTPSA id 62sm3063580pfv.26.2016.07.14.19.20.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 14 Jul 2016 19:20:50 -0700 (PDT) From: Andrey Pronin To: Jarkko Sakkinen Date: Thu, 14 Jul 2016 19:20:17 -0700 Message-Id: <1468549218-19215-2-git-send-email-apronin@chromium.org> X-Mailer: git-send-email 2.8.0.rc3.226.g39d4020 In-Reply-To: <1468549218-19215-1-git-send-email-apronin@chromium.org> References: <1468549218-19215-1-git-send-email-apronin@chromium.org> X-Headers-End: 1bNskK-0007nJ-Cl Cc: =?UTF-8?q?=C2=A0=C2=A0=C2=A0Mark=20Rutland?= , devicetree@vger.kernel.org, dianders@chromium.org, =?UTF-8?q?=C2=A0=C2=A0=C2=A0Pawel=20Moll?= , =?UTF-8?q?=C2=A0=C2=A0=C2=A0Ian=20Campbell?= , linux-kernel@vger.kernel.org, =?UTF-8?q?=C2=A0=C2=A0=C2=A0Rob=20Herring?= , smbarber@chromium.org, tpmdd-devel@lists.sourceforge.net, =?UTF-8?q?=C2=A0=C2=A0=C2=A0Kumar=20Gala?= , groeck@chromium.org Subject: [tpmdd-devel] [PATCH 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-compatible interface to Cr50. Document its properties in devicetree. Signed-off-by: Andrey Pronin --- .../devicetree/bindings/security/tpm/cr50_spi.txt | 30 ++++++++++++++++++++++ 1 file changed, 30 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..1b05e51 --- /dev/null +++ b/Documentation/devicetree/bindings/security/tpm/cr50_spi.txt @@ -0,0 +1,30 @@ +* Cr50 Chip on SPI. + +TCG PTP FIFO Compliant Interface to Cr50 on SPI bus. + +Required properties: +- compatible: Should be "google,cr50_spi". +- spi-max-frequency: Maximum SPI frequency. + +Optional properties: +- access-delay-msec: Required delay between subsequent transactions on SPI. +- sleep-delay-msec: Time after the last SPI activity, after which the chip + may go to sleep. +- wake-start-delay-msec: Time after initiating wake up before the chip is + ready to accept commands over SPI. + +Example: + +&spi0 { + status = "okay"; + + cr50@0 { + compatible = "google,cr50_spi"; + reg = <0>; + spi-max-frequency = <800000>; + + access-delay-msec = <2>; + sleep-delay-msec = <1000>; + wake-start-delay-msec = <60>; + }; +};