Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3939224ybv; Mon, 10 Feb 2020 09:11:36 -0800 (PST) X-Google-Smtp-Source: APXvYqyzwg1pGihKZBNHoqH49dhXaW0oQqjJ1qQxPEe/mbF4rmEXg+V80iu7bDuhzmQ0HntMUfNS X-Received: by 2002:a9d:6184:: with SMTP id g4mr1703373otk.223.1581354696151; Mon, 10 Feb 2020 09:11:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581354696; cv=none; d=google.com; s=arc-20160816; b=lGDE50uKHT84k6Y5ZQ6i/H3Bq3KL5zmcLXj2R421QUwrWjMy7xspaTMfWZBPtaCNvh EZK+teeVpciA1UsaqL3QkM0uuj6RTIb+bLId7eSo/hH2rwZfhI7N8+5I+lUR9bWuqeaS pJFrwHUZnwww6OP8xLRUt2e5+4eB2/OCCvnJ2OEbleNUVVl0cEFUc8jcrRIuGCo1/PYv eOMqlE0eIGMZcqe4NJfZ2x3WxLqzEentnccuKK0cscSel0e4jaQ7l2GXEnNzb5KYFuN5 bUjntXAVSxYn1hbrigUxm7foMi8tDcV4OTEtUhezP+YAMFkaHNXVfmRydOOgx0ERjsiC fr7w== 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=lZE+46WQU2rkI5vKo/ZvxmgsMJXz5JWIrS1hpAuUTsE=; b=Pu81URc4wuNQGMg9TEEnSfEDOTcRnKa16kQRx3idE1wT2iVw9axJGxI0N/qYScxTNG tTjCOJjNLEsZ8Uy34pOxmbuZB+zpM7b3qf/9JbyazrkfNI6n9ZJfy0vnwhpxkgbo+Sbc Dj8TcjF0Nb2I90ifEMFeTWTINi7APPYlIo3PlYDQht2k4RD+P7m98B2mcbtyGw0DaM0T MIFIeIU0QTzECYiRYq7hX5NqraVQ+pTd2ctb4yLro2WZSiTQKZPbcQa2CR6hw5g7c/gi QZVV9uxXvl7L7TMGt+/zYFEsFUZ95st8swWW+7NQd2ECZ14ScXifLVdHqIwte89xmQDO 0qNQ== 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 5si410593oiy.102.2020.02.10.09.11.24; Mon, 10 Feb 2020 09:11:36 -0800 (PST) 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 S1728137AbgBJRKF (ORCPT + 99 others); Mon, 10 Feb 2020 12:10:05 -0500 Received: from 212.199.177.27.static.012.net.il ([212.199.177.27]:36755 "EHLO herzl.nuvoton.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727536AbgBJRKE (ORCPT ); Mon, 10 Feb 2020 12:10:04 -0500 X-Greylist: delayed 2425 seconds by postgrey-1.27 at vger.kernel.org; Mon, 10 Feb 2020 12:09:57 EST 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 01AGT8JK011300; Mon, 10 Feb 2020 18:29:08 +0200 Received: by taln60.nuvoton.co.il (Postfix, from userid 10140) id 820EB6032E; Mon, 10 Feb 2020 18:29:08 +0200 (IST) 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 v3 6/7] dt-bindings: tpm: Add YAML schema for TPM TIS I2C options Date: Mon, 10 Feb 2020 18:28:37 +0200 Message-Id: <20200210162838.173903-7-amirmizi6@gmail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20200210162838.173903-1-amirmizi6@gmail.com> References: <20200210162838.173903-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 | 43 ++++++++++++++++++++++ 1 file changed, 43 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..ca16b59 --- /dev/null +++ b/Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml @@ -0,0 +1,43 @@ +# 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 + + interrupts: + maxItems: 1 + + crc-checksum: + $ref: /schemas/types.yaml#/definitions/flag + description: + CRC checksum enable. + +required: + - compatible + - reg + - interrupts + +examples: + - | + tpm-tis-i2c: tpm-tis-i2c@2e { + compatible = "tcg,tpm-tis-i2c"; + reg = <0x2e>; + interrupts = <&gpio 24 GPIO_ACTIVE_HIGH>; + crc-checksum; + }; -- 2.7.4