From patchwork Mon Aug 5 13:33:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Hahn X-Patchwork-Id: 13753632 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D498AC3DA7F for ; Mon, 5 Aug 2024 13:34:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:CC:To:Message-ID: Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=R9EIvOQeo8U2kG6toaqPlJOucrOIjipMfQGlqpQ0O2A=; b=UuhGKc+bulBO9zK9b7smdZKLj7 lbQDXCVk+q+HCoXyWmB8Vpvw2GD4G9+mpgrCMag4mUqsf4Sl5VGnhzN2R6zjrvfkedjAu7RhnUwaz CZ/evUFIXZKZCQhNBum66CnNw7CfREVFTdjXNNJGEY/A3Yy+rdFEtdjrZoB7TriF8Hdful/Owj7TL vxhh7zm4eucg2tNxPBYRXMWfohbKgrxaE62GOhX0yQcaZiQc0cf68SXUq+7aMey/7w7yZslEPtvC/ 59/6IIgGbVYJdaa9OAEm1Mmg+/G+/d2AuB3HBgNEwQ2xZG2qcX1IzvfeWxlvRSpqGBqeCoNEt5Ady haHLkLIw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1saxqw-0000000FxNd-0uCn; Mon, 05 Aug 2024 13:34:22 +0000 Received: from mickerik.phytec.de ([91.26.50.163]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1saxqQ-0000000FxGd-0Txi for linux-arm-kernel@lists.infradead.org; Mon, 05 Aug 2024 13:33:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; d=phytec.de; s=a4; c=relaxed/simple; q=dns/txt; i=@phytec.de; t=1722864824; x=1725456824; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:CC:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ubu0CotWYKRX8DT3AZEDNKu6rkYv7NNafpkf0mpAy/E=; b=tbmyJwvJQulExd7anS5EKng+ZOvEf6G0+Ruwy9ZyZl5P4tGgtsu2rZR84HMvDLIQ SfpL9eP+0ckBeRKKgwAPxu9875Re7jryA2LPEbHFYyQ8bz25BWU9acwBZYCYmQFQ 3kYIeIrb4Y7ToyOZLHSZNcsauWmsHZj5n2ygqoFOybI=; X-AuditID: ac14000a-03251700000021bc-3e-66b0d4b81012 Received: from berlix.phytec.de (Unknown_Domain [172.25.0.12]) (using TLS with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id D2.1A.08636.8B4D0B66; Mon, 5 Aug 2024 15:33:44 +0200 (CEST) Received: from llp-hahn.phytec.de (172.25.0.11) by Berlix.phytec.de (172.25.0.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.6; Mon, 5 Aug 2024 15:33:43 +0200 From: Benjamin Hahn Date: Mon, 5 Aug 2024 15:33:27 +0200 Subject: [PATCH] arm64: dts: freescale: imx8mp-phyboard-pollux: Add and enable TPM MIME-Version: 1.0 Message-ID: <20240805-imx8mp-tpm-v1-1-1e89f0268999@phytec.de> X-B4-Tracking: v=1; b=H4sIAKbUsGYC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDCwNT3czcCovcAt2Sglxd45Q0MwPzJMM00zRDJaCGgqLUtMwKsGHRsbW 1AA79p5ZcAAAA To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Teresa Remmet CC: , , , , Benjamin Hahn X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1722864823; l=1714; i=B.Hahn@phytec.de; s=20240126; h=from:subject:message-id; bh=ubu0CotWYKRX8DT3AZEDNKu6rkYv7NNafpkf0mpAy/E=; b=/+OhWp+qpzilt03iSsVgktAI/pCzxvAIrC2wrZ0MDAcaLZsMwDj9w05ydEhzVCyddyS0VdGyb V64DxnZisjhDVh4fiuy9FiKP0eLDaChrrgcg6jLX00DZAspjECRTQ7N X-Developer-Key: i=B.Hahn@phytec.de; a=ed25519; pk=r04clMulHz6S6js6elPBA+U+zVdDAqJyEyoNd8I3pSw= X-Originating-IP: [172.25.0.11] X-ClientProxiedBy: Berlix.phytec.de (172.25.0.12) To Berlix.phytec.de (172.25.0.12) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmphkeLIzCtJLcpLzFFi42JZI8nAo7vjyoY0g51LuS3W7D3HZDH/yDlW i4dX/S1m3mtls1g1dSeLxctZ99gsNj2+xmpxedccNov/e3awW/zdvonF4sUWcQduj52z7rJ7 bFrVyeaxeUm9x4vNMxk9+v8aeHzeJBfAFsVlk5Kak1mWWqRvl8CVsX7eR5aCLbwVl/7vYWpg bOHuYuTkkBAwkZi18AdbFyMXh5DAEiaJj0ueMEE4DxgllvZOZgapYhNQk9j15jUriM0ioCLR v7MZLC4sECKxtuspG4jNKyAocXLmE5YuRg4OZgFNifW79EHCzALyEtvfzmGGKLGV+PxoNTPI fAmBFYwSL28uBkuICOxgknjcbwiSYBZYyihxZ/o3VojzhCU+717DBtGxm0mitb+ZDWSDhECi xM7XciA1QgKyEjfPb2GDqJeXmHbuNTOEHSqx9ct2pgmMwrOQ3DcL4b5ZSO5bwMi8ilEoNzM5 O7UoM1uvIKOyJDVZLyV1EyMopkQYuHYw9s3xOMTIxMF4iFGCg1lJhLerdEOaEG9KYmVValF+ fFFpTmrxIUZpDhYlcd7VHcGpQgLpiSWp2ampBalFMFkmDk6pBsYZOoKqO2f72D1T0c+5cDMi dbqp+/oCT9eetW8+22/vrYl95HHTaVrLogqFF/sdKubrH0gu7drS0pe8uMnq7bTdYWE+T6wM mytede3cJp3bJyL+JDXimOuRtUt5NT31re+l7+dW7b9/X8qZo/vk9eq5wtzBG6wmumpsZY3s 9Xj/dX7R515+PiWW4oxEQy3mouJEAMSAtheXAgAA X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240805_063350_617860_11EFF2BE X-CRM114-Status: GOOD ( 10.38 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add support for TPM for phyBOARD Pollux. Signed-off-by: Benjamin Hahn --- .../dts/freescale/imx8mp-phyboard-pollux-rdk.dts | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) --- base-commit: 17712b7ea0756799635ba159cc773082230ed028 change-id: 20240805-imx8mp-tpm-3df607b1f5f1 Best regards, diff --git a/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts b/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts index 00a240484c25..b5ee4e265d90 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts @@ -103,6 +103,24 @@ reg_vcc_3v3_sw: regulator-vcc-3v3-sw { }; }; +/* TPM */ +&ecspi1 { + #address-cells = <1>; + #size-cells = <0>; + cs-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>; + num-cs = <1>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ecspi1 &pinctrl_ecspi1_cs>; + status = "okay"; + + tpm: tpm_tis@0 { + compatible = "infineon,slb9670", "tcg,tpm_tis-spi"; + reg = <0>; + spi-max-frequency = <38000000>; + status = "okay"; + }; +}; + &eqos { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_eqos>; @@ -300,6 +318,20 @@ &gpio4 { }; &iomuxc { + pinctrl_ecspi1: ecspi1grp { + fsl,pins = < + MX8MP_IOMUXC_ECSPI1_MISO__ECSPI1_MISO 0x80 + MX8MP_IOMUXC_ECSPI1_MOSI__ECSPI1_MOSI 0x80 + MX8MP_IOMUXC_ECSPI1_SCLK__ECSPI1_SCLK 0x80 + >; + }; + + pinctrl_ecspi1_cs: ecspi1csgrp { + fsl,pins = < + MX8MP_IOMUXC_ECSPI1_SS0__GPIO5_IO09 0x00 + >; + }; + pinctrl_eqos: eqosgrp { fsl,pins = < MX8MP_IOMUXC_ENET_MDC__ENET_QOS_MDC 0x2