Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5511684rdb; Wed, 13 Dec 2023 10:39:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IG7fNSu7mjFQKcHyEn6T+3bkIftd5RSPAUQ2bLADoLaqvlhoskj+Fw4UrtXzv7hvlDoCt5j X-Received: by 2002:a05:6a20:748f:b0:18f:ce60:ceeb with SMTP id p15-20020a056a20748f00b0018fce60ceebmr10259054pzd.23.1702492794494; Wed, 13 Dec 2023 10:39:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702492794; cv=none; d=google.com; s=arc-20160816; b=1EjfVW7rwXwF+Rc2hk+cwJwrEghS3LyN0d8in/8qr8AvqsmjzZi/jEyio6NPFLSlpH 0/zgojAb0K0PJw90mzb7D1lLLGA0Iu7TpKpYcIwNYLYtEnHR3F0cCo2NVhlu+jjLZZ25 8BpcJ8H/AzPqak9IGc2bu3YUMQQfXyAZ3TIoc51ZWdr1WU7Gzs9nAyQDOX8shBKn2u09 QyS6Ymu9lcgaPAfvl8suPuLYJE5jJs5hZ7cmW4AjizHWXkCYrpla4JqDrB4xITAR4QJ/ zkGgCMsUuoqK2klmT7E/6JOR9MRSj5DFYcGSbZdX2KmGSpeuW/xeU+rD7rYaZL1hLCj4 fmQw== 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=fEx/rim947811PkyR5Ib8bCcfmjQUMsWMBx0jmD8wro=; fh=R5iREf3JDXAHYv/dUkIPtRUiScfQVfX8VI77IFU2NOs=; b=aA8EVUVsWlLYbBJ39r6k9VtupGQsq7iavXdr1tHMICrKAKQam8+3rEOmlIm1JEzH7O rqVWHWP/WpEbA2eL7nmTUgCuAsOL3xN2//PHBJGMMcbqBcGbjMhgDUr72DSGBHLOt7Hf LUrtrbapMdsWG7CvYuWnal6oNakZShG3ANwLgvqC8fto/wEEMj54YMpnCXVejf63Swji HP2yI1OfZHPP/m05CdJdQyXflfZe7PDbXKbfAX+9CO5cxvfChSJfjl1Q534lWGfggX6B q1Xt6yBF852Fr+SrIUpFbxPt1ypLV26i2GNotlVNGbWpAg/pEkvf10lCYaL1Jm7xuocK 49xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=mcTMy7Eb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id d17-20020a056a00245100b006d0c0183f35si2109464pfj.143.2023.12.13.10.39.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 10:39:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=mcTMy7Eb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 98FB4807745F; Wed, 13 Dec 2023 10:39:51 -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 S233604AbjLMSjf (ORCPT + 99 others); Wed, 13 Dec 2023 13:39:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233511AbjLMSjc (ORCPT ); Wed, 13 Dec 2023 13:39:32 -0500 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46C93D0; Wed, 13 Dec 2023 10:39:39 -0800 (PST) Received: from pps.filterd (m0360083.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3BDI7u2S015354; Wed, 13 Dec 2023 18:38:27 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=fEx/rim947811PkyR5Ib8bCcfmjQUMsWMBx0jmD8wro=; b=mcTMy7EbuN77YCarY71ife9P537tehZ9gPelI4hUPLtwBuKD3pmaNIXB6j2xH2EooC6m YTq2aUv4iVns6b18vuuo52Tr6LWQq85YkglTM6cr0tPEgYqw5NBnVYfLc3fDwo4MCugH oKDdlECb8Kk/V8/AKp87AXjFAfGAdG6ju/gy3uJ55WmgnaXKI4/rOAw8bW5jB956BuaB lAPkqxYDqbus/TeoFEwJ3Y2LvbLuK9M3qpf+hY9VjjCRG1g5RfS3GCOUXTKkmG8VXe8j GON7Tlq00hlb6Ycqc2ZcIehSpycgDWFaUOZVQvs+Gk9shdN+S3L9T8IZ8rOzq04LTf9t Ww== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3uyhm8gu24-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Dec 2023 18:38:27 +0000 Received: from m0360083.ppops.net (m0360083.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 3BDI8ZAO018923; Wed, 13 Dec 2023 18:38:26 GMT Received: from ppma12.dal12v.mail.ibm.com (dc.9e.1632.ip4.static.sl-reverse.com [50.22.158.220]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3uyhm8gu1n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Dec 2023 18:38:26 +0000 Received: from pps.filterd (ppma12.dal12v.mail.ibm.com [127.0.0.1]) by ppma12.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 3BDGZU24008450; Wed, 13 Dec 2023 18:38:25 GMT Received: from smtprelay05.dal12v.mail.ibm.com ([172.16.1.7]) by ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 3uw2jtk6q8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Dec 2023 18:38:25 +0000 Received: from smtpav06.wdc07v.mail.ibm.com (smtpav06.wdc07v.mail.ibm.com [10.39.53.233]) by smtprelay05.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 3BDIcOvk21627514 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 13 Dec 2023 18:38:24 GMT Received: from smtpav06.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0C75E58054; Wed, 13 Dec 2023 18:38:24 +0000 (GMT) Received: from smtpav06.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B9AB55803F; Wed, 13 Dec 2023 18:38:22 +0000 (GMT) Received: from [9.24.12.86] (unknown [9.24.12.86]) by smtpav06.wdc07v.mail.ibm.com (Postfix) with ESMTP; Wed, 13 Dec 2023 18:38:22 +0000 (GMT) Message-ID: <719949a9-ddd5-451f-a765-d875cea85ba5@linux.ibm.com> Date: Wed, 13 Dec 2023 12:38:22 -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: Jarkko Sakkinen , robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, joel@jms.id.au, andrew@codeconstruct.com.au, peterhuewe@gmx.de, jgg@ziepe.ca, keescook@chromium.org, tony.luck@intel.com, gpiccoli@igalia.com, johannes.holland@infineon.com, linux@roeck-us.net, broonie@kernel.org Cc: 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> From: Ninad Palsule In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed X-TM-AS-GCONF: 00 X-Proofpoint-GUID: TA5ugVitoI4LBCCP5dmzUD_ldTLYTHkW X-Proofpoint-ORIG-GUID: Qxhptd4olsjIjL_1qbdboQzdGrQTp--Y 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-13_12,2023-12-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 adultscore=0 bulkscore=0 priorityscore=1501 mlxscore=0 spamscore=0 mlxlogscore=999 suspectscore=0 malwarescore=0 lowpriorityscore=0 clxscore=1015 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2312130133 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 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]); Wed, 13 Dec 2023 10:39:51 -0800 (PST) Hello Jarkko, On 12/13/23 12:20, Jarkko Sakkinen wrote: > 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. Yes, Sorry. I have cherry-picked this commit from openbmc. Now I have removed this line. Thanks for the review. Thanks & Regards, Ninad > >> 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). >> + >> +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 = <1>; >> + #size-cells = <0>; >> + >> + tpm@2e { >> + compatible = "nuvoton,npct75x", "tcg,tpm-tis-i2c"; >> + reg = <0x2e>; >> + }; >> + }; >> +... > > BR, Jarkko