Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5502039rdb; Wed, 13 Dec 2023 10:21:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IEr+o/xIXuypbWRCJQ0Yb80j5b0+sYfGu6HfjzN6HJWRMj0i+fP0O211YANMcwhc1LFAdjp X-Received: by 2002:a17:903:124b:b0:1d3:340c:76d with SMTP id u11-20020a170903124b00b001d3340c076dmr2260068plh.114.1702491671618; Wed, 13 Dec 2023 10:21:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702491671; cv=none; d=google.com; s=arc-20160816; b=krGNPxM5u6+34PuOygcXBWOgSK51JeeySi3G4R4yFewK+7cPppRZtcsGPzhxDspbL1 mqD55WIvbRJcU/Dy3+ZPeoEi9CeNW3c2u2+AMp9EyiWavW6Spdriwsnct9K6dPhsqlDh KlhedNjHdv4mi/sjkPZrRwJXHwEnqtY6h8SuH5LgTOPXHH0E2uf6IdrAy4/dCuWuWgjJ kFbKIGgVRDqUqdpHhN/VC10NIvNdhQmVTdJAvLaDoTwXe/Vwl4l19Ga9CkVbG+81gep9 sJyyGtlRd0R4f4cTNVfJGKjfHfOTmZJigB/zn0rxLO7EfO59tsZ2l8UOZujdDdaL1o2A eJTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:to:from:subject:cc :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=p3r3sWmuI25Zmv+v3NlA7eohWI0hsE1i/8AUomHbR8I=; fh=aa707vcs0hqPFX/9P6FJqqGG+q8ow3zsKHSGeWhuAp4=; b=yhbRNXwC2neNDdbDVvT0Vlg0CA0nw7FI3yIRz/OBcVJnM4gJmAeG90OSU/mXn0is0Z w8whvFaWowI0ss0cxODBRmEp7cPmssOI2zHJnZL+mpCz+K9HqXw05jZNr9c2aOOEgzVf vysCbiBuKK75cMpEkLGrJ2em35ZnMRzikh7cT6T+DukCybXdnfqRXiCzT1+IsxY8FqDK NkpJX2B2Y/hpqVKbvMaAbqMwsEcxNFUCzG5dWyCj+KPucAA2hF8vZUCoUF+LpL9sd1tt 723jRmqmikSQBtq6fbIHdGODqWG2GrnKRVfs7Z1qKlYbT++3250kY9Fyk/QKqlsxpGNx uqmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mw0teAqi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id s13-20020a170902b18d00b001d3442ef0b5si2375118plr.423.2023.12.13.10.21.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 10:21:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mw0teAqi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 355B58069C6A; Wed, 13 Dec 2023 10:20:43 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442164AbjLMSUX (ORCPT + 99 others); Wed, 13 Dec 2023 13:20:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233802AbjLMSUW (ORCPT ); Wed, 13 Dec 2023 13:20:22 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6041AB7 for ; Wed, 13 Dec 2023 10:20:28 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 72ACDC433C8; Wed, 13 Dec 2023 18:20:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702491628; bh=E7gw62n1LDAJ7vitrWM+l8KMqj5eHgf90P0t36MY0qI=; h=Date:Cc:Subject:From:To:References:In-Reply-To:From; b=mw0teAqiVeqH6qo2z0IwO3wiu/K7o8qi0urNuTjzFFVZpBUO/kmOqFYQ5LazNq7OY tNSrinvTT5bosg6isbrg/KqhCPdehaSUPlGrmuDDiFlFrwNgp4o9PMkKR5Cnh+NmAX 6bzV4YnQjvoL0Wb3+vF6e/wSy9c4bVWozF0Aw2l5UerkpvDjg+Od8WviNBFMz7ClzL OfrTpBihUhQ+rLvoSqRgh4TU4DQ/JgyEFrUrGiAvreQtB2i2//MeCI5Tqerh+nXMiC K2h4JPEOgOUfDoGTOX7f+zrTtMHpWNiPBH13Zpty7mK+D1XKYiN3MQGEq6xQd2Lt3f ZF6DZz3j3/EFw== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 13 Dec 2023 20:20:20 +0200 Message-Id: Cc: , , , , , , , , , , , , , , Subject: Re: [PATCH v1 2/8] dt-bindings: tpm: Add schema for TIS I2C devices From: "Jarkko Sakkinen" To: "Ninad Palsule" , , , , , , , , , , , , , X-Mailer: aerc 0.15.2 References: <20231212164004.1683589-1-ninad@linux.ibm.com> <20231212164004.1683589-3-ninad@linux.ibm.com> In-Reply-To: <20231212164004.1683589-3-ninad@linux.ibm.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 13 Dec 2023 10:20:43 -0800 (PST) On Tue Dec 12, 2023 at 6:39 PM EET, Ninad Palsule wrote: > From: Johannes Holland > > Add a dt 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. > > This includes descriptions for the Nuvoton and Infineon devices. > > OpenBMC-Staging-Count: 3 Please don't invent your own tags. > Signed-off-by: Johannes Holland > Signed-off-by: Joel Stanley > Signed-off-by: Ninad Palsule > --- > .../bindings/security/tpm/tpm-tis-i2c.yaml | 50 +++++++++++++++++++ > 1 file changed, 50 insertions(+) > create mode 100644 Documentation/devicetree/bindings/security/tpm/tpm-ti= s-i2c.yaml > > diff --git a/Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.y= aml b/Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml > new file mode 100644 > index 000000000000..de1e34065748 > --- /dev/null > +++ b/Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml > @@ -0,0 +1,50 @@ > +# 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 Devices > + > +maintainers: > + - Johannes Holland > + > +description: > + Device Tree Bindings for I2C based Trusted Platform Module (TPM). > + > +properties: > + $nodename: > + pattern: "^tpm(@[0-9a-f]+)?$" > + > + compatible: > + oneOf: > + - description: Infineon's Trusted Platform Module (TPM) (SLB9673). > + items: > + - const: infineon,slb9673 > + - const: tcg,tpm-tis-i2c > + - description: Nuvoton's Trusted Platform Module (TPM) (NPCT75x). > + items: > + - const: nuvoton,npct75x > + - const: tcg,tpm-tis-i2c > + - const: tcg,tpm-tis-i2c > + reg: > + maxItems: 1 > + > +required: > + - compatible > + - reg > + > +additionalProperties: false > + > +examples: > + - | > + i2c { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + tpm@2e { > + compatible =3D "nuvoton,npct75x", "tcg,tpm-tis-i2c"; > + reg =3D <0x2e>; > + }; > + }; > +... BR, Jarkko