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: apronin@chromium.org X-Patchwork-Id: 653577 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 ozlabs.org (Postfix) with ESMTPS id 3s0JgY2Jknz9snm for ; Thu, 28 Jul 2016 14:25:29 +1000 (AEST) 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-Spam-Score: -1.6 (-) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.0 AWL AWL: Adjusted score from AWL reputation of From: address 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 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>; + }; +};