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: 13758564 Received: from mickerik.phytec.de (mickerik.phytec.de [91.26.50.163]) (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 5401518FC86 for ; Fri, 9 Aug 2024 09:02:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.26.50.163 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723194175; cv=none; b=DIVm6xoYlHFjJKcCDzRHWbG6N+zHYq7AOOhPlBV5zcyh8hXtf44nOsXchXhQlr1p3LkYFRIdrN6A+s6jAoe9mDJVuTWU9x4A/qsQppHEymWt4HzjNOwHl3HA6VnLGnP+cPQUX2dmIOV/DR0RqSR/jRWdOAG279guiR58XK/C+OU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723194175; c=relaxed/simple; bh=hUutMxc7Exclw5WuhTQlzC/S71ST0PeZg6Nw//eMU10=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:To:CC; b=c6NPrvsHkudacckstWNlogAYJGMWObtl3jnU+c713XHSnficws1oMMpFjXsMfxpuIQMMypp0z8vb2aVhgzaCzZfmFsTH5Ol3KRWTNqglR3pqkQouT3xe+XdPcD16UXEF7AaZ4DSQoTc0Wgz7CQPwsQ3krCaP1jsWOJel3Dl/1x0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=phytec.de; spf=pass smtp.mailfrom=phytec.de; dkim=pass (1024-bit key) header.d=phytec.de header.i=@phytec.de header.b=BQvzHAlZ; arc=none smtp.client-ip=91.26.50.163 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=phytec.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=phytec.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=phytec.de header.i=@phytec.de header.b="BQvzHAlZ" 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 Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: 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-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 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