From patchwork Fri Sep 30 16:51:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexander Steffen X-Patchwork-Id: 1684957 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=infineon.com header.i=@infineon.com header.a=rsa-sha256 header.s=IFXMAIL header.b=V8mYk5o8; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4MfGl82Lsvz1yql for ; Sat, 1 Oct 2022 03:03:16 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231146AbiI3RDP (ORCPT ); Fri, 30 Sep 2022 13:03:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231710AbiI3RDN (ORCPT ); Fri, 30 Sep 2022 13:03:13 -0400 Received: from smtp11.infineon.com (smtp11.infineon.com [IPv6:2a00:18f0:1e00:4::5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B82F51D8F24; Fri, 30 Sep 2022 10:03:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infineon.com; i=@infineon.com; q=dns/txt; s=IFXMAIL; t=1664557391; x=1696093391; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=T+Ca+rPzfinJ31D4JgeNITQ6MRRb0mvisyTTPC1liic=; b=V8mYk5o8ltajlXSr2SDMaLw1/fr07aA8oE43oKiLx/8+3qQT4wtMeA4S UQjmL/Ni+UKc0VoVEGuIX39YStha9S0dWTFwxM/d6ZrfJFgkDJcGN7pvl ihwfkRI2KpUm3osaw9A8MgyL09EKjapLXFzC2ndkDfMkoLmjaBP3fo7vm s=; X-SBRS: None X-IronPort-AV: E=McAfee;i="6500,9779,10486"; a="319753130" X-IronPort-AV: E=Sophos;i="5.93,358,1654552800"; d="scan'208";a="319753130" Received: from unknown (HELO mucxv001.muc.infineon.com) ([172.23.11.16]) by smtp11.infineon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Sep 2022 19:01:57 +0200 Received: from MUCSE814.infineon.com (MUCSE814.infineon.com [172.23.29.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mucxv001.muc.infineon.com (Postfix) with ESMTPS; Fri, 30 Sep 2022 19:01:56 +0200 (CEST) Received: from MUCSE817.infineon.com (172.23.29.43) by MUCSE814.infineon.com (172.23.29.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Fri, 30 Sep 2022 19:01:56 +0200 Received: from ISCNPC0VBFBX.infineon.com (172.23.8.247) by MUCSE817.infineon.com (172.23.29.43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Fri, 30 Sep 2022 19:01:56 +0200 From: Alexander Steffen To: , , , CC: Alexander Steffen , , , , Subject: [PATCH 1/7] dt-bindings: tpm: Introduce trivial-tpms.yaml Date: Fri, 30 Sep 2022 18:51:10 +0200 Message-ID: <20220930165116.13329-2-Alexander.Steffen@infineon.com> X-Mailer: git-send-email 2.28.0.windows.1 In-Reply-To: <20220930165116.13329-1-Alexander.Steffen@infineon.com> References: <20220930165116.13329-1-Alexander.Steffen@infineon.com> MIME-Version: 1.0 X-Originating-IP: [172.23.8.247] X-ClientProxiedBy: MUCSE802.infineon.com (172.23.29.28) To MUCSE817.infineon.com (172.23.29.43) X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Most TPM devices are very similar and only need a few common properties to describe them. However, they may use more properties than other trivial I2C or SPI devices, e.g. powered-while-suspended. Therefore, move them to their own trivial-tpms.yaml. Signed-off-by: Alexander Steffen --- .../bindings/security/tpm/trivial-tpms.yaml | 54 +++++++++++++++++++ .../devicetree/bindings/trivial-devices.yaml | 16 ------ 2 files changed, 54 insertions(+), 16 deletions(-) create mode 100644 Documentation/devicetree/bindings/security/tpm/trivial-tpms.yaml diff --git a/Documentation/devicetree/bindings/security/tpm/trivial-tpms.yaml b/Documentation/devicetree/bindings/security/tpm/trivial-tpms.yaml new file mode 100644 index 000000000000..fadd4ca96554 --- /dev/null +++ b/Documentation/devicetree/bindings/security/tpm/trivial-tpms.yaml @@ -0,0 +1,54 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/security/tpm/trivial-tpms.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Trivial TPM devices that have simple device tree bindings + +maintainers: + - linux-integrity@vger.kernel.org + +description: | + This is a list of trivial TPM devices that share the same properties and + therefore have simple device tree bindings. + + If a device needs more specific bindings, such as properties to + describe some aspect of it, there needs to be a specific binding + document for it just like any other devices. + +properties: + reg: + maxItems: 1 + interrupts: + maxItems: 1 + + spi-max-frequency: true + + compatible: + contains: + enum: + # i2c trusted platform module (TPM) + - atmel,at97sc3204t + # Infineon SLB9635 (Soft-) I2C TPM (old protocol, max 100khz) + - infineon,slb9635tt + # Infineon SLB9645 I2C TPM (new protocol, max 400khz) + - infineon,slb9645tt + # Infineon SLB9673 I2C TPM 2.0 + - infineon,slb9673 + # i2c trusted platform module (TPM) + - nuvoton,npct501 + # i2c trusted platform module (TPM2) + - nuvoton,npct601 + # Socionext SynQuacer TPM MMIO module + - socionext,synquacer-tpm-mmio + # i2c trusted platform module (TPM) + - winbond,wpct301 + +required: + - compatible + - reg + +additionalProperties: false + +... diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml index 61746755c107..1cc7f82c0822 100644 --- a/Documentation/devicetree/bindings/trivial-devices.yaml +++ b/Documentation/devicetree/bindings/trivial-devices.yaml @@ -47,8 +47,6 @@ properties: - ams,iaq-core # i2c serial eeprom (24cxx) - at,24c08 - # i2c trusted platform module (TPM) - - atmel,at97sc3204t # ATSHA204 - i2c h/w symmetric crypto module - atmel,atsha204 # ATSHA204A - i2c h/w symmetric crypto module @@ -135,12 +133,6 @@ properties: - infineon,ir38164 # Infineon IR38263 Voltage Regulator - infineon,ir38263 - # Infineon SLB9635 (Soft-) I2C TPM (old protocol, max 100khz) - - infineon,slb9635tt - # Infineon SLB9645 I2C TPM (new protocol, max 400khz) - - infineon,slb9645tt - # Infineon SLB9673 I2C TPM 2.0 - - infineon,slb9673 # Infineon TLV493D-A1B6 I2C 3D Magnetic Sensor - infineon,tlv493d-a1b6 # Infineon Multi-phase Digital VR Controller xdpe11280 @@ -289,10 +281,6 @@ properties: - national,lm85 # I2C ±0.33°C Accurate, 12-Bit + Sign Temperature Sensor and Thermal Window Comparator - national,lm92 - # i2c trusted platform module (TPM) - - nuvoton,npct501 - # i2c trusted platform module (TPM2) - - nuvoton,npct601 # Nuvoton Temperature Sensor - nuvoton,w83773g # OKI ML86V7667 video decoder @@ -327,8 +315,6 @@ properties: - silabs,si7020 # Skyworks SKY81452: Six-Channel White LED Driver with Touch Panel Bias Supply - skyworks,sky81452 - # Socionext SynQuacer TPM MMIO module - - socionext,synquacer-tpm-mmio # SparkFun Qwiic Joystick (COM-15168) with i2c interface - sparkfun,qwiic-joystick # i2c serial eeprom (24cxx) @@ -383,8 +369,6 @@ properties: - winbond,w83793 # Vicor Corporation Digital Supervisor - vicor,pli1209bc - # i2c trusted platform module (TPM) - - winbond,wpct301 required: - compatible From patchwork Fri Sep 30 16:51:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Steffen X-Patchwork-Id: 1684953 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=infineon.com header.i=@infineon.com header.a=rsa-sha256 header.s=IFXMAIL header.b=YU/yPf/Y; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4MfGl05807z1yql for ; Sat, 1 Oct 2022 03:03:08 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232296AbiI3RDH (ORCPT ); Fri, 30 Sep 2022 13:03:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232297AbiI3RDG (ORCPT ); Fri, 30 Sep 2022 13:03:06 -0400 X-Greylist: delayed 66 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 30 Sep 2022 10:03:04 PDT Received: from smtp14.infineon.com (smtp14.infineon.com [IPv6:2a00:18f0:1e00:4::6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA8392CE26; Fri, 30 Sep 2022 10:03:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infineon.com; i=@infineon.com; q=dns/txt; s=IFXMAIL; t=1664557385; x=1696093385; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=KXpovvhc1F99+qouUSx7eKoSRNU23zayh3V3g0+X1+8=; b=YU/yPf/YaUmjJJ4Q+0DKNlReU45snWTj89LO1VvQXgRtZhC4xF4hZzp/ UbHQlmx8cRq9hFzRt9oorMaryHTW5bAE++jyYIWDdJ8YB6IQmURCldxbG eYrDPyqc1xJOy34LRGGbOUdhQUBWwQ++hli6ain+SdkESk6ofz9vsKLIe w=; X-SBRS: None X-IronPort-AV: E=McAfee;i="6500,9779,10486"; a="143525586" X-IronPort-AV: E=Sophos;i="5.93,358,1654552800"; d="scan'208";a="143525586" Received: from unknown (HELO mucxv003.muc.infineon.com) ([172.23.11.20]) by smtp14.infineon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Sep 2022 19:01:57 +0200 Received: from MUCSE812.infineon.com (MUCSE812.infineon.com [172.23.29.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mucxv003.muc.infineon.com (Postfix) with ESMTPS; Fri, 30 Sep 2022 19:01:56 +0200 (CEST) Received: from MUCSE817.infineon.com (172.23.29.43) by MUCSE812.infineon.com (172.23.29.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Fri, 30 Sep 2022 19:01:56 +0200 Received: from ISCNPC0VBFBX.infineon.com (172.23.8.247) by MUCSE817.infineon.com (172.23.29.43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Fri, 30 Sep 2022 19:01:56 +0200 From: Alexander Steffen To: , , , CC: Alexander Steffen , , , , Subject: [PATCH 2/7] dt-bindings: tpm: Improve documentation of compatibles Date: Fri, 30 Sep 2022 18:51:11 +0200 Message-ID: <20220930165116.13329-3-Alexander.Steffen@infineon.com> X-Mailer: git-send-email 2.28.0.windows.1 In-Reply-To: <20220930165116.13329-1-Alexander.Steffen@infineon.com> References: <20220930165116.13329-1-Alexander.Steffen@infineon.com> MIME-Version: 1.0 X-Originating-IP: [172.23.8.247] X-ClientProxiedBy: MUCSE802.infineon.com (172.23.29.28) To MUCSE817.infineon.com (172.23.29.43) X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add missing information: * Device name, for discoverability * Interface, to distinguish otherwise similar devices * TPM version, so that outdated devices can be deprecated in the future Signed-off-by: Alexander Steffen --- .../bindings/security/tpm/trivial-tpms.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/security/tpm/trivial-tpms.yaml b/Documentation/devicetree/bindings/security/tpm/trivial-tpms.yaml index fadd4ca96554..2092341c6491 100644 --- a/Documentation/devicetree/bindings/security/tpm/trivial-tpms.yaml +++ b/Documentation/devicetree/bindings/security/tpm/trivial-tpms.yaml @@ -28,21 +28,21 @@ properties: compatible: contains: enum: - # i2c trusted platform module (TPM) + # Atmel AT97SC3204T I2C TPM 1.2 - atmel,at97sc3204t - # Infineon SLB9635 (Soft-) I2C TPM (old protocol, max 100khz) + # Infineon SLB9635 I2C TPM 1.2 (old protocol, max 100khz) - infineon,slb9635tt - # Infineon SLB9645 I2C TPM (new protocol, max 400khz) + # Infineon SLB9645 I2C TPM 1.2 (new protocol, max 400khz) - infineon,slb9645tt # Infineon SLB9673 I2C TPM 2.0 - infineon,slb9673 - # i2c trusted platform module (TPM) + # Nuvoton NPCT501 I2C TPM 1.2 - nuvoton,npct501 - # i2c trusted platform module (TPM2) + # Nuvoton NPCT601 I2C TPM 2.0 - nuvoton,npct601 - # Socionext SynQuacer TPM MMIO module + # Socionext SynQuacer MMIO TPM - socionext,synquacer-tpm-mmio - # i2c trusted platform module (TPM) + # Winbond WPCT301 I2C TPM 1.2 - winbond,wpct301 required: From patchwork Fri Sep 30 16:51:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Steffen X-Patchwork-Id: 1684954 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=infineon.com header.i=@infineon.com header.a=rsa-sha256 header.s=IFXMAIL header.b=BNrZ9JWx; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4MfGl42jrZz1yql for ; Sat, 1 Oct 2022 03:03:12 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231547AbiI3RDJ (ORCPT ); Fri, 30 Sep 2022 13:03:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230450AbiI3RDI (ORCPT ); Fri, 30 Sep 2022 13:03:08 -0400 Received: from smtp14.infineon.com (smtp14.infineon.com [IPv6:2a00:18f0:1e00:4::6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A94181D8F0B; Fri, 30 Sep 2022 10:03:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infineon.com; i=@infineon.com; q=dns/txt; s=IFXMAIL; t=1664557387; x=1696093387; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=GvfB0MVrva7QBtg+sGZTDoSSvs5VB9AHgqRsKrTHE9c=; b=BNrZ9JWxV/IRyXU233bEc4V2t95AnEz+i6pNWx+SgUcUs6nBmkvmA/mk iUysjkq2ybwhm/GxNCZnV+yKZEDB3Ro/Dm31mt9nMe13l5QpRS22FU/hN IYQi6Irq+x2pjG3O/hPCirgFyHJbvxwub9P2Q9AlwMOU4ygi+e7+0zkeV M=; X-SBRS: None X-IronPort-AV: E=McAfee;i="6500,9779,10486"; a="143525587" X-IronPort-AV: E=Sophos;i="5.93,358,1654552800"; d="scan'208";a="143525587" Received: from unknown (HELO mucxv003.muc.infineon.com) ([172.23.11.20]) by smtp14.infineon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Sep 2022 19:01:57 +0200 Received: from MUCSE805.infineon.com (MUCSE805.infineon.com [172.23.29.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mucxv003.muc.infineon.com (Postfix) with ESMTPS; Fri, 30 Sep 2022 19:01:57 +0200 (CEST) Received: from MUCSE817.infineon.com (172.23.29.43) by MUCSE805.infineon.com (172.23.29.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Fri, 30 Sep 2022 19:01:56 +0200 Received: from ISCNPC0VBFBX.infineon.com (172.23.8.247) by MUCSE817.infineon.com (172.23.29.43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Fri, 30 Sep 2022 19:01:56 +0200 From: Alexander Steffen To: , , , CC: Alexander Steffen , , , , Subject: [PATCH 3/7] dt-bindings: tpm: Add previously undocumented properties Date: Fri, 30 Sep 2022 18:51:12 +0200 Message-ID: <20220930165116.13329-4-Alexander.Steffen@infineon.com> X-Mailer: git-send-email 2.28.0.windows.1 In-Reply-To: <20220930165116.13329-1-Alexander.Steffen@infineon.com> References: <20220930165116.13329-1-Alexander.Steffen@infineon.com> MIME-Version: 1.0 X-Originating-IP: [172.23.8.247] X-ClientProxiedBy: MUCSE802.infineon.com (172.23.29.28) To MUCSE817.infineon.com (172.23.29.43) X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org TPM devices may use some more properties than previously allowed by trivial-devices.yaml. Document those in trivial-tpms.yaml. Signed-off-by: Alexander Steffen --- .../bindings/security/tpm/trivial-tpms.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Documentation/devicetree/bindings/security/tpm/trivial-tpms.yaml b/Documentation/devicetree/bindings/security/tpm/trivial-tpms.yaml index 2092341c6491..a9e2dd17b1ca 100644 --- a/Documentation/devicetree/bindings/security/tpm/trivial-tpms.yaml +++ b/Documentation/devicetree/bindings/security/tpm/trivial-tpms.yaml @@ -25,6 +25,22 @@ properties: spi-max-frequency: true + linux,sml-base: + $ref: /schemas/types.yaml#/definitions/uint64 + description: | + 64-bit base address of the reserved memory allocated for the firmware + event log + + linux,sml-size: + $ref: /schemas/types.yaml#/definitions/uint32 + description: size of the memory allocated for the firmware event log + + powered-while-suspended: + $ref: /schemas/types.yaml#/definitions/flag + description: | + Present when the TPM is left powered on between suspend and resume + (makes the suspend/resume callbacks do nothing). + compatible: contains: enum: From patchwork Fri Sep 30 16:51:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Steffen X-Patchwork-Id: 1684955 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=infineon.com header.i=@infineon.com header.a=rsa-sha256 header.s=IFXMAIL header.b=pUmvR0yN; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4MfGl45qyMz20Zh for ; Sat, 1 Oct 2022 03:03:12 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232116AbiI3RDL (ORCPT ); Fri, 30 Sep 2022 13:03:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231237AbiI3RDJ (ORCPT ); Fri, 30 Sep 2022 13:03:09 -0400 Received: from smtp14.infineon.com (smtp14.infineon.com [IPv6:2a00:18f0:1e00:4::6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFF5C2CE26; Fri, 30 Sep 2022 10:03:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infineon.com; i=@infineon.com; q=dns/txt; s=IFXMAIL; t=1664557387; x=1696093387; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=7hz5VzooJ4PlsQKxFAxNlkVVphl4BcPIuaK+dWMrwDA=; b=pUmvR0yN9+3vJF2agultqllE9chOxsMxf34hpuv2sfUqR4+ZCHt1kh8A g/9cd9neVVkgZQtaNAwyeQ4Qw8wCHq+E2SelNIafe1Z2vw9XaADwTypDz WtpK7uiChQqZgsL/kAs8IiOp0AHpIcAXPq/hQZtqpZ4JAe9twNV03Le7d E=; X-SBRS: None X-IronPort-AV: E=McAfee;i="6500,9779,10486"; a="143525588" X-IronPort-AV: E=Sophos;i="5.93,358,1654552800"; d="scan'208";a="143525588" Received: from unknown (HELO mucxv001.muc.infineon.com) ([172.23.11.16]) by smtp14.infineon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Sep 2022 19:01:57 +0200 Received: from MUCSE803.infineon.com (MUCSE803.infineon.com [172.23.29.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mucxv001.muc.infineon.com (Postfix) with ESMTPS; Fri, 30 Sep 2022 19:01:57 +0200 (CEST) Received: from MUCSE817.infineon.com (172.23.29.43) by MUCSE803.infineon.com (172.23.29.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Fri, 30 Sep 2022 19:01:57 +0200 Received: from ISCNPC0VBFBX.infineon.com (172.23.8.247) by MUCSE817.infineon.com (172.23.29.43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Fri, 30 Sep 2022 19:01:56 +0200 From: Alexander Steffen To: , , , CC: Alexander Steffen , , , , Subject: [PATCH 4/7] dt-bindings: tpm: Merge existing trivial TPMs to YAML Date: Fri, 30 Sep 2022 18:51:13 +0200 Message-ID: <20220930165116.13329-5-Alexander.Steffen@infineon.com> X-Mailer: git-send-email 2.28.0.windows.1 In-Reply-To: <20220930165116.13329-1-Alexander.Steffen@infineon.com> References: <20220930165116.13329-1-Alexander.Steffen@infineon.com> MIME-Version: 1.0 X-Originating-IP: [172.23.8.247] X-ClientProxiedBy: MUCSE802.infineon.com (172.23.29.28) To MUCSE817.infineon.com (172.23.29.43) X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Several of the existing text files describe trivial TPMs, that fit perfectly into the new trivial-tpms.yaml. Move them there. Signed-off-by: Alexander Steffen --- .../bindings/security/tpm/google,cr50.txt | 19 ---------- .../bindings/security/tpm/tpm-i2c.txt | 26 -------------- .../bindings/security/tpm/tpm_tis_mmio.txt | 25 ------------- .../bindings/security/tpm/tpm_tis_spi.txt | 23 ------------ .../bindings/security/tpm/trivial-tpms.yaml | 36 +++++++++++++++++++ 5 files changed, 36 insertions(+), 93 deletions(-) delete mode 100644 Documentation/devicetree/bindings/security/tpm/google,cr50.txt delete mode 100644 Documentation/devicetree/bindings/security/tpm/tpm-i2c.txt delete mode 100644 Documentation/devicetree/bindings/security/tpm/tpm_tis_mmio.txt delete mode 100644 Documentation/devicetree/bindings/security/tpm/tpm_tis_spi.txt diff --git a/Documentation/devicetree/bindings/security/tpm/google,cr50.txt b/Documentation/devicetree/bindings/security/tpm/google,cr50.txt deleted file mode 100644 index cd69c2efdd37..000000000000 --- a/Documentation/devicetree/bindings/security/tpm/google,cr50.txt +++ /dev/null @@ -1,19 +0,0 @@ -* 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>; - }; -}; diff --git a/Documentation/devicetree/bindings/security/tpm/tpm-i2c.txt b/Documentation/devicetree/bindings/security/tpm/tpm-i2c.txt deleted file mode 100644 index a65d7b71e81a..000000000000 --- a/Documentation/devicetree/bindings/security/tpm/tpm-i2c.txt +++ /dev/null @@ -1,26 +0,0 @@ -* Device Tree Bindings for I2C based Trusted Platform Module(TPM) - -Required properties: - -- compatible : 'manufacturer,model', eg. nuvoton,npct650 -- label : human readable string describing the device, eg. "tpm" -- linux,sml-base : 64-bit base address of the reserved memory allocated for - the firmware event log -- linux,sml-size : size of the memory allocated for the firmware event log - -Optional properties: - -- powered-while-suspended: present when the TPM is left powered on between - suspend and resume (makes the suspend/resume - callbacks do nothing). - -Example (for OpenPower Systems with Nuvoton TPM 2.0 on I2C) ----------------------------------------------------------- - -tpm@57 { - reg = <0x57>; - label = "tpm"; - compatible = "nuvoton,npct650", "nuvoton,npct601"; - linux,sml-base = <0x7f 0xfd450000>; - linux,sml-size = <0x10000>; -}; diff --git a/Documentation/devicetree/bindings/security/tpm/tpm_tis_mmio.txt b/Documentation/devicetree/bindings/security/tpm/tpm_tis_mmio.txt deleted file mode 100644 index 7c6304426da1..000000000000 --- a/Documentation/devicetree/bindings/security/tpm/tpm_tis_mmio.txt +++ /dev/null @@ -1,25 +0,0 @@ -Trusted Computing Group MMIO Trusted Platform Module - -The TCG defines multi vendor standard for accessing a TPM chip, this -is the standard protocol defined to access the TPM via MMIO. Typically -this interface will be implemented over Intel's LPC bus. - -Refer to the 'TCG PC Client Specific TPM Interface Specification (TIS)' TCG -publication for the specification. - -Required properties: - -- compatible: should contain a string below for the chip, followed by - "tcg,tpm-tis-mmio". Valid chip strings are: - * "atmel,at97sc3204" -- reg: The location of the MMIO registers, should be at least 0x5000 bytes -- interrupts: An optional interrupt indicating command completion. - -Example: - - tpm_tis@90000 { - compatible = "atmel,at97sc3204", "tcg,tpm-tis-mmio"; - reg = <0x90000 0x5000>; - interrupt-parent = <&EIC0>; - interrupts = <1 2>; - }; diff --git a/Documentation/devicetree/bindings/security/tpm/tpm_tis_spi.txt b/Documentation/devicetree/bindings/security/tpm/tpm_tis_spi.txt deleted file mode 100644 index b800667da92b..000000000000 --- a/Documentation/devicetree/bindings/security/tpm/tpm_tis_spi.txt +++ /dev/null @@ -1,23 +0,0 @@ -Required properties: -- compatible: should be one of the following - "st,st33htpm-spi" - "infineon,slb9670" - "tcg,tpm_tis-spi" -- spi-max-frequency: Maximum SPI frequency (depends on TPMs). - -Optional SoC Specific Properties: -- pinctrl-names: Contains only one value - "default". -- pintctrl-0: Specifies the pin control groups used for this controller. - -Example (for ARM-based BeagleBoard xM with TPM_TIS on SPI4): - -&mcspi4 { - - - tpm_tis@0 { - - compatible = "tcg,tpm_tis-spi"; - - spi-max-frequency = <10000000>; - }; -}; diff --git a/Documentation/devicetree/bindings/security/tpm/trivial-tpms.yaml b/Documentation/devicetree/bindings/security/tpm/trivial-tpms.yaml index a9e2dd17b1ca..1fd7f38b7b6d 100644 --- a/Documentation/devicetree/bindings/security/tpm/trivial-tpms.yaml +++ b/Documentation/devicetree/bindings/security/tpm/trivial-tpms.yaml @@ -44,20 +44,34 @@ properties: compatible: contains: enum: + # Atmel AT97SC3204 LPC TPM 1.2 + - atmel,at97sc3204 # Atmel AT97SC3204T I2C TPM 1.2 - atmel,at97sc3204t + # Google Titan H1/Cr50 I2C/SPI TPM 2.0 + - google,cr50 # Infineon SLB9635 I2C TPM 1.2 (old protocol, max 100khz) - infineon,slb9635tt # Infineon SLB9645 I2C TPM 1.2 (new protocol, max 400khz) - infineon,slb9645tt + # Infineon SLB9670 SPI TPM 2.0 + - infineon,slb9670 # Infineon SLB9673 I2C TPM 2.0 - infineon,slb9673 # Nuvoton NPCT501 I2C TPM 1.2 - nuvoton,npct501 # Nuvoton NPCT601 I2C TPM 2.0 - nuvoton,npct601 + # Nuvoton NPCT650 I2C TPM 2.0 + - nuvoton,npct650 # Socionext SynQuacer MMIO TPM - socionext,synquacer-tpm-mmio + # STMicroelectronics ST33TPHF2xSPI TPM 2.0 + - st,st33htpm-spi + # TCG TIS-compliant MMIO TPM (generic fallback) + - tcg,tpm-tis-mmio + # TCG TIS-compliant SPI TPM (generic fallback) + - tcg,tpm_tis-spi # Winbond WPCT301 I2C TPM 1.2 - winbond,wpct301 @@ -67,4 +81,26 @@ required: additionalProperties: false +examples: + - | + tpm@0 { + compatible = "google,cr50"; + reg = <0>; + spi-max-frequency = <800000>; + }; + - | + tpm@57 { + compatible = "nuvoton,npct601"; + reg = <0x57>; + linux,sml-base = <0x7f 0xfd450000>; + linux,sml-size = <0x10000>; + }; + - | + tpm_tis@90000 { + compatible = "atmel,at97sc3204"; + reg = <0x90000 0x5000>; + interrupt-parent = <&EIC0>; + interrupts = <1 2>; + }; + ... From patchwork Fri Sep 30 17:03:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Steffen X-Patchwork-Id: 1684959 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=infineon.com header.i=@infineon.com header.a=rsa-sha256 header.s=IFXMAIL header.b=U8LFe8eU; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4MfGll2Cgxz20Zh for ; Sat, 1 Oct 2022 03:03:47 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232335AbiI3RDn (ORCPT ); Fri, 30 Sep 2022 13:03:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231948AbiI3RDg (ORCPT ); Fri, 30 Sep 2022 13:03:36 -0400 Received: from smtp14.infineon.com (smtp14.infineon.com [IPv6:2a00:18f0:1e00:4::6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1DA21D8F2D; Fri, 30 Sep 2022 10:03:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infineon.com; i=@infineon.com; q=dns/txt; s=IFXMAIL; t=1664557414; x=1696093414; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=jEJA7SgFblgEmcrWe6FToX9JMzMY7RtU7J5CqLcFaTs=; b=U8LFe8eUt6q3k1fUFpyeIsqN7BSBp8Gc7RVQdyPWwuK7OvG48sjGEQo/ TEqESbQfBgkaz7+20GiEu33ojGCzXDMRtFcC6XzvaqJ5rUU94THMP8PtM uIhoEbzqvF/KawNFCWcHYe2P1Q3LtfDMEhgey9GyFo1MNjtRuD4wNKuM5 A=; X-SBRS: None X-IronPort-AV: E=McAfee;i="6500,9779,10486"; a="143525930" X-IronPort-AV: E=Sophos;i="5.93,358,1654552800"; d="scan'208";a="143525930" Received: from unknown (HELO mucxv001.muc.infineon.com) ([172.23.11.16]) by smtp14.infineon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Sep 2022 19:03:32 +0200 Received: from MUCSE819.infineon.com (MUCSE819.infineon.com [172.23.29.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mucxv001.muc.infineon.com (Postfix) with ESMTPS; Fri, 30 Sep 2022 19:03:31 +0200 (CEST) Received: from MUCSE817.infineon.com (172.23.29.43) by MUCSE819.infineon.com (172.23.29.45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Fri, 30 Sep 2022 19:03:31 +0200 Received: from ISCNPC0VBFBX.infineon.com (172.23.8.247) by MUCSE817.infineon.com (172.23.29.43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Fri, 30 Sep 2022 19:03:31 +0200 From: Alexander Steffen To: , , , CC: Alexander Steffen , , , , Subject: [PATCH 5/7] dt-bindings: tpm: Document previously undocumented compatibles Date: Fri, 30 Sep 2022 19:03:10 +0200 Message-ID: <20220930170312.13419-1-Alexander.Steffen@infineon.com> X-Mailer: git-send-email 2.28.0.windows.1 MIME-Version: 1.0 X-Originating-IP: [172.23.8.247] X-ClientProxiedBy: MUCSE810.infineon.com (172.23.29.36) To MUCSE817.infineon.com (172.23.29.43) X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Some drivers or device trees are using them already, but documentation was missing. Signed-off-by: Alexander Steffen --- .../devicetree/bindings/security/tpm/trivial-tpms.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/security/tpm/trivial-tpms.yaml b/Documentation/devicetree/bindings/security/tpm/trivial-tpms.yaml index 1fd7f38b7b6d..ebaa36f0875e 100644 --- a/Documentation/devicetree/bindings/security/tpm/trivial-tpms.yaml +++ b/Documentation/devicetree/bindings/security/tpm/trivial-tpms.yaml @@ -44,6 +44,8 @@ properties: compatible: contains: enum: + # Atmel AT97SC3201 LPC TPM 1.1b + - atmel,at97sc3201 # Atmel AT97SC3204 LPC TPM 1.2 - atmel,at97sc3204 # Atmel AT97SC3204T I2C TPM 1.2 @@ -58,12 +60,18 @@ properties: - infineon,slb9670 # Infineon SLB9673 I2C TPM 2.0 - infineon,slb9673 + # Infineon tpm_i2c_infineon-compatible device (deprecated) + - infineon,tpm_i2c_infineon + # Microsoft fTPM 2.0 + - microsoft,ftpm # Nuvoton NPCT501 I2C TPM 1.2 - nuvoton,npct501 # Nuvoton NPCT601 I2C TPM 2.0 - nuvoton,npct601 # Nuvoton NPCT650 I2C TPM 2.0 - nuvoton,npct650 + # Nuvoton NPCT75x I2C TPM 2.0 + - nuvoton,npct75x # Socionext SynQuacer MMIO TPM - socionext,synquacer-tpm-mmio # STMicroelectronics ST33TPHF2xSPI TPM 2.0 From patchwork Fri Sep 30 17:03:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Steffen X-Patchwork-Id: 1684958 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=infineon.com header.i=@infineon.com header.a=rsa-sha256 header.s=IFXMAIL header.b=bCqn9aja; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4MfGlk6CLMz1yql for ; Sat, 1 Oct 2022 03:03:46 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232331AbiI3RDn (ORCPT ); Fri, 30 Sep 2022 13:03:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232077AbiI3RDg (ORCPT ); Fri, 30 Sep 2022 13:03:36 -0400 Received: from smtp2.infineon.com (smtp2.infineon.com [IPv6:2a00:18f0:1e00:4::4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBC281D8F34; Fri, 30 Sep 2022 10:03:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infineon.com; i=@infineon.com; q=dns/txt; s=IFXMAIL; t=1664557414; x=1696093414; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=VUi0yVf68uttuxGY8vSD9s/gXtmLvH2OkXk8bI2crYc=; b=bCqn9ajau5bnslsPnF4lxovvyxShE58Qh5lumRJ580PFuyKQHdMt83Fl MYPBRDCEyJ9rIxgRP/39zgn35HEb9AFGSzUhbPaVgtpVlk7OXCwYyLGhI 5CnpjtzWX5Kfqrr3aaOQjHdYMmSp8SsBMpW7rAcwW0p6ZRLKYMsLQjTiR U=; X-SBRS: None X-IronPort-AV: E=McAfee;i="6500,9779,10486"; a="2634089" X-IronPort-AV: E=Sophos;i="5.93,358,1654552800"; d="scan'208";a="2634089" Received: from unknown (HELO mucxv003.muc.infineon.com) ([172.23.11.20]) by smtp2.infineon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Sep 2022 19:03:32 +0200 Received: from MUCSE814.infineon.com (MUCSE814.infineon.com [172.23.29.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mucxv003.muc.infineon.com (Postfix) with ESMTPS; Fri, 30 Sep 2022 19:03:32 +0200 (CEST) Received: from MUCSE817.infineon.com (172.23.29.43) by MUCSE814.infineon.com (172.23.29.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Fri, 30 Sep 2022 19:03:31 +0200 Received: from ISCNPC0VBFBX.infineon.com (172.23.8.247) by MUCSE817.infineon.com (172.23.29.43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Fri, 30 Sep 2022 19:03:31 +0200 From: Alexander Steffen To: , , , CC: Alexander Steffen , , , , Subject: [PATCH 6/7] dt-bindings: tpm: Add fallbacks for all TCG-compliant TPM variants Date: Fri, 30 Sep 2022 19:03:11 +0200 Message-ID: <20220930170312.13419-2-Alexander.Steffen@infineon.com> X-Mailer: git-send-email 2.28.0.windows.1 In-Reply-To: <20220930170312.13419-1-Alexander.Steffen@infineon.com> References: <20220930170312.13419-1-Alexander.Steffen@infineon.com> MIME-Version: 1.0 X-Originating-IP: [172.23.8.247] X-ClientProxiedBy: MUCSE810.infineon.com (172.23.29.36) To MUCSE817.infineon.com (172.23.29.43) X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Also, use the same spelling for all of them and mark the one exception as deprecated. Signed-off-by: Alexander Steffen --- .../devicetree/bindings/security/tpm/trivial-tpms.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/security/tpm/trivial-tpms.yaml b/Documentation/devicetree/bindings/security/tpm/trivial-tpms.yaml index ebaa36f0875e..983c0a7cc6e1 100644 --- a/Documentation/devicetree/bindings/security/tpm/trivial-tpms.yaml +++ b/Documentation/devicetree/bindings/security/tpm/trivial-tpms.yaml @@ -76,9 +76,13 @@ properties: - socionext,synquacer-tpm-mmio # STMicroelectronics ST33TPHF2xSPI TPM 2.0 - st,st33htpm-spi + # TCG TIS-compliant I2C TPM (generic fallback) + - tcg,tpm-tis-i2c # TCG TIS-compliant MMIO TPM (generic fallback) - tcg,tpm-tis-mmio # TCG TIS-compliant SPI TPM (generic fallback) + - tcg,tpm-tis-spi + # TCG TIS-compliant SPI TPM (generic fallback, deprecated) - tcg,tpm_tis-spi # Winbond WPCT301 I2C TPM 1.2 - winbond,wpct301