Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp377291pxb; Thu, 26 Aug 2021 05:27:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpqHKsPAHIWA9GF1nwb0gcMn4sKGD0SZ3fGHWSj9QTNiJmj26vOtOHvKiYomRdO46WONSB X-Received: by 2002:a05:6402:d66:: with SMTP id ec38mr4177706edb.234.1629980857879; Thu, 26 Aug 2021 05:27:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629980857; cv=none; d=google.com; s=arc-20160816; b=CERrvd5KbD/N31giEHkVCRMzteE4bjF8mcnyEfbSY7uDFaGRss57wKyAjFpdgYPZfF fssbXgmow8PVkaD7UKvFqJrq80DTUDe+sNcwtyON+KDe+TQZoclWNTZkISJIpKItMfNJ VeH2cCICIiZ5e0aBKx+HVliQ9QCyPYl1o4t2M1iv7UqNJp066m89oyXMGvJR23vPeukf SzJZDXkUX8NZ4UCv+ulzI64CboyO1wetG2u3t+abIGsKPjCfnwpjE20OA++jgLJX9bTq VGx37+F1TddAe7rpy4CHqYBscgJferuDzug8wSTku5r3/UJmmhHNTzOQ7cdCeOwm11us 5iBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=qUM063yKZh64Z1gpIaLUgJWbiNub5yfVdN0CaPv7om4=; b=Vx46CJxedeqsgixIi1VofZCLqjNsW+Ou9qs2rRt2QOqX7zQtbGo4DcFPs/X1FsVNpr SWMnU+xWm6CFA8rjmk/n8iigr/gmCxVaTh4BJRy1QPUDh5soXH7Dzj394/jY1cJ2PyWO ah3T7OaiX87ro7u7DBoaLxM89CTVxXbKFTcR8rVF7+X6AVHC3+jgzhxdK5IGqaDqcNGu EUYF7qXfC4gqPjOiFxK9EzPjbPvsfTwNff7enIc4h0klLNjv7H9VpIjmmpEzXK1GSBfy b9Qyce1yco6yWhlypNQ8/D0VErI1NGjA1f2gJ3kh5UsbK7ABMHyqDLfVo6NHucxnu/L7 EyNQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cr15si3773091ejc.254.2021.08.26.05.26.55; Thu, 26 Aug 2021 05:27:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242633AbhHZMUX (ORCPT + 99 others); Thu, 26 Aug 2021 08:20:23 -0400 Received: from 212.199.177.27.static.012.net.il ([212.199.177.27]:41648 "EHLO herzl.nuvoton.co.il" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S242404AbhHZMUW (ORCPT ); Thu, 26 Aug 2021 08:20:22 -0400 Received: from taln60.nuvoton.co.il (ntil-fw [212.199.177.25]) by herzl.nuvoton.co.il (8.13.8/8.13.8) with ESMTP id 17QBJbGL025259; Thu, 26 Aug 2021 14:19:37 +0300 Received: by taln60.nuvoton.co.il (Postfix, from userid 10140) id 62A9A63A1D; Thu, 26 Aug 2021 14:19:47 +0300 (IDT) From: amirmizi6@gmail.com To: Eyal.Cohen@nuvoton.com, jarkko.sakkinen@linux.intel.com, oshrialkoby85@gmail.com, alexander.steffen@infineon.com, robh+dt@kernel.org, mark.rutland@arm.com, peterhuewe@gmx.de, jgg@ziepe.ca, arnd@arndb.de, gregkh@linuxfoundation.org, benoit.houyere@st.com, eajames@linux.ibm.com, joel@jms.id.au Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-integrity@vger.kernel.org, oshri.alkoby@nuvoton.com, tmaimon77@gmail.com, gcwilson@us.ibm.com, kgoldman@us.ibm.com, Dan.Morav@nuvoton.com, oren.tanami@nuvoton.com, shmulik.hager@nuvoton.com, amir.mizinski@nuvoton.com, Amir Mizinski , Rob Herring Subject: [PATCH v13 7/7] tpm: Add YAML schema for TPM TIS I2C options Date: Thu, 26 Aug 2021 14:19:08 +0300 Message-Id: <20210826111908.117278-8-amirmizi6@gmail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20210826111908.117278-1-amirmizi6@gmail.com> References: <20210826111908.117278-1-amirmizi6@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Amir Mizinski Added a YAML schema to support tpm tis i2c related dt-bindings for the I2c PTP based physical layer. This patch adds the documentation for corresponding device tree bindings of I2C based Physical TPM. Refer to the 'I2C Interface Definition' section in 'TCG PC Client PlatformTPMProfile(PTP) Specification' publication for specification. Signed-off-by: Amir Mizinski Reviewed-by: Rob Herring --- .../bindings/security/tpm/tpm-tis-i2c.yaml | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml diff --git a/Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml b/Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml new file mode 100644 index 0000000..68b13d5 --- /dev/null +++ b/Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/security/tpm/tpm-tis-i2c.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: I2C PTP based TPM Device Tree Bindings + +maintainers: + - Amir Mizinski + +description: + Device Tree Bindings for I2C based Trusted Platform Module(TPM). + +properties: + compatible: + items: + - enum: + # Nuvoton's Trusted Platform Module (TPM) (NPCT75x) + - nuvoton,npct75x + - const: tcg,tpm-tis-i2c + + reg: + maxItems: 1 + + interrupt: + maxItems: 1 + + crc-checksum: + $ref: /schemas/types.yaml#/definitions/flag + description: + Set this flag to enable CRC checksum. + +required: + - compatible + - reg + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + tpm@2e { + compatible = "nuvoton,npct75x", "tcg,tpm-tis-i2c"; + reg = <0x2e>; + crc-checksum; + }; + }; +... -- 2.7.4