From patchwork Sat Apr 13 07:15:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Haener X-Patchwork-Id: 13628656 Received: from mta-64-227.siemens.flowmailer.net (mta-64-227.siemens.flowmailer.net [185.136.64.227]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E4D8F1D559 for ; Sat, 13 Apr 2024 07:16:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.136.64.227 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712992610; cv=none; b=i7yY9c9T2CINLTVjOtqsIXpvmaQ72qO2IUGmlA+TTRd4P7YrN1oGUuoUjVKSt1pLFZnXpHkr2oGaOhKhNzRVPNORZvW6COrmvg8xgV0GVuuI2RIAJFzRDWjc2wfSCPX4CLEylTL1oeHFjZpcx1FsYCuaZH9s3SzArpbg1oNA6oU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712992610; c=relaxed/simple; bh=VYCAoTa/V/nFhj2VwkHIfOAHACMhnfVxJTdBdmtICIs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lJ24RHKCXuL15qWfKGK8S9WzFpcqj8aPx78CE4WrdZRuAuSE2H4DckW1tevzwhLKquJPrsOSLadafTDN+nLmeFlxMSjne0zEayzNrh4T4W7C+xLugpLW5PIjZIQQ+Kn3mMJ43trg6Aftatb9gYKdnEGljtkcSNa1LhvTfujCAak= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=siemens.com; spf=pass smtp.mailfrom=rts-flowmailer.siemens.com; dkim=pass (1024-bit key) header.d=siemens.com header.i=michael.haener@siemens.com header.b=noGgncqN; arc=none smtp.client-ip=185.136.64.227 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=siemens.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rts-flowmailer.siemens.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=siemens.com header.i=michael.haener@siemens.com header.b="noGgncqN" Received: by mta-64-227.siemens.flowmailer.net with ESMTPSA id 20240413071641e2e890a746ba3960e4 for ; Sat, 13 Apr 2024 09:16:41 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=michael.haener@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=xsKJ0SsOx0zGh02X8aXwuRhZZ+HQQlUaqaI2dbR4X/I=; b=noGgncqNdEsXeWDcacL14GwgaeyD+T1mxWVXmnyzB4xmZLjcth+8P5P77Y6h+MpKcPXB0b L+4e1VGW8osEPc9bpI3KNtr9vuX/GuMc9oOQtkBjPHn7ZczoFtOfmmVL1U2Tv/CNEpLePqcr QxsuDpsZxov3LaTr5xlxj7DSxESUQ=; From: "M. Haener" To: linux-integrity@vger.kernel.org Cc: Michael Haener , linux-kernel@vger.kernel.org, Peter Huewe , Jarkko Sakkinen , Jason Gunthorpe , Alexander Sverdlin Subject: [PATCH 1/2] tpm: tis_i2c: Add compatible string st,st33ktpm2xi2c Date: Sat, 13 Apr 2024 09:15:06 +0200 Message-ID: <20240413071621.12509-2-michael.haener@siemens.com> In-Reply-To: <20240413071621.12509-1-michael.haener@siemens.com> References: <20240413071621.12509-1-michael.haener@siemens.com> Precedence: bulk X-Mailing-List: linux-integrity@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-664519:519-21489:flowmailer From: Michael Haener Add "st,st33ktpm2xi2c" to the TPM TIS I2C driver. The Chip is compliant with the TCG PC Client TPM Profile specification. For reference, a datasheet is available at: https://www.st.com/resource/en/data_brief/st33ktpm2xi2c.pdf Reviewed-by: Alexander Sverdlin Signed-off-by: Michael Haener Reviewed-by: Jarkko Sakkinen --- drivers/char/tpm/tpm_tis_i2c.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/char/tpm/tpm_tis_i2c.c b/drivers/char/tpm/tpm_tis_i2c.c index 9511c0d50185..1f277c34e6da 100644 --- a/drivers/char/tpm/tpm_tis_i2c.c +++ b/drivers/char/tpm/tpm_tis_i2c.c @@ -384,6 +384,7 @@ MODULE_DEVICE_TABLE(i2c, tpm_tis_i2c_id); static const struct of_device_id of_tis_i2c_match[] = { { .compatible = "infineon,slb9673", }, { .compatible = "nuvoton,npct75x", }, + { .compatible = "st,st33ktpm2xi2c", }, { .compatible = "tcg,tpm-tis-i2c", }, {} }; From patchwork Sat Apr 13 07:15:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Haener X-Patchwork-Id: 13628657 Received: from mta-65-228.siemens.flowmailer.net (mta-65-228.siemens.flowmailer.net [185.136.65.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B96613838C for ; Sat, 13 Apr 2024 07:16:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.136.65.228 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712992616; cv=none; b=VpV/lB+VLDnQ9plkvP4M0CLLtTAaxFvQ3GWz8I5KmHrVHouNI6uKZU3b3Z9JY36WTK0cQqDnU6QjZ1ylwUyeJh23cKW34g2tAUf4HFhbOWu4gRJRM5pC8gXZFdETONRySPWDbyHQMvbP200yM7sAklVevfwyyRey1WJWa/OTL/A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712992616; c=relaxed/simple; bh=h+jXI0oeBS8n98NMxvX0ZNK9OanOZVaWfhf9F7zYh20=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=lk3jOQaiEKKndq1UTGWc2kD18KSRje47QGPYKfTveVMTMPyCHD505cuqpKgFc1MYMnrqicAB7XbWJSm2jjyUJ6dRK5cFZ+BKrWJhHEje+R8Io+Ne2eZNzJ0vULCDAHWmOJEUXlUBzZGyAkwAj7ZDWMWds2VSRCHHuP4aXURZTU8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=siemens.com; spf=pass smtp.mailfrom=rts-flowmailer.siemens.com; dkim=pass (1024-bit key) header.d=siemens.com header.i=michael.haener@siemens.com header.b=HozHQ1Yr; arc=none smtp.client-ip=185.136.65.228 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=siemens.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rts-flowmailer.siemens.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=siemens.com header.i=michael.haener@siemens.com header.b="HozHQ1Yr" Received: by mta-65-228.siemens.flowmailer.net with ESMTPSA id 20240413071646510cdec554b6d2a9e4 for ; Sat, 13 Apr 2024 09:16:46 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=michael.haener@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=QyM1wgxijDrCMszk9wY5F2yipXafY8cejQEdgl4Lh14=; b=HozHQ1YreXAXjF1NAGUC2PjRvs1Y8ZdzsE1jOMDCElI5dCgL9/UnE6bzEliL3LlJJkPsbn a3xbOYh8Ycd+PdGAEdxh95X96WJG9WI+BEN3hGR9oJjAxbqYSz9TPsHzE6iXhN1Yt1f8uOLm TybqAFEOkCdvnA0LXOF/mWgd6O924=; From: "M. Haener" To: linux-integrity@vger.kernel.org Cc: Michael Haener , linux-kernel@vger.kernel.org, Peter Huewe , Jarkko Sakkinen , Jason Gunthorpe , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lukas Wunner , Alexander Sverdlin Subject: [PATCH 2/2] dt-bindings: tpm: Add st,st33ktpm2xi2c to TCG TIS binding Date: Sat, 13 Apr 2024 09:15:07 +0200 Message-ID: <20240413071621.12509-3-michael.haener@siemens.com> In-Reply-To: <20240413071621.12509-1-michael.haener@siemens.com> References: <20240413071621.12509-1-michael.haener@siemens.com> Precedence: bulk X-Mailing-List: linux-integrity@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-664519:519-21489:flowmailer From: Michael Haener Add the ST chip st33ktpm2xi2c to the supported compatible strings of the TPM TIS I2C schema. The Chip is compliant with the TCG PC Client TPM Profile specification. For reference, a datasheet is available at: https://www.st.com/resource/en/data_brief/st33ktpm2xi2c.pdf Reviewed-by: Alexander Sverdlin Signed-off-by: Michael Haener Reviewed-by: Jarkko Sakkinen --- Documentation/devicetree/bindings/tpm/tcg,tpm-tis-i2c.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/tpm/tcg,tpm-tis-i2c.yaml b/Documentation/devicetree/bindings/tpm/tcg,tpm-tis-i2c.yaml index 3ab4434b7352..af7720dc4a12 100644 --- a/Documentation/devicetree/bindings/tpm/tcg,tpm-tis-i2c.yaml +++ b/Documentation/devicetree/bindings/tpm/tcg,tpm-tis-i2c.yaml @@ -32,6 +32,7 @@ properties: - enum: - infineon,slb9673 - nuvoton,npct75x + - st,st33ktpm2xi2c - const: tcg,tpm-tis-i2c - description: TPM 1.2 and 2.0 chips with vendor-specific I²C interface