]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: freescale: imx8mp-phyboard-pollux: Add and enable TPM
authorBenjamin Hahn <B.Hahn@phytec.de>
Fri, 9 Aug 2024 09:02:31 +0000 (11:02 +0200)
committerShawn Guo <shawnguo@kernel.org>
Tue, 13 Aug 2024 08:49:39 +0000 (16:49 +0800)
Add support for TPM for phyBOARD Pollux.

Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Benjamin Hahn <B.Hahn@phytec.de>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts

index 791909dca6e15dcef24965adc90ad9d61219e50f..3427936f904571ddce54b593080aa81d0efded8c 100644 (file)
        };
 };
 
+/* 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>;
 };
 
 &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