From patchwork Thu Jul 28 04:25:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Pronin X-Patchwork-Id: 9250663 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 7BBBB607D8 for ; Thu, 28 Jul 2016 04:25:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6F7262522B for ; Thu, 28 Jul 2016 04:25:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 63E322623C; Thu, 28 Jul 2016 04:25:30 +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 01FFD2522B for ; Thu, 28 Jul 2016 04:25:30 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=sfs-ml-4.v29.ch3.sourceforge.com) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1bScsx-0007Hk-I5; Thu, 28 Jul 2016 04:25:27 +0000 Received: from sog-mx-2.v43.ch3.sourceforge.com ([172.29.43.192] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1bScsw-0007He-Cg for tpmdd-devel@lists.sourceforge.net; Thu, 28 Jul 2016 04:25:26 +0000 Received-SPF: pass (sog-mx-2.v43.ch3.sourceforge.com: domain of chromium.org designates 209.85.220.51 as permitted sender) client-ip=209.85.220.51; envelope-from=apronin@chromium.org; helo=mail-pa0-f51.google.com; Received: from mail-pa0-f51.google.com ([209.85.220.51]) by sog-mx-2.v43.ch3.sourceforge.com with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) id 1bScsv-0001nB-MI for tpmdd-devel@lists.sourceforge.net; Thu, 28 Jul 2016 04:25:26 +0000 Received: by mail-pa0-f51.google.com with SMTP id ks6so16860419pab.0 for ; Wed, 27 Jul 2016 21:25:25 -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=NMlZNlnxyqsZYl7cUaFJDqinCY/Ekhxfy78JUZNl2Ac=; b=OZoLYf+33aFWWHehWUUjPw4l9cEZ0BDY5Gd9f7Ndf5LF3KiBp/fafniL/mk9FwjlBQ JGCO/Gw0FhPVIdqv9e/CCOYCh9mshzqDW7ddfZfNFg4SIMrWLykecjJKQwvaS9Bj9zvj +w0hDr1pFSt4QSJ10sYnetYbgZqErKJ+gCAmg+/qDE2VpHlWs3h8KOMKvcTyLGN/sha9 e/EIISbKXAI67/B2TaoIeZ9eBsLf7D+n9pNNoQwCcbx5Twfxwye0/5i6iU7jH9KFzqtO t2vAKIbUVcqa8xOEorI5b8DPhvPU+7/s0b2imms2jWegt2sjihvhw1XP9rNJ9z74Qixb UYYA== X-Gm-Message-State: AEkoouvKrfiwQVBt/fB30XBrZvqPCYDREfxyt8MHGqxW1935JSkQ7y8Ys7hj47RFDunqVllZ X-Received: by 10.66.191.66 with SMTP id gw2mr15190811pac.153.1469679920052; Wed, 27 Jul 2016 21:25:20 -0700 (PDT) Received: from apronin0.mtv.corp.google.com ([172.22.64.136]) by smtp.gmail.com with ESMTPSA id zk7sm12515271pac.41.2016.07.27.21.25.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 27 Jul 2016 21:25:19 -0700 (PDT) From: Andrey Pronin To: Jarkko Sakkinen Date: Wed, 27 Jul 2016 21:25:16 -0700 Message-Id: <1469679917-120240-2-git-send-email-apronin@chromium.org> X-Mailer: git-send-email 2.8.0.rc3.226.g39d4020 In-Reply-To: <1469679917-120240-1-git-send-email-apronin@chromium.org> References: <1468549218-19215-1-git-send-email-apronin@chromium.org> <1469679917-120240-1-git-send-email-apronin@chromium.org> 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: 1bScsv-0001nB-MI Cc: Mark Rutland , devicetree@vger.kernel.org, Christophe Ricard , dianders@chromium.org, Pawel Moll , Ian Campbell , linux-kernel@vger.kernel.org, Rob Herring , smbarber@chromium.org, tpmdd-devel@lists.sourceforge.net, Kumar Gala , dtor@chromium.org Subject: [tpmdd-devel] [PATCH v3 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. Signed-off-by: Andrey Pronin --- .../devicetree/bindings/security/tpm/cr50_spi.txt | 21 +++++++++++++++++++++ 1 file changed, 21 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..2fbebd3 --- /dev/null +++ b/Documentation/devicetree/bindings/security/tpm/cr50_spi.txt @@ -0,0 +1,21 @@ +* 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. + +Example: + +&spi0 { + status = "okay"; + + cr50@0 { + compatible = "google,cr50"; + reg = <0>; + spi-max-frequency = <800000>; + }; +};