OrinNX SPI CS keep low

Hi Nvidia,

I’m tried to porting NPCT75x on Orin NX .

I got /dev/tpm0 and TPM is work.

But low after into OS. have any suggestions?

OS: Ubuntu 20.04

Device tree and pinmux as below

spi@3210000{ /* SPI1 in 40 pin conn /
cs-gpios = <&tegra_main_gpio TEGRA234_MAIN_GPIO(Z, 6) GPIO_ACTIVE_LOW>;
num-cs = <1>;
status = “okay”;
spidev: tpm@0 { /
chip select 0 /
compatible = “tcg,tpm_tis-spi”;
status = “okay”;
reg = <0x0>;
#address-cells = <1>;
#size-cells = <1>;
spi-max-frequency = <50000000>;
controller-data {
nvidia,enable-hw-based-cs;
nvidia,rx-clk-tap-delay = <0x10>;
nvidia,tx-clk-tap-delay = <0x0>;
};
};
spi@1 { /
chip select 1 */
compatible = “tegra-spidev”;
reg = <0x1>;
spi-max-frequency = <50000000>;
controller-data {
nvidia,enable-hw-based-cs;
nvidia,rx-clk-tap-delay = <0x10>;
nvidia,tx-clk-tap-delay = <0x0>;
};
};
};

pinmux@2430000 {
pinctrl-0 = <0x179>;
pinctrl-names = “default”;
compatible = “nvidia,tegra234-pinmux”;
reg = <0x0 0x2430000 0x0 0x19100 0x0 0xc300000 0x0 0x4000>;
#gpio-range-cells = <0x3>;
status = “okay”;
linux,phandle = <0xab>;
phandle = <0xab>;

	header-40pin-pinmux {
		phandle = <0x179>;
		linux,phandle = <0x179>;
		pin19 {
			nvidia,lpdr = <TEGRA_PIN_DISABLE>;
			nvidia,enable-input = <TEGRA_PIN_ENABLE>;
			nvidia,tristate = <TEGRA_PIN_DISABLE>;
			nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
			nvidia,pins = "spi1_mosi_pz5";
			nvidia,function = "spi1";
		};
		pin21 {
			nvidia,lpdr = <TEGRA_PIN_DISABLE>;
			nvidia,enable-input = <TEGRA_PIN_ENABLE>;
			nvidia,tristate = <TEGRA_PIN_DISABLE>;
			nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
			nvidia,pins = "spi1_miso_pz4";
			nvidia,function = "spi1";
		};
		pin23 {
			nvidia,lpdr = <TEGRA_PIN_DISABLE>;
			nvidia,enable-input = <TEGRA_PIN_ENABLE>;
			nvidia,tristate = <TEGRA_PIN_DISABLE>;
			nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
			nvidia,pins = "spi1_sck_pz3";
			nvidia,function = "spi1";
		};
		pin24 {
			nvidia,lpdr = <TEGRA_PIN_DISABLE>;
			nvidia,enable-input = <TEGRA_PIN_ENABLE>;
			nvidia,tristate = <TEGRA_PIN_DISABLE>;
			nvidia,pull = <TEGRA_PIN_PULL_UP>;
			nvidia,pins = "spi1_cs0_pz6";
			nvidia,function = "spi1";
		};
		pin26 {
			nvidia,lpdr = <TEGRA_PIN_DISABLE>;
			nvidia,enable-input = <TEGRA_PIN_ENABLE>;
			nvidia,tristate = <TEGRA_PIN_ENABLE>;
			nvidia,pull = <TEGRA_PIN_PULL_UP>;
			nvidia,pins = "spi1_cs1_pz7";
			nvidia,function = "spi1";
		};
	};
};

Any suggestions?

Hi kiwe3375,

Could you apply the following patch to check if it could help?
SPI TPM module support fail on jetpack 5.0.2/5.1 on jetson xavier agx - #25 by DaneLLL

1 Like

problem resolved, thank you for your patch.

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