Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4539804ybb; Tue, 7 Apr 2020 09:24:07 -0700 (PDT) X-Google-Smtp-Source: APiQypLSa0SH+mmQp/L2tc+jQTg9O3XV6T5eCf4IcViTHvSsR6SgwlzFkoB6ZWZeW2Z2TSmiB3Bb X-Received: by 2002:a05:6830:19a:: with SMTP id q26mr2341694ota.285.1586276647284; Tue, 07 Apr 2020 09:24:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586276647; cv=none; d=google.com; s=arc-20160816; b=mN9QfO5lXkZ7CsKYCx0HUwumLHHDeJ4V3+zFL1mv48e62AMgD9XWpmekoccgtWFKNy qgcm+hHaIQo1eJdnwiunbyTmonQN8tFYKvpsQz2AohPtnAdRloY32ZEJnxDT006J8DNo j/MjuAwI3DyndmjuTqKpx6hKc/q3P2dTVwxQQa1rwHYQeRUz4ePgSeWZ7nkPvfpCL6Qi seXE4FaQxW14g5M/MdwW9qFXvln58y8rXRyu0SkBgZjS1RnomUchrRDKmjD59+VKasRm 8nPF83Sqx/CrvnuPbXpviZ/b8xVkv9yIOu2fiDPs3fdrAw2AuqZdxE77WbTIcqfhnIkg hvSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=fgO9JgpwuTa5t+to0wINJIeR2Pxi9V9mIj/yOTBBqfs=; b=OVlsTcgq2kZORcXngkqTnxIJjFsJVrCjDSiXoEBoQ0lURymbVkqxeLYxbksQNxB9rO rqmKHgIPvTTAy5U1R/oPL6718oBIbbXuO8RC4vDOd4H0z4+Iw+rHTqy9BNyh/fR53tSi RmjMneEUnt+Q7d3XjT7ETJ1lD0N403S/wobhtUviLdW3d9LKr+0V7HIBxyJmM6nNuBRn kMk2gYiWbF7Y+f/CZYxAZLJRYBvDjCBCv5ZKvTHt37dSP+UOIGp/vh27nfoVE5GI6b/V 3chY+EBWJQVICX0k7CWblP9OlLH+fusnwODTYA8D23+VoDvyUKLUK+jvt/30cpBi9VHi OAvw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id i6si882866oia.100.2020.04.07.09.23.54; Tue, 07 Apr 2020 09:24:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728080AbgDGQVZ (ORCPT + 99 others); Tue, 7 Apr 2020 12:21:25 -0400 Received: from 212.199.177.27.static.012.net.il ([212.199.177.27]:40600 "EHLO herzl.nuvoton.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726637AbgDGQVZ (ORCPT ); Tue, 7 Apr 2020 12:21: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 037GKvjq002278; Tue, 7 Apr 2020 19:20:57 +0300 Received: by taln60.nuvoton.co.il (Postfix, from userid 10140) id 52ED1639B0; Tue, 7 Apr 2020 19:20:57 +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 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 v6 6/7] dt-bindings: tpm: Add YAML schema for TPM TIS I2C options Date: Tue, 7 Apr 2020 19:20:43 +0300 Message-Id: <20200407162044.168890-7-amirmizi6@gmail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20200407162044.168890-1-amirmizi6@gmail.com> References: <20200407162044.168890-1-amirmizi6@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Amir Mizinski Added a YAML schema to support tpm tis i2c realted 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 | 47 ++++++++++++++++++++++ 1 file changed, 47 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..13d7c2c --- /dev/null +++ b/Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml @@ -0,0 +1,47 @@ +# SPDX-License-Identifier: GPL-2.0 +%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: + contains: + const: tcg,tpm-tis-i2c + + reg: + maxItems: 1 + + interrupt: + maxItems: 1 + + crc-checksum: + $ref: /schemas/types.yaml#/definitions/flag + description: + CRC checksum enable. + +required: + - compatible + - reg + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + tpm-tis-i2c@2e { + compatible = "tcg,tpm-tis-i2c"; + reg = <0x2e>; + crc-checksum; + }; + }; +... -- 2.7.4