Skip to content

Commit 9db27bc

Browse files
ivitroShawn Guo
authored andcommitted
arm64: dts: imx8mm-verdin: add TPM device
Add TPM device found on Verdin iMX8M Mini PID4 0090 variant. While adding the node, rename `pinctrl_pmic_tpm_ena` to `pinctrl_tpm_spi_cs`. Signed-off-by: Vitor Soares <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
1 parent 710bdbe commit 9db27bc

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -228,15 +228,16 @@
228228
pinctrl-0 = <&pinctrl_ecspi2>;
229229
};
230230

231-
/* Verdin CAN_1 (On-module) */
231+
/* On-module SPI */
232232
&ecspi3 {
233233
#address-cells = <1>;
234234
#size-cells = <0>;
235-
cs-gpios = <&gpio5 25 GPIO_ACTIVE_LOW>;
235+
cs-gpios = <&gpio5 25 GPIO_ACTIVE_LOW>, <&gpio4 19 GPIO_ACTIVE_LOW>;
236236
pinctrl-names = "default";
237-
pinctrl-0 = <&pinctrl_ecspi3>;
237+
pinctrl-0 = <&pinctrl_ecspi3>, <&pinctrl_tpm_spi_cs>;
238238
status = "okay";
239239

240+
/* Verdin CAN_1 */
240241
can1: can@0 {
241242
compatible = "microchip,mcp251xfd";
242243
clocks = <&clk40m>;
@@ -246,6 +247,12 @@
246247
reg = <0>;
247248
spi-max-frequency = <8500000>;
248249
};
250+
251+
verdin_som_tpm: tpm@1 {
252+
compatible = "atmel,attpm20p", "tcg,tpm_tis-spi";
253+
reg = <0x1>;
254+
spi-max-frequency = <36000000>;
255+
};
249256
};
250257

251258
/* Verdin ETH_1 (On-module PHY) */
@@ -808,8 +815,7 @@
808815
pinctrl-0 = <&pinctrl_gpio1>, <&pinctrl_gpio2>,
809816
<&pinctrl_gpio3>, <&pinctrl_gpio4>,
810817
<&pinctrl_gpio7>, <&pinctrl_gpio8>,
811-
<&pinctrl_gpio_hog1>, <&pinctrl_gpio_hog2>, <&pinctrl_gpio_hog3>,
812-
<&pinctrl_pmic_tpm_ena>;
818+
<&pinctrl_gpio_hog1>, <&pinctrl_gpio_hog2>, <&pinctrl_gpio_hog3>;
813819

814820
pinctrl_can1_int: can1intgrp {
815821
fsl,pins =
@@ -1111,7 +1117,7 @@
11111117
};
11121118

11131119
/* control signal for optional ATTPM20P or SE050 */
1114-
pinctrl_pmic_tpm_ena: pmictpmenagrp {
1120+
pinctrl_tpm_spi_cs: tpmspicsgrp {
11151121
fsl,pins =
11161122
<MX8MM_IOMUXC_SAI1_TXD7_GPIO4_IO19 0x106>; /* PMIC_TPM_ENA */
11171123
};

0 commit comments

Comments
 (0)