Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3456142pxb; Mon, 4 Apr 2022 17:33:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRbQYF9OdPwIpE8MKQVDJ1lfvYjzLLQupTqMA841VcdT32lZnrlVp3pJ3RgibDsms4QTt0 X-Received: by 2002:a63:2442:0:b0:399:40fd:765 with SMTP id k63-20020a632442000000b0039940fd0765mr687607pgk.82.1649118798064; Mon, 04 Apr 2022 17:33:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649118798; cv=none; d=google.com; s=arc-20160816; b=FcWKWfo3QRb5Sq3yAos+v8Q+DmRp20CCwbj6xtSSnPZQIMOaOD8GbMgVZT/qIwCwoZ xizsxQ5rofGzdOOYMJXmlJ/JgDOqg4t3Lp+HTSFhTE6X79vZkFHxBXz/3Fjmq8Q1t2z3 1vwWCR+ojt5wKnrq673ERY8gSJrrep8m2qKVJR+gj5QXZXkzOq03FSWUR9cnX3RdbTJ2 RX4iN7b7I3DJb1Ckf39YDwIAH2LDjHT0kf1N0heByFUbIztjDHppEJpfDkJ5kROrjgGN zRQzwYXdedpS/d0qD3oa+KPORbzqQeBf9JTIKjechdErNnM6ctkpb2RrqjM5J+JcBKZw Y4VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Hu9KSkDZSHDARPuS6OeF/SFHVgom3OphqHB/ovTTyyc=; b=1I1aS5rPI0/hWVgYs1e6QaHIfJJiA47Um0ZX6Sf3Od1EZHiYiMPK2gRXf6TeKsTFZt SXdeqVigc0zVZYg2bETI1oBiY7Fi5cJQnTiPDgk80gIjBjJwVTdRNlhJLU+P+qNkicYr qoHjsNpOlu+KJF7zgW8peN3oWfgYwIOTEPxIVdmSC2UBf+1qVXWV2fSakGinFTDZLY1R iRe3mEq/m68jG5/1gmWUJmFoZJLa1ct0zn+Urt4QSVP2OHo2IolkXRwY6mV7wrSn0G0e 8Muw1UkoDlF6Mg1iItuPgQY+3r9LOuFY67WBz2s8k+RPUieuhPRUYNl1M2qZY0sU7V8r HCUw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id c19-20020a056a000ad300b004fa831f601csi12529636pfl.231.2022.04.04.17.33.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 17:33:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3AA9385961; Mon, 4 Apr 2022 16:51:48 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382069AbiDDVui (ORCPT + 99 others); Mon, 4 Apr 2022 17:50:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379024AbiDDQUe (ORCPT ); Mon, 4 Apr 2022 12:20:34 -0400 Received: from mail-ot1-f54.google.com (mail-ot1-f54.google.com [209.85.210.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B5D2112E; Mon, 4 Apr 2022 09:18:36 -0700 (PDT) Received: by mail-ot1-f54.google.com with SMTP id n19-20020a9d7113000000b005cd9cff76c3so7581519otj.1; Mon, 04 Apr 2022 09:18:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Hu9KSkDZSHDARPuS6OeF/SFHVgom3OphqHB/ovTTyyc=; b=rEaGG6jwUE28L+dcEtV9mHLkGqBquyalA5Iixe7C4WljBSp4w6f1Q8eZrpDQcriDK1 kvBv5is/3GH7VYZpWSTfu+kfBwAYICqp2RxKsEWXw7allgtizzeaUFRQPjhTWJr/9I0e ipybAk2l62P8//XVnNXv5WeriMtWocQLxNiXqglX+PYCLmhyq6zl3DQaJeDXePBi3gEQ 8U1Kpk7VT02nrws1YvE9g14/R7xvMjRYb3hPVgNGAWzbgbCnKTWmgDQo48heZlzGDag0 GaiS3sObAuaFhruhi354WvRY6xUWSaUY7RzY+UQlo2G9e5YcCrJtlAnPC6baHpDlmpBJ 6UOA== X-Gm-Message-State: AOAM53106+EtfBtGYQ16Qb52+1j4scUrrIzMyXex6omqvqWtZ7WIYTTo 4Qle0MRXdMSAxqFM++5Tl6LWwy0dIw== X-Received: by 2002:a05:6830:1605:b0:5c9:4fde:ba63 with SMTP id g5-20020a056830160500b005c94fdeba63mr114325otr.84.1649089112766; Mon, 04 Apr 2022 09:18:32 -0700 (PDT) Received: from robh.at.kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id d12-20020a056871040c00b000d9eed0f8fdsm4334114oag.14.2022.04.04.09.18.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 09:18:32 -0700 (PDT) Received: (nullmailer pid 1453992 invoked by uid 1000); Mon, 04 Apr 2022 16:18:31 -0000 Date: Mon, 4 Apr 2022 11:18:31 -0500 From: Rob Herring To: Johannes Holland Cc: peterhuewe@gmx.de, jarkko@kernel.org, jgg@ziepe.ca, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, amirmizi6@gmail.com Subject: Re: [PATCH 4/4] tpm: Add YAML schema for the TPM TIS I2C options Message-ID: References: <20220404081835.495-1-johannes.holland@infineon.com> <20220404081835.495-4-johannes.holland@infineon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220404081835.495-4-johannes.holland@infineon.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 04, 2022 at 10:18:35AM +0200, Johannes Holland wrote: > Add a YAML schema to support device tree bindings for the generic I2C > physical layer. Refer to the TCG PC Client Platform TPM Profile (PTP) > Specification for TPM 2.0 v1.04 Revision 14. Bindings are for devices. A protocol layer does not make a device. > > Signed-off-by: Johannes Holland > --- > .../bindings/security/tpm/tpm-tis-i2c.yaml | 48 +++++++++++++++++++ > 1 file changed, 48 insertions(+) > create mode 100644 Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml We already have a binding for I2C TPM. That one should be converted. > > 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 000000000000..7948867ff3f7 > --- /dev/null > +++ b/Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml > @@ -0,0 +1,48 @@ > +# 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: > + - Johannes Holland > + > +description: > + Device Tree Bindings for I2C based Trusted Platform Module (TPM). > + > +properties: > + compatible: > + items: > + - enum: > + # Infineon's Trusted Platform Module (TPM) (SLB9673) > + - infineon,slb9673 > + # Nuvoton's Trusted Platform Module (TPM) (NPCT75x) > + - nuvoton,npct75x I see this is already used, but in general wildcards should not be used in device compatibles. > + - const: tcg,tpm-tis-i2c Pretty sure I killed this off when originally reviewing the TPM I2C binding. > + > + reg: > + maxItems: 1 > + > + interrupt: > + maxItems: 1 > + > +required: > + - compatible > + - reg > + > +additionalProperties: false > + > +examples: > + - | > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + tpm@2e { > + compatible = "infineon,slb9673", "nuvoton,npct75x", "tcg,tpm-tis-i2c"; > + reg = <0x2e>; > + }; > + }; > +... > -- > 2.31.1.windows.1 > >