# SPI3 issue

**URL:** <https://forums.developer.nvidia.com/t/spi3-issue/347091>\
**Category:** Jetson AGX Orin\
**Tags:** spi\
**Created:** [October 8, 2025, 3:56am UTC](https://forums.developer.nvidia.com/t/spi3-issue/347091 "2025-10-08T03:56:00Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevintseng83](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@kevintseng83](https://forums.developer.nvidia.com/u/kevintseng83)\
**Post date:** [October 8, 2025, 3:56am UTC](https://forums.developer.nvidia.com/t/spi3-issue/347091/1 "2025-10-08T03:56:00Z")

</div>

Hi,

We are trying to use SPI3 to bring up TPM module

Here is the pinmux setting I’m using

spi3\_sck\_py0 {  
nvidia,pins = “spi3\_sck\_py0”;  
nvidia,function = “spi3”;  
nvidia,pull = \<TEGRA\_PIN\_PULL\_NONE\>;  
nvidia,tristate = \<TEGRA\_PIN\_DISABLE\>;  
nvidia,enable-input = \<TEGRA\_PIN\_DISABLE\>;  
nvidia,io-high-voltage = \<TEGRA\_PIN\_DISABLE\>;  
nvidia,lpdr = \<TEGRA\_PIN\_DISABLE\>;  
};

```auto
                    spi3_miso_py1 {
                            nvidia,pins = "spi3_miso_py1";
                            nvidia,function = "spi3";
                            nvidia,pull = <TEGRA_PIN_PULL_NONE>;
                            nvidia,tristate = <TEGRA_PIN_ENABLE>;
                            nvidia,enable-input = <TEGRA_PIN_ENABLE>;
                            nvidia,io-high-voltage = <TEGRA_PIN_DISABLE>;
                            nvidia,lpdr = <TEGRA_PIN_DISABLE>;
                    };

                    spi3_mosi_py2 {
                            nvidia,pins = "spi3_mosi_py2";
                            nvidia,function = "spi3";
                            nvidia,pull = <TEGRA_PIN_PULL_NONE>;
                            nvidia,tristate = <TEGRA_PIN_DISABLE>;
                            nvidia,enable-input = <TEGRA_PIN_DISABLE>;
                            nvidia,io-high-voltage = <TEGRA_PIN_DISABLE>;
                            nvidia,lpdr = <TEGRA_PIN_DISABLE>;
                    };

                    spi3_cs0_py3 {
                            nvidia,pins = "spi3_cs0_py3";
                            nvidia,function = "spi3";
                            nvidia,pull = <TEGRA_PIN_PULL_UP>;
                            nvidia,tristate = <TEGRA_PIN_DISABLE>;
                            nvidia,enable-input = <TEGRA_PIN_DISABLE>;
                            nvidia,io-high-voltage = <TEGRA_PIN_DISABLE>;
                            nvidia,lpdr = <TEGRA_PIN_DISABLE>;

```

and the dtb is as follow

 ![image](https://global.discourse-cdn.com/nvidia/original/4X/7/5/d/75d494b2d0f32a53c2002889d4781450d5d1d054.png)

 ![image](https://global.discourse-cdn.com/nvidia/original/4X/2/c/6/2c6cc4a64ae69a44e91f3e755f93aa89cdc19c88.png)

after modprobe the spi1 CS0 bind correctly

but TPM show timeout

after using scope, turn out the CS0 has no signal after loading module

 ![image](https://global.discourse-cdn.com/nvidia/original/4X/5/6/4/5649360b25ee32eedec87bca4b8541f11d33532e.jpeg)

how can I debug this

Thanks

Kevin

---

<div class="post-metadata">

**Author:** ![JerryChang](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/jerrychang/32/14043_2.png) [@JerryChang](https://forums.developer.nvidia.com/u/JerryChang)\
**Post date:** [October 9, 2025, 7:34am UTC](https://forums.developer.nvidia.com/t/spi3-issue/347091/5 "2025-10-09T07:34:53Z")

</div>

hello kevintseng83,

> [@kevintseng83](#):
>
> after using scope, turn out the CS0 has no signal after loading module

may I know which Jetpack public release verison you’re using?  
could you please dump the device tree settings for quick checking.  
for instance, `$ sudo dtc -I fs -O dts /sys/firmware/devicetree/base > /tmp/123.dts`

---

<div class="post-metadata">

**Author:** ![kevintseng83](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@kevintseng83](https://forums.developer.nvidia.com/u/kevintseng83)\
**Post date:** [October 9, 2025, 8:04am UTC](https://forums.developer.nvidia.com/t/spi3-issue/347091/6 "2025-10-09T08:04:56Z")

</div>

Hi, Jerry

We are using JetPack 6.2 36.4.3

here is the dump file

[123.txt](https://forums.developer.nvidia.com/uploads/short-url/ZM7TSvKd7UZcOI1bjEatOmUDKX.txt) (396.1 KB)

Kevin

---

<div class="post-metadata">

**Author:** ![JerryChang](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/jerrychang/32/14043_2.png) [@JerryChang](https://forums.developer.nvidia.com/u/JerryChang)\
**Post date:** [October 9, 2025, 8:18am UTC](https://forums.developer.nvidia.com/t/spi3-issue/347091/7 "2025-10-09T08:18:09Z")

</div>

hello kevintseng83,

BTW, per your issue description,  
TPM module works normally by switching to SPI1, this is only happened with SPI3?

---

<div class="post-metadata">

**Author:** ![kevintseng83](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@kevintseng83](https://forums.developer.nvidia.com/u/kevintseng83)\
**Post date:** [October 13, 2025, 1:02am UTC](https://forums.developer.nvidia.com/t/spi3-issue/347091/8 "2025-10-13T01:02:27Z")

</div>

> [@JerryChang](#):
>
> TPM module works normally by switching to SPI1, this is only happened wH9

Hi Jerry

Yes, spi1 can bring up TPM normally.

Kevin

---

<div class="post-metadata">

**Author:** ![KevinFFF](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/kevinfff/32/15508_2.png) [@KevinFFF](https://forums.developer.nvidia.com/u/KevinFFF)\
**Post date:** [October 13, 2025, 7:23am UTC](https://forums.developer.nvidia.com/t/spi3-issue/347091/10 "2025-10-13T07:23:48Z")

</div>

Hi kevintseng83,

> [@kevintseng83](#):
>
> Yes, spi1 can bring up TPM normally.

Have you also verified SPI loopback test for SPI3 before connecting with TPM?

> [@kevintseng83](#):
>
> after modprobe the spi1 CS0 bind correctly
> 
> but TPM show timeout

Do you mean there’s no driver probe issue for SPI1 but still the TPM timeout issue?

> [@kevintseng83](#):
>
> here is the dump file
> 
> [123.txt](https://forums.developer.nvidia.com/uploads/short-url/ZM7TSvKd7UZcOI1bjEatOmUDKX.txt) (396.1 KB)

From this device tree you captured, I don’t see any node has been configured for TPM (i.e. no any node handles for `tcg,tpm_tis-spi`)

---

<div class="post-metadata">

**Author:** ![kevintseng83](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@kevintseng83](https://forums.developer.nvidia.com/u/kevintseng83)\
**Post date:** [October 13, 2025, 8:07am UTC](https://forums.developer.nvidia.com/t/spi3-issue/347091/11 "2025-10-13T08:07:03Z")

</div>

> [@JerryChang](#):
>
> sudo dtc -I fs -O dts /sys/firmware/devicetree/base \> /tmp/123.dts

Hi ,Kevin

1. No we didn’t do the loopback test because with think the root cause could be CS pin not triggering, but we can check that too
2. I think timeout issue is the driver probe issue, cs-gpios is configured before tpm node so I think kernel use spi driver first and gpioinfo can show it bind with PY.03 pin correctly, but after that, tpm driver come in and show timeout error

![image](https://global.discourse-cdn.com/nvidia/original/4X/8/1/9/81914dc0306e111f1de3ca49213cd84e62db5a7b.png)

1. Sorry, I forgot I flash this SOM for other testing, here is the correct dtb

---

<div class="post-metadata">

**Author:** ![KevinFFF](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/kevinfff/32/15508_2.png) [@KevinFFF](https://forums.developer.nvidia.com/u/KevinFFF)\
**Post date:** [October 16, 2025, 5:08am UTC](https://forums.developer.nvidia.com/t/spi3-issue/347091/12 "2025-10-16T05:08:37Z")

</div>

> [@kevintseng83](#):
>
> No we didn’t do the loopback test because with think the root cause could be CS pin not triggering, but we can check that too

Yes, I would suggest you verifying SPI loopback test before connecting SPI device like TPM.

> [@kevintseng83](#):
>
> I think timeout issue is the driver probe issue, cs-gpios is configured before tpm node so I think kernel use spi driver first and gpioinfo can show it bind with PY.03 pin correctly, but after that, tpm driver come in and show timeout error

For the driver probe issue, please add more debug message in the driver to find the cause.  
Normally, it may be caused from the wrong configuration in device tree.

```auto
			spi@0 {
				spi-max-frequency = <0x2faf080>;
				compatible = "tcg,tpm_tis-spi";
				reg = <0x00>;
			};

```

You may be missing some configuration for TPM like the interrupt.

---

<div class="post-metadata">

**Author:** ![doanduckhang](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@doanduckhang](https://forums.developer.nvidia.com/u/doanduckhang)\
**Post date:** [October 22, 2025, 5:23pm UTC](https://forums.developer.nvidia.com/t/spi3-issue/347091/13 "2025-10-22T17:23:06Z")

</div>

Hello! We can also consider using SecEdge SEC-TPM, which is an implementation of the NVIDIA fTPM . The document is here: [SEC-TPM™ - SecEdge](https://www.secedge.com/sec-tpm/)

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [November 18, 2025, 8:54am UTC](https://forums.developer.nvidia.com/t/spi3-issue/347091/15 "2025-11-18T08:54:22Z")

</div>

Closed on November 18, 2025, 8:54am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
