From patchwork Tue Aug 6 22:07:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 11079649 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 599C91395 for ; Tue, 6 Aug 2019 22:07:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 48CA8287DE for ; Tue, 6 Aug 2019 22:07:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3C61C288D7; Tue, 6 Aug 2019 22:07:57 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D18C8287DE for ; Tue, 6 Aug 2019 22:07:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727256AbfHFWHz (ORCPT ); Tue, 6 Aug 2019 18:07:55 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:36298 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727204AbfHFWHz (ORCPT ); Tue, 6 Aug 2019 18:07:55 -0400 Received: by mail-pl1-f193.google.com with SMTP id k8so38429025plt.3 for ; Tue, 06 Aug 2019 15:07:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=pbLJacb6MCh29sDmogMC5h9hCymvEateyvCVNbUfmp0=; b=YDoIiBkou3pIhFNxBZpj0J83UtcpbrvdPUfIEHIJdhP8SlF5ssVac7LzF+ibBYWH5U wiEkdRC6X4/LBGjrSEDSe1FoPUzZQZ0oOVE44aAVabHsFrZMvqrb5hOgrULJb0iQ9hKK +CvYjb0K4E4ld/5eUKf4zNddqy++fMK7t/WuA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=pbLJacb6MCh29sDmogMC5h9hCymvEateyvCVNbUfmp0=; b=kyKeao887NPB+ISNtbgrdVciUdP7jHDPPHipuxeIlWb6FTv9m0rl+rXQanNxKS+9Y/ STQPXKldT15tlxBBdKPs4POFeofkkl1ieiU2XXeGIyg1fb061I93VxtLgy4dbkZUNySy UKaHwsS8RsgKkBamt5usA6R5jjBaZy4JCPp1AkGvYqOrEGVOwFqcdEuXwLNy+XZHV7Cl 1A/Q0Xtswlh/ZtPdjyeS0bTlPXm8zyOO1RIETU/d2A7swQKBmnqcCKThHmH1NxIVh3zV awTvI4OPIgdGeTUw3xGPlysMLCIg2X29kUZHY0uY/5TfYlXm5LHq/fucrdSgoL6GUssi aqDA== X-Gm-Message-State: APjAAAWFR4prX5cYovflOuSrkJ0rR8sutmmDh4uvf5bc+LBJRh/AGkvv 4PaZlD4hx64U+LFUaCYbh7Al3w== X-Google-Smtp-Source: APXvYqxPGQX5rSvQMu77o3qqkAW7npZloPdgkKNzcWKS4m1GnUr7uro7fEp/tJsmJ3LNl3LVL22idA== X-Received: by 2002:a17:902:e613:: with SMTP id cm19mr4814750plb.299.1565129274668; Tue, 06 Aug 2019 15:07:54 -0700 (PDT) Received: from smtp.gmail.com ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id p7sm98982509pfp.131.2019.08.06.15.07.53 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 06 Aug 2019 15:07:54 -0700 (PDT) From: Stephen Boyd To: Peter Huewe , Jarkko Sakkinen Cc: Andrey Pronin , linux-kernel@vger.kernel.org, linux-integrity@vger.kernel.org, Duncan Laurie , Jason Gunthorpe , Arnd Bergmann , Greg Kroah-Hartman , Guenter Roeck , Alexander Steffen , Rob Herring Subject: [PATCH v3 3/4] dt-bindings: tpm: document properties for cr50 Date: Tue, 6 Aug 2019 15:07:49 -0700 Message-Id: <20190806220750.86597-4-swboyd@chromium.org> X-Mailer: git-send-email 2.22.0.770.g0f2c4a37fd-goog In-Reply-To: <20190806220750.86597-1-swboyd@chromium.org> References: <20190806220750.86597-1-swboyd@chromium.org> MIME-Version: 1.0 Sender: linux-integrity-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-integrity@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Andrey Pronin Add TPM2.0 PTP FIFO compatible SPI interface for chips with Cr50 firmware. Cc: Andrey Pronin Cc: Duncan Laurie Cc: Jason Gunthorpe Cc: Arnd Bergmann Cc: Greg Kroah-Hartman Cc: Guenter Roeck Cc: Alexander Steffen Signed-off-by: Andrey Pronin Reviewed-by: Rob Herring Signed-off-by: Stephen Boyd --- .../bindings/security/tpm/google,cr50.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Documentation/devicetree/bindings/security/tpm/google,cr50.txt diff --git a/Documentation/devicetree/bindings/security/tpm/google,cr50.txt b/Documentation/devicetree/bindings/security/tpm/google,cr50.txt new file mode 100644 index 000000000000..7aa65224c8b9 --- /dev/null +++ b/Documentation/devicetree/bindings/security/tpm/google,cr50.txt @@ -0,0 +1,19 @@ +* 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 { + tpm@0 { + compatible = "google,cr50"; + reg = <0>; + spi-max-frequency = <800000>; + }; +};