From patchwork Fri Jul 29 01:55:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Pronin X-Patchwork-Id: 9251895 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 24AD06075F for ; Fri, 29 Jul 2016 01:55:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 16E9227F54 for ; Fri, 29 Jul 2016 01:55:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0B61727F8F; Fri, 29 Jul 2016 01:55:29 +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 8769027F54 for ; Fri, 29 Jul 2016 01:55:28 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=sfs-ml-1.v29.ch3.sourceforge.com) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1bSx1J-0006E4-F7; Fri, 29 Jul 2016 01:55:25 +0000 Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1bSx1H-0006Dq-Ui for tpmdd-devel@lists.sourceforge.net; Fri, 29 Jul 2016 01:55:23 +0000 Received-SPF: pass (sog-mx-4.v43.ch3.sourceforge.com: domain of chromium.org designates 209.85.192.182 as permitted sender) client-ip=209.85.192.182; envelope-from=apronin@chromium.org; helo=mail-pf0-f182.google.com; Received: from mail-pf0-f182.google.com ([209.85.192.182]) by sog-mx-4.v43.ch3.sourceforge.com with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) id 1bSx1H-0002Oh-68 for tpmdd-devel@lists.sourceforge.net; Fri, 29 Jul 2016 01:55:23 +0000 Received: by mail-pf0-f182.google.com with SMTP id x72so27402379pfd.2 for ; Thu, 28 Jul 2016 18:55:23 -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=g8LdFtdn86NVSjYV4Ocm5XVB/LZH/WspybVv+O0vGiKKouguEONVpb2c+O1RPWBlbJ Ws+y/ldxBqj0JQgje/tlp87YHPohW7kJFoKxhvYTVz5Z3J7bLwV1sL/QkGlhrEvGXCGk dNUqUDP0VcGcAhDnseM91JQa89ftANXAvonpokldKGnGE1fPxY3TiCVM6455b1/Q0qK5 KhXAomsyE5RMvrq2Mfw5CmVkcrH3J4ykIQ/49XHLsTMswQD5kLQZlaUyrnvNCpNlfah3 x716viIydTc9sqKs7H8klIMQO0yk3f+g4IJSzJqKClCid4rYU409wWcv9JCHeCecBgh8 QDcA== X-Gm-Message-State: AEkoouv8A2gPFc+H6qhIGhhK34PGnz6V69CWMKEZ4M3NDxe0k72Mq809N9sKKauan87LfqBT X-Received: by 10.98.50.2 with SMTP id y2mr64337319pfy.138.1469757317527; Thu, 28 Jul 2016 18:55:17 -0700 (PDT) Received: from apronin0.mtv.corp.google.com ([172.22.64.136]) by smtp.gmail.com with ESMTPSA id b68sm19949319pfg.85.2016.07.28.18.55.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 28 Jul 2016 18:55:17 -0700 (PDT) From: Andrey Pronin To: Jarkko Sakkinen Date: Thu, 28 Jul 2016 18:55:13 -0700 Message-Id: <1469757314-116169-2-git-send-email-apronin@chromium.org> X-Mailer: git-send-email 2.8.0.rc3.226.g39d4020 In-Reply-To: <1469757314-116169-1-git-send-email-apronin@chromium.org> References: <1468549218-19215-1-git-send-email-apronin@chromium.org> <1469757314-116169-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: 1bSx1H-0002Oh-68 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 v4 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 Acked-by: Rob Herring Acked-by: Jarkko Sakkinen --- .../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>; + }; +};