Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp1907608pxb; Mon, 13 Sep 2021 07:57:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygmP9JnqbG2wOxRSNRydFmOnae1vQfFdiB4Ybm2kwPnWEVlfa3GqaAAczPt4KgM5sK4QdC X-Received: by 2002:a17:907:2137:: with SMTP id qo23mr13134198ejb.508.1631545069121; Mon, 13 Sep 2021 07:57:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631545069; cv=none; d=google.com; s=arc-20160816; b=iIhgy5eb3OkMN1QPhIsFh7/wm0Set8rEg44gxWb+cqfycOQncaptL6LMKYSrJ08R5X LnbWPE1FrqqWYHPd+/yRj+N2iiFMGyUZlILgJvw2VEeeNJy1CkDT1Y5pzFG4RkEqKYxI 4kzXegfHgjcvZQ7BsVqt7IyjCQTMG5inBW3uqXdM3K087B7K7uHVKf5t4CWeQ9J+GY4k 4zIF20jkaPXBMcKyJJh+svsMcCTYs/wDwrSk36IO8FitMVkf08fbkZDtru0BFPC7G1wO h/vHo0UDFBoN3NgK0XmMZ8maM7/No3hCMT0o90lFsqGa2KarjUoHi0IDwLWLT3bm3kvs nS6w== 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=qDgooHgecGnUiqGN+VACI9G/7QYdz6gb2GcAffd2L/0=; b=kCyxFErGhOkp14ezWw8hwhL+hoBvc17RdYj5sUgkQP1YDhmjA8pzbslDikNUU0amxF J7Wx6oxUl1bLhb1+lw3OKPUeBeB3EXb12xIukfTOm0+LuhaGyQ138CPTL4PK2iGplWUw CylKzkhk+L7dMu8M97zvoUjKhe+rh3FXtsYAHPNeb7cXmCBdTvYl9gM71b3AvTbNbiqh eQswd1bHJVwK0Mq/LRlkMKMnxHzA0hby9S+GqovDJDPkCoSQ+tc2MU8TYAiXfWbREwyv fK4+y9HsM5tbQ3QAKwQrrN6A2uYl0fdZ5qyS6DZWavYx5hBG+q7IXkOOiuZWtUBlrlxa 9htA== 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 t15si7175559edr.116.2021.09.13.07.57.22; Mon, 13 Sep 2021 07:57:49 -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 S1343646AbhIMOxZ (ORCPT + 99 others); Mon, 13 Sep 2021 10:53:25 -0400 Received: from 212.199.177.27.static.012.net.il ([212.199.177.27]:42991 "EHLO herzl.nuvoton.co.il" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1347151AbhIMOsZ (ORCPT ); Mon, 13 Sep 2021 10:48:25 -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 18DEiZGw003117; Mon, 13 Sep 2021 17:44:35 +0300 Received: by taln60.nuvoton.co.il (Postfix, from userid 10140) id 41AE863A1D; Mon, 13 Sep 2021 17:44:45 +0300 (IDT) From: amirmizi6@gmail.com To: Eyal.Cohen@nuvoton.com, jarkko@kernel.org, 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 Subject: [PATCH v14 7/7] \tpm: Add YAML schema for TPM TIS I2C options Date: Mon, 13 Sep 2021 17:43:51 +0300 Message-Id: <20210913144351.101167-8-amirmizi6@gmail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20210913144351.101167-1-amirmizi6@gmail.com> References: <20210913144351.101167-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 Add 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 --- .../bindings/security/tpm/tpm-tis-i2c.yaml | 52 ++++++++++++++++++++++ 1 file changed, 52 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..217ba8e --- /dev/null +++ b/Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml @@ -0,0 +1,52 @@ +# 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 + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + tpm@2e { + compatible = "nuvoton,npct75x", "tcg,tpm-tis-i2c"; + reg = <0x2e>; + crc-checksum; + }; + }; +... -- 2.7.4