From patchwork Wed Aug 7 15:18:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Hahn X-Patchwork-Id: 13756495 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 D5A57C3DA7F for ; Wed, 7 Aug 2024 16:30:55 +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=fG/y08Uq1oz6upS59DiS/TYFILYFeIjTEJMh8RruwLA=; b=s1icLHXkCsid9ySQsygyJHTn6S H9M+W/Di3InzwKldVEdPV9/5JXu6/GwU6mzLrYUXqtbfH7L5p64XsmRCtaPX9qQZRe6kqzYmOOsOO POY5TUa3yiEUPg28JdT7oi9poluD4EGryYVPUYsHMDRWwHxSurG8IFxGgvHBxHRWbmtBrqXQP2mme wuzyA2UgLKKS1SlkiZVq++EBR18SnpUdOtKupguu5N7G03mC/ifevcMKSe1d02Tt9K4ls85d8CYtQ WX0KY7W8klP0tXb6YPqyJIBUF5LaxV+z9ak2Tbu5AwKOMMiixk7wh0ZnKaYkbpuABfCIF+afcW3xh epAychlA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbjYi-00000005h2P-1Nb3; Wed, 07 Aug 2024 16:30:44 +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 1sbiRG-00000005Trv-0Zye for linux-arm-kernel@lists.infradead.org; Wed, 07 Aug 2024 15:18:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; d=phytec.de; s=a4; c=relaxed/simple; q=dns/txt; i=@phytec.de; t=1723043933; x=1725635933; 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=lYKP4jlnJQ6qy18txJgXJHYM8dA1dqMocHmQGEgVKG4=; b=sJp3RhL17qPn0GbNGMrpWViLknwsSUH6QPWT0fLg/he0WVxTRX34QjadtE9bzx3a n29VFjBi2AHw1uJfNhh8xXhl/eY/ytYf/yVatR1ayW23XpEA3z3cDtODnd5/tvZy 6SFmqQ9+ydnXnM+yD2/TEQmBOGvUAqG5g9IqbtnaXKY=; X-AuditID: ac14000a-03e52700000021bc-c0-66b3905c93ec 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 7A.C6.08636.D5093B66; Wed, 7 Aug 2024 17:18:53 +0200 (CEST) Received: from llp-hahn.hahn.test (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; Wed, 7 Aug 2024 17:18:52 +0200 From: Benjamin Hahn Date: Wed, 7 Aug 2024 17:18:45 +0200 Subject: [PATCH v2] arm64: dts: freescale: imx8mp-phyboard-pollux: Add and enable TPM MIME-Version: 1.0 Message-ID: <20240807-imx8mp-tpm-v2-1-d43f1e8f70ac@phytec.de> X-B4-Tracking: v=1; b=H4sIAFSQs2YC/22MwQ7CIBAFf6XZsxhAW8GT/2F60LLIHmgJENKm4 d/Fns07zUtmdkgYCRPcux0iFkq0zA3kqYPJveYPMjKNQXJ55Yr3jPyqfGA5eHYxduC3t7C9FdC EENHSesSeY2NHKS9xO9pF/N6/mSJYGyptuRyU1voR3JZxOhuEsdb6BYpjRp6kAAAA 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=1723043932; l=1781; i=B.Hahn@phytec.de; s=20240126; h=from:subject:message-id; bh=lYKP4jlnJQ6qy18txJgXJHYM8dA1dqMocHmQGEgVKG4=; b=pz9z8SjBnAc8U4WIi3QE5fAAkH4to7rcO48THerSVJ7guPCRvkaJ9omfpvNMCwqsQExz7zfvW KNS1qZRKCgODhrcf7YsrE/whAB9NpQMdHq6TcJZGm2KUp3LNzTDVYg5 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+NgFmphkeLIzCtJLcpLzFFi42JZI8nAoxs7YXOawZF9jBZr9p5jsph/5Byr xcOr/hYz77WyWayaupPF4uWse2wWmx5fY7W4vGsOm8X/PTvYLf5u38Ri8WKLuAO3x85Zd9k9 Nq3qZPPYvKTe48XmmYwe/X8NPD5vkgtgi+KySUnNySxLLdK3S+DKmNt9m73gO2/FzEmX2RsY j3F3MXJySAiYSFzdtpOli5GLQ0hgCZPE5QPXGCGcB4wSD+7fZgSpYhNQk9j15jUriM0ioCJx aPMCFhBbWCBc4u7hLiYQm1dAUOLkzCdAcQ4OZgFNifW79EHCzALyEtvfzmGGKLGV6JgKMV9C 4A6jxISdW8HmiwjsYJJ43G8IkmAWWMoocWf6N1aI84QlPu9ewwbRsZtJYvmKXrANEgKJEjtf y4HUCAnIStw8v4UNol5eYtq518wQdqjE1i/bmSYwCs9Cct8shPtmIblvASPzKkah3Mzk7NSi zGy9gozKktRkvZTUTYygmBJh4NrB2DfH4xAjEwfjIUYJDmYlEd7m8E1pQrwpiZVVqUX58UWl OanFhxilOViUxHlXdwSnCgmkJ5akZqemFqQWwWSZODilGhi1wlYsKTQ6uCb73M+C6VL37L5f ZOMICXkn1v/gaI7NX85jsufyXb55x3MfEJLnM631yXB3t18yVUa7/1uUtvYBt8OTT6ctWit2 7EaeHcPEk4Uz+974B9XNqBUE6oy33nan2Pq7v4/O96ZDOZYJFamZrJ+tOubcm3OXY/PRpZ5z GowXHbflUGIpzkg01GIuKk4EAIHbMPeXAgAA X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240807_081858_370076_5F90404D X-CRM114-Status: GOOD ( 10.73 ) 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 Reviewed-by: Peng Fan --- Changes in v2: - renamed tpm node to tpm@0 - removed num-cs - cleanup pinctrl - Link to v1: https://lore.kernel.org/r/20240805-imx8mp-tpm-v1-1-1e89f0268999@phytec.de --- .../dts/freescale/imx8mp-phyboard-pollux-rdk.dts | 26 ++++++++++++++++++++++ 1 file changed, 26 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..0e8200413557 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,23 @@ reg_vcc_3v3_sw: regulator-vcc-3v3-sw { }; }; +/* TPM */ +&ecspi1 { + #address-cells = <1>; + #size-cells = <0>; + cs-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ecspi1>; + status = "okay"; + + tpm: tpm@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 +317,15 @@ &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 + MX8MP_IOMUXC_ECSPI1_SS0__GPIO5_IO09 0x00 + >; + }; + pinctrl_eqos: eqosgrp { fsl,pins = < MX8MP_IOMUXC_ENET_MDC__ENET_QOS_MDC 0x2