Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6069769rdb; Thu, 14 Dec 2023 07:36:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IGIPUjcMOid7tw9FCa4ma5x5I67vkn0PV9S36lBOt/eACkchxeV2TMTIK8jZ0N96VySeYJw X-Received: by 2002:a17:90a:aa87:b0:285:b239:f4ed with SMTP id l7-20020a17090aaa8700b00285b239f4edmr4127192pjq.34.1702568173916; Thu, 14 Dec 2023 07:36:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702568173; cv=none; d=google.com; s=arc-20160816; b=oTzd6jKrCSKLHgcTnOOS+O0mGX/z/BglTAtbxU7bgV1DquP9RVclJvCDxA68kREI+K PeZUNx6itVfkUkZKMwVXlbDEgEGH4smc3I1U6PBFYiUFZpnGqG8OgV4LvWBHdLVxbPkP xTrRGBlGLGYGAWyIsSqRrshGfxddpuIPJcIV8hEBoX2oNTLrcnMVrered1fuKKiC97XF jFzZte0x/FUYha5ITpZD/Q0hHXbx5W75PCL3r3GL9hSsKS+Js9w2zexZdHK+H4n68Ume 6YxSRilZmNoZ6VDXCrANCP/CJ+ZOod+3wRab9FCkBGk063D5P+4+ZLbbLsCExWrVwHR0 G3tQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=L/ve6YvU//yFlBn2lmIsmFmAv1mrLVrfzMtE874dy74=; fh=fRhj6QOd3ImbFn26ArKZ4nia76HT+JUmUP+HD1lwttU=; b=P+YYoPEQk/9k9MnuRTxLXtFGMJFhi2+ThyV2daRUwMxPKrUJFmlyvJzizFZa0FyB/z cEdTZ4vMUj2jT8SUz5/dT1pFmUBcNXAS3fg9U89lZDW91B3n7ZqQ68EVGtnwNlANSgBl 42ISUid3eaBsdodHR7Px9BpdjZXPOFgKhAdsrAcCVg+ChU49GSRRPLHndRve30drR5Sn 33qGV25HepcJFwTVhvxlW06AhTi8iAfB+2rrxWYrJDlS1KWJF/XTn0dxkPp5hn04kv5Z 2UXo2HwGeXK52i/R9Y6U5PrM4HP9DXnUP7y5Ri8g4fNAp37kzQcz0LCMEPlOfznJMbh9 TI1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="XwjCrVD/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id l13-20020a17090a660d00b002887662139bsi11549802pjj.35.2023.12.14.07.36.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 07:36:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="XwjCrVD/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 9AF5280681CC; Thu, 14 Dec 2023 07:35:46 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573809AbjLNPf3 (ORCPT + 99 others); Thu, 14 Dec 2023 10:35:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1573777AbjLNPf2 (ORCPT ); Thu, 14 Dec 2023 10:35:28 -0500 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EE7B9A; Thu, 14 Dec 2023 07:35:34 -0800 (PST) Received: from pps.filterd (m0356517.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3BEFW6Vo010365; Thu, 14 Dec 2023 15:34:47 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pp1; bh=L/ve6YvU//yFlBn2lmIsmFmAv1mrLVrfzMtE874dy74=; b=XwjCrVD/tcub69LPnxozh1nRa9yPxGoYov3sHuGAEhfghwQFtPj4bWIvTyOROEYHhFcE 8ci2pL+xYQROzSQUZU1/kf5ABaoO7MQg9ZEWWEG638W1g8efGxBnBAaD42A8Y0AB5spF mj+GfwwyooDYH5tEUhlxrNdUifh2ta8w4buLtTnsPVI2b2Gr9bGWVgumU+bGGHqIdw7K Lv8E8blf7WxgJ/L3pZiRuS35uKJ6J7s0MJeOeazTyhvpXgf8VeSqJYAq1CgwAkPqkAeH Kq6HdcOrjDPRoGkaesqULTO4tVTiVzNtYAckiUpQR5KJ8DzCvwv1m1YIVS3bxFt6iBC2 6g== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3v04ea824t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Dec 2023 15:34:46 +0000 Received: from m0356517.ppops.net (m0356517.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 3BEFYawe017843; Thu, 14 Dec 2023 15:34:46 GMT Received: from ppma11.dal12v.mail.ibm.com (db.9e.1632.ip4.static.sl-reverse.com [50.22.158.219]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3v04ea824c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Dec 2023 15:34:45 +0000 Received: from pps.filterd (ppma11.dal12v.mail.ibm.com [127.0.0.1]) by ppma11.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 3BEETnXW013878; Thu, 14 Dec 2023 15:34:44 GMT Received: from smtprelay07.wdc07v.mail.ibm.com ([172.16.1.74]) by ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 3uw592gw0g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Dec 2023 15:34:44 +0000 Received: from smtpav05.dal12v.mail.ibm.com (smtpav05.dal12v.mail.ibm.com [10.241.53.104]) by smtprelay07.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 3BEFYhJT47120750 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 14 Dec 2023 15:34:43 GMT Received: from smtpav05.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8DED058065; Thu, 14 Dec 2023 15:34:43 +0000 (GMT) Received: from smtpav05.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8379D58056; Thu, 14 Dec 2023 15:34:40 +0000 (GMT) Received: from [9.67.23.198] (unknown [9.67.23.198]) by smtpav05.dal12v.mail.ibm.com (Postfix) with ESMTP; Thu, 14 Dec 2023 15:34:40 +0000 (GMT) Message-ID: Date: Thu, 14 Dec 2023 09:34:39 -0600 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 2/8] dt-bindings: tpm: Add schema for TIS I2C devices Content-Language: en-US To: Conor Dooley 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 References: <20231212164004.1683589-1-ninad@linux.ibm.com> <20231212164004.1683589-3-ninad@linux.ibm.com> <20231212-amusement-elevation-28e42bcccc35@spud> From: Ninad Palsule In-Reply-To: <20231212-amusement-elevation-28e42bcccc35@spud> Content-Type: text/plain; charset=UTF-8; format=flowed X-TM-AS-GCONF: 00 X-Proofpoint-GUID: hogr06fT5Mw5qJW3QkIJJvD-IOfJs-Zl X-Proofpoint-ORIG-GUID: UmYUUzzx44Lo6i8qLBzL1okG6XCyDP4W Content-Transfer-Encoding: 7bit X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-14_10,2023-12-14_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 mlxscore=0 spamscore=0 bulkscore=0 suspectscore=0 mlxlogscore=999 lowpriorityscore=0 priorityscore=1501 impostorscore=0 clxscore=1015 adultscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2312140109 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Thu, 14 Dec 2023 07:35:46 -0800 (PST) Hello Conor, On 12/12/23 11:14, Conor Dooley wrote: > Hey, > > On Tue, Dec 12, 2023 at 10:39:58AM -0600, Ninad Palsule wrote: >> From: Johannes Holland >> >> Add a dt schema to support device tree bindings > "Add bindings for..." Fixed. > >> 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 > I have no idea what this is, but it needs to be removed from the patch. Removed. > >> 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-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 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. > >> +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 > 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. As Guenter mentioned I need to keep it as tacoma board is just using this string. Thanks for the review. Regards, Ninad > > Cheers, > Conor. > >> + reg: >> + maxItems: 1 >> + >> +required: >> + - compatible >> + - reg >> + >> +additionalProperties: false >> + >> +examples: >> + - | >> + i2c { >> + #address-cells = <1>; >> + #size-cells = <0>; >> + >> + tpm@2e { >> + compatible = "nuvoton,npct75x", "tcg,tpm-tis-i2c"; >> + reg = <0x2e>; >> + }; >> + }; >> +... >> -- >> 2.39.2 >>