Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp710262ybz; Wed, 15 Apr 2020 17:14:30 -0700 (PDT) X-Google-Smtp-Source: APiQypJhheQUWTWKjj9rdsBCbZ8OHwVEH1NP9Oruw6VEXUb7gM/RFJwgcsUqOcHKRNf7zU/zkQe0 X-Received: by 2002:a05:6402:1657:: with SMTP id s23mr25529302edx.74.1586996070795; Wed, 15 Apr 2020 17:14:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586996070; cv=none; d=google.com; s=arc-20160816; b=MIJtFFD+KBAsSqlJXChNI4tf90lQvcV8mMHn1MYFC+qLCPdELXDOs9udxbW/HM7+y6 tKvL7bWJF45GL6cxTsHmlFHDNcjHucdju6bEY3RuiVaf8yleRa12Q3ZJL67PP1suhUhe 8LIkUwyYa+fV0YuYEkpVsG8a1gRW1z8K4+H+Dt/moHMJ5z8hUoSvyiVnEcGx7gVFSK04 gQrdRmH+Oumw1qYmMeNXrn4hwnzou8JsuOhRt2Hpfs9Z09JYIVlYkP2uz11eR9kzcwrS eujx8AiRG3OuGlat/MSMI7cRnFkxIkYNM8LJxrbcHQTqIcHluLY4KrfAxB8tqybokOk6 zLYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=1BfqGTsRG/XiRfj9IrPOvmGGbY0WhRE/e/njJVbckvY=; b=Dgf5JgBtL7Pp3FPUgqn0zjegdgLIBys50HmVH+vd3ynH+W5bMXPpZ9LP5Elss/Q7p8 iOyiV48o8Qdg80WxJi1G6ky/bcpQaDEQ2p2oit2EFXo4LdQFXSIzVwB3OuVWaNEas8y9 46y5sCeLYSL5mATWilH/q5fxV/9mtgNvx5TTVtP5UvUWbG85JosyCymum/iB6G2Nrkqz HPqtHpLmMB1tQ82whJ1Sy+1Cv47/vscGGAQV454CSdR5XhAX7bBer35Q1/kgfPxOzR3e gHyHOe/gecCKiLYUZfvgBkZ2bc3H5T8d/+6YE33B+UlOX5/M1NH7e39SKgHQzxPhM+2x HSIg== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w6si10856418eds.103.2020.04.15.17.14.07; Wed, 15 Apr 2020 17:14:30 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2506421AbgDOPVF (ORCPT + 99 others); Wed, 15 Apr 2020 11:21:05 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:37385 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730523AbgDOPVA (ORCPT ); Wed, 15 Apr 2020 11:21:00 -0400 Received: by mail-oi1-f196.google.com with SMTP id r25so3901211oij.4; Wed, 15 Apr 2020 08:20:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=1BfqGTsRG/XiRfj9IrPOvmGGbY0WhRE/e/njJVbckvY=; b=nTTxldL/ABQjXu8h9JcdjFe58Tes9e7BP2Vw/Shhgv7pPg0G1/EI42/HTEPa5f5tee /XunlSBdHshn5HxnHomNl2LLUrVeUyhoOHvKG+19apTaOD9CJSRd6Z3Kk1ixhXXBscVB 3cgOhyvUimx2daeRpB/DXgLXmB1CMCFCOP+Y/bonZzcTgzl6HEIk3+ZhfW+wIEjdCbM5 my4WN4M57EQQCEEGqO23WTnV02FPpjcEFN/kq5jNOvYT1zO3qS6+qb/l0kxZHIvkjzNf ZyBxGaZGoipAyCeD5Z36hAvvG3ZKwNp01OnxBPh0PSyi3L9pWchb+XjK2UVNYleGv9dt ZIjQ== X-Gm-Message-State: AGi0PuZ8CnMYxM2hYSZsfpH0yK/DcUG4mrij5fRTS20am2mzyBHpQbeF qnt1cHplWjKhtbKob9cNtA== X-Received: by 2002:aca:c145:: with SMTP id r66mr18690858oif.90.1586964058634; Wed, 15 Apr 2020 08:20:58 -0700 (PDT) Received: from rob-hp-laptop (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id k132sm6477456oih.9.2020.04.15.08.20.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Apr 2020 08:20:57 -0700 (PDT) Received: (nullmailer pid 9564 invoked by uid 1000); Wed, 15 Apr 2020 15:20:56 -0000 Date: Wed, 15 Apr 2020 10:20:56 -0500 From: Rob Herring To: amirmizi6@gmail.com Cc: Eyal.Cohen@nuvoton.com, jarkko.sakkinen@linux.intel.com, oshrialkoby85@gmail.com, alexander.steffen@infineon.com, mark.rutland@arm.com, peterhuewe@gmx.de, jgg@ziepe.ca, arnd@arndb.de, gregkh@linuxfoundation.org, 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 Subject: Re: [PATCH v6 6/7] dt-bindings: tpm: Add YAML schema for TPM TIS I2C options Message-ID: <20200415152056.GA30547@bogus> References: <20200407162044.168890-1-amirmizi6@gmail.com> <20200407162044.168890-7-amirmizi6@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200407162044.168890-7-amirmizi6@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 07, 2020 at 07:20:43PM +0300, amirmizi6@gmail.com wrote: > 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 This is not sufficient. I assume you are testing on some specific TPM chip. > + > + reg: > + maxItems: 1 > + > + interrupt: > + maxItems: 1 > + > + crc-checksum: > + $ref: /schemas/types.yaml#/definitions/flag > + description: > + CRC checksum enable. Why would you not want CRC? Some chips support and some don't? If so, the compatible for the chip should imply that. > + > +required: > + - compatible > + - reg > + > +examples: > + - | > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + tpm-tis-i2c@2e { tpm@2e > + compatible = "tcg,tpm-tis-i2c"; > + reg = <0x2e>; > + crc-checksum; > + }; > + }; > +... > -- > 2.7.4 >