From patchwork Fri Aug 9 09:02:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Hahn X-Patchwork-Id: 13758565 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 2FAA6C52D71 for ; Fri, 9 Aug 2024 09:03:52 +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=wRlvSndsUGLTaqbMxV4jKrUpTIhlzu6+NEBmd6/EGQY=; b=2Nfvy1YBGD2JhaxACqjaD7t3ru XTBoAmarfhJgKmcYsjOi39/FgzvovUOeRNMXVRZXheaCC6qW9kgI7JFkwnLdIBH9FHynAemGBV+1X IU0vK4c1NBlDGQCkiUxyIiHjQRwsIRFdXjhOMeJRrUTxAP8zPQ1F3G9taR59DBOWRcOVYsmP1vHCu rVOIwR1HzkmPEaEJWBi9rzwBurtSg+ZKHQKnaZCiZRxK+l4SOiYs4vyyFYmGW+c2YDSbsSn0Si1k6 Wikh9tv8i6YX9jFG5OZHMLJzyArglsmOOZBmH3oiri0ridYwEqpPxStsQCDiG/mUgiSSyIFqcNwZM caFNbsuw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1scLX8-0000000AlfL-2A4o; Fri, 09 Aug 2024 09:03:38 +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 1scLWP-0000000AlXQ-04Vr for linux-arm-kernel@lists.infradead.org; Fri, 09 Aug 2024 09:02:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; d=phytec.de; s=a4; c=relaxed/simple; q=dns/txt; i=@phytec.de; t=1723194170; x=1725786170; 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=hUutMxc7Exclw5WuhTQlzC/S71ST0PeZg6Nw//eMU10=; b=BQvzHAlZWYHq1V1GMjSicWBtQqcB2qga1v90CP5iJ/24UTyHPXVX/ZtKMc66+kLV qEPzcfCnAf8+2HGQoja014OGT66AFvbcF0XNer3DUQ6peetZk4GGINH4hQP8vnmU 1bT79A/QMjRK2TV5SrGzs58f49z30Ii+m/mVZ2kdpTE=; X-AuditID: ac14000a-03e52700000021bc-46-66b5db3937b4 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 CC.80.08636.93BD5B66; Fri, 9 Aug 2024 11:02:50 +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; Fri, 9 Aug 2024 11:02:49 +0200 From: Benjamin Hahn Date: Fri, 9 Aug 2024 11:02:31 +0200 Subject: [PATCH v3] arm64: dts: freescale: imx8mp-phyboard-pollux: Add and enable TPM MIME-Version: 1.0 Message-ID: <20240809-imx8mp-tpm-v3-1-c1cd80deff16@phytec.de> X-B4-Tracking: v=1; b=H4sIACbbtWYC/23MTQ6DIBCG4asY1qUB/ANXvUfThZWZykIlYIjGe PeOrmzSzOqb5Hk3FiE4iKzJNhYgueimkUZ+y1jXt+MHuLO0mRKqEFqU3A2LHjyf/cBzi5Wo3xJ LlIyAD4BuOWPPF+3exXkK69lO8vj+zSTJ6UAbFKrSxpiH79cZursFdmSSutL6hyqitsiRONai7 a503/cvjL3vZ98AAAA= To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Teresa Remmet CC: , , , , Peng Fan , Benjamin Hahn X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1723194169; l=1993; i=B.Hahn@phytec.de; s=20240126; h=from:subject:message-id; bh=hUutMxc7Exclw5WuhTQlzC/S71ST0PeZg6Nw//eMU10=; b=3blqmdmkHdaXVLvFAjvZZJTgizxxHa2X0wLB6qx0355Z27tKrCewTj/4XM+kVTPBi9qemS1bb gwf+qB5xLqJBSPABywWDaOPyYMkLvgjvT8F3Z6AUAwXUN1pZVXNMgi+ 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+NgFuphkeLIzCtJLcpLzFFi42JZI8nAo2t1e2uawaooizV7zzFZzD9yjtXi 4VV/i5n3WtksVk3dyWLxctY9NotNj6+xWlzeNYfN4seqL6wW//fsYLf4u30Ti8WLLeIOPB47 Z91l99i0qpPNY/OSeo8Xm2cyemx8t4PJo/+vgcfnTXIB7FFcNimpOZllqUX6dglcGdOvrmUu OM1fcb/3K1sDYxNvFyMnh4SAiURr9xkWEFtIYAmTxMbJQV2MXED2A0aJ91dXMYMk2ATUJHa9 ec0KYrMIqEhcvjGTDcQWFgiX+L7zNiOIzSsgKHFy5hOgQRwczAKaEut36YOEmQXkJba/ncMM UWIr8fLBURaQ+RICvxklNi7fD9YrIrCDSeJxvyFIglngEKPEoq6TLBDXCUt83r2GDaJjN5PE 7R87WUE2SAgkSux8LQdxtazEzfNb2CDq5SWmnXvNDGGHSmz9sp1pAqPwLCT3zUK4bxaS+xYw Mq9iFMrNTM5OLcrM1ivIqCxJTdZLSd3ECIoxEQauHYx9czwOMTJxMALdx8GsJMLbHL4pTYg3 JbGyKrUoP76oNCe1+BCjNAeLkjjv6o7gVCGB9MSS1OzU1ILUIpgsEwenVAOjlobl7Jd3Zmhz 3rwQ2dr6a5nO1PbIRQdeNd3aO9XhgObTB+y3l0R/Nf5xnu///mWzdmzZ+b6nyFijqlg7ed4B 94QjV1yc5ocxKhf86lcpiDO/cShvqq1czk8v8+3sZumXNn01SDll9scsY1luXdjSizPXv33S dD5iWq7xuX09cdUbHm8wEWV9rMRSnJFoqMVcVJwIALBf8GafAgAA X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240809_020253_237080_1451F67E X-CRM114-Status: GOOD ( 10.99 ) 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. Reviewed-by: Peng Fan Reviewed-by: Fabio Estevam Signed-off-by: Benjamin Hahn Reviewed-by: Krzysztof Kozlowski --- Changes in v3: - remove status okay for tpm node - Link to v2: https://lore.kernel.org/r/20240807-imx8mp-tpm-v2-1-d43f1e8f70ac@phytec.de 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 | 25 ++++++++++++++++++++++ 1 file changed, 25 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..09bd10627b11 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,22 @@ 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>; + }; +}; + &eqos { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_eqos>; @@ -300,6 +316,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