Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6112591rdb; Thu, 14 Dec 2023 08:36:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IG0mRjFGs4fHTqUSRG8Dsc9cOl5HPlPfeEeF/IrK+kMzphkVQSKARDcS2ABk59d3XqJdJYQ X-Received: by 2002:a05:6a20:daa0:b0:18f:97c:5b8d with SMTP id iy32-20020a056a20daa000b0018f097c5b8dmr5866862pzb.91.1702571762580; Thu, 14 Dec 2023 08:36:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702571762; cv=none; d=google.com; s=arc-20160816; b=wvIlCyPS6D5fWi3eivKuGLXIzNHiX+ApjyDLpVguCGL1jNTXSM+WsYtNl4RdvKmPKL Y95y8Zf8+2g1ZnV2bJSV0+pdcuL1drOoeBounu7AjBSXIt40s2QQtRdbMr/qlZfrsWHe h8thyrCNhamqUeCjCJ0Lao+O/0IpD/mdSB80JIR//fUx5sRyx0gb9BOLbOSMYWkXBnZy 1CsUrWl3z6pb9Qotcem97uMOgmy2/tmLZ1OfL5ZmZrR+z1pkPlGin1nD8Bo28uYKo/VZ c5VhktDVv++G5RcGbltSVgLkE1Mg7X7Xwuhkf5uZLM3lyBPURqsE1RsVGT2scw/Yp6u9 p+Lg== 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:dkim-signature; bh=7lLiF6JZbkVttC0liV1Khq4PejqBNsotF6l6QGAAaRI=; fh=W/9tglhdV1gi6iWA07NwuFbVvzORGV4uNavdiiEnbqE=; b=q1lLvCL1iYrpQs3kPE/5DLKHiDJpFVTfQn/yKKqGmbRWsrPh7Q6LaYJBvfyDSv7hO+ 6igiNkkpNK9fFiT+Jpm1e3svhP10vtgQfSEThPfLIk2a5Q879Kprfw2QsXGF/8PUtaWm dwGiH2yj1GdsJyV/2yZhH4QiKZK+jpJR2uM8qpOC71TqB2czudt+QLA9zikckBZcEUAw O9uCIKHNcXSEYeP+f9uiqXvp7wVIgJFZE+ui5lBN3A53Trge3k3nCEXzIsCT9Yiku64y cPUbGEQM2nBuNZkNeQ6TwmrH2/PQxrobzPvrAqcfAxD12xc2sMeUUpN+Mo1/zQ4GSSDL xscw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=osr3FgHO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id bv127-20020a632e85000000b005c671034477si11188790pgb.539.2023.12.14.08.36.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 08:36:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=osr3FgHO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 05DB98266320; Thu, 14 Dec 2023 08:35:57 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229602AbjLNQfb (ORCPT + 99 others); Thu, 14 Dec 2023 11:35:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230267AbjLNQf3 (ORCPT ); Thu, 14 Dec 2023 11:35:29 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFFA610F for ; Thu, 14 Dec 2023 08:35:35 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 04F85C433C8; Thu, 14 Dec 2023 16:35:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702571735; bh=xLP+CoYVRLf33dBZWy5D+JKVopjIGSKoYshwiIZs8WA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=osr3FgHOd4SxcHlgM+KOE3JV5uBYP9C8KxGaoG2GKSPe6NrSS8k4Otmqu4xV46Yas waqEXYeDYaxMmJiZn/Ld0KbTKe1csyUB23OvBJMSRempX0Te7sC4TA3JrVvyJp5qar EX642T5u02Fu+1kmlzxxE0xK5FczFoX5t6PD2QIUWiPXcXlYRUkyJOe1UAWR5vAftl 8tWrd1VeDeWfI+HH8oAycivpbskmMyPDLLF4okV29ou9JImHjNKXIExJWL11P+OtjW UjjKb4KEtvajbahh8rfFn/MGo3ArVlhAFke2+6PTj58UqBfSR+owDpZhR3CcFz8ww1 NSSQ3uH/wi5xQ== Date: Thu, 14 Dec 2023 16:35:27 +0000 From: Conor Dooley To: Ninad Palsule Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, joel@jms.id.au, andrew@codeconstruct.com.au, peterhuewe@gmx.de, jarkko@kernel.org, jgg@ziepe.ca, keescook@chromium.org, tony.luck@intel.com, gpiccoli@igalia.com, johannes.holland@infineon.com, linux@roeck-us.net, broonie@kernel.org, patrick.rudolph@9elements.com, vincent@vtremblay.dev, peteryin.openbmc@gmail.com, lakshmiy@us.ibm.com, bhelgaas@google.com, naresh.solanki@9elements.com, alexander.stein@ew.tq-group.com, festevam@denx.de, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-integrity@vger.kernel.org, linux-hardening@vger.kernel.org, geissonator@yahoo.com Subject: Re: [PATCH v1 2/8] dt-bindings: tpm: Add schema for TIS I2C devices Message-ID: <20231214-stopper-bounce-ca9002869293@spud> References: <20231212164004.1683589-1-ninad@linux.ibm.com> <20231212164004.1683589-3-ninad@linux.ibm.com> <20231212-amusement-elevation-28e42bcccc35@spud> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="MMQ9s9pZoIm9/Al5" Content-Disposition: inline In-Reply-To: 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 groat.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 (groat.vger.email [0.0.0.0]); Thu, 14 Dec 2023 08:35:57 -0800 (PST) --MMQ9s9pZoIm9/Al5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 14, 2023 at 09:34:39AM -0600, Ninad Palsule wrote: > Hello Conor, >=20 > On 12/12/23 11:14, Conor Dooley wrote: > > Hey, > >=20 > > On Tue, Dec 12, 2023 at 10:39:58AM -0600, Ninad Palsule wrote: > > > From: Johannes Holland > > >=20 > > > Add a dt schema to support device tree bindings > > "Add bindings for..." > Fixed. > >=20 > > > 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. > > >=20 > > > This includes descriptions for the Nuvoton and Infineon devices. > > >=20 > > > OpenBMC-Staging-Count: 3 > > I have no idea what this is, but it needs to be removed from the patch. > Removed. > >=20 > > > 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/t= pm-tis-i2c.yaml > > >=20 > > > diff --git a/Documentation/devicetree/bindings/security/tpm/tpm-tis-i= 2c.yaml 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). > > s/Device Tree Bindings for //. Doesn't dt_binding_check now complain if > > you have this in a title or description? > Fixed. > >=20 > > > +properties: > > > + $nodename: > > > + pattern: "^tpm(@[0-9a-f]+)?$" > > > + > > > + compatible: > > > + oneOf: > > > + - description: Infineon's Trusted Platform Module (TPM) (SLB96= 73). > > > + items: > > > + - const: infineon,slb9673 > > > + - const: tcg,tpm-tis-i2c > > > + - description: Nuvoton's Trusted Platform Module (TPM) (NPCT75= x). > > > + items: > > > + - const: nuvoton,npct75x > > > + - const: tcg,tpm-tis-i2c Also, another thought - the bus is not usually encoded in the compatible string, so it would be good to remove that. > > > + - const: tcg,tpm-tis-i2c > > IMO this should be removed and this fallback should only be used in > > combination with device specific compatibles, like you have here for the > > infineon and nuvoton devices. >=20 > As Guenter mentioned I need to keep it as tacoma board is just using this > string. No, that does not mean that you have to keep this in the binding. I know Rob had some comments that might invalidate this binding entirely, but if that does not happen then I think think that the tacoma devicetree needs to have a device-specific compatible added for the tpm that it has. You could of course retain the generic fallback compatible however. --MMQ9s9pZoIm9/Al5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZXsuzwAKCRB4tDGHoIJi 0iCVAQDk5mHO10tmO5WDzSu3wLDAmW2sRXfnlt57B2JKfnI6ugEA4cuH9pF3plY6 Hwto/5Zwn/wHNXZGd/jh0wVacJxniQo= =N8sK -----END PGP SIGNATURE----- --MMQ9s9pZoIm9/Al5--