Pin mux of jetson orin nx Does not take effect

I have changed a GPIO (PCC.01) from output to input and also set it to drive 1. but it doesnt take effect I dont know why…
customBoardfile.zip (6.0 KB)
dmesgLog.txt (148.2 KB)

Hi @zawarkhan97

What you need is to use the GPIO as an input, to be able to receive a signal from outside the Jetson?
If that’s the case, your pinumx dtsi file is not right, the node for PCC.01 is set to be an output:

			spi2_miso_pcc1 {
				nvidia,pins = "spi2_miso_pcc1";
				nvidia,function = "rsvd1";
				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>;
			};

Could you update these 2 fields?

nvidia,tristate = <TEGRA_PIN_ENABLE>;
nvidia,enable-input = <TEGRA_PIN_ENABLE>;

Also in your gpio dtsi file, you should move the TEGRA234_AON_GPIO(CC, 1) line to the gpio-input = section.

Regards,

Enrique Ramirez
Embedded SW Engineer at RidgeRun
Contact us: support@ridgerun.com
Developers wiki: https://developer.ridgerun.com
Website: www.ridgerun.com

1 Like

Thanks for the input brother. But I am using it as output. Changing it from PULL NONE to PULL UP or PULL down doesnt effect the pin when I read it from gpioget command

Hi,
For information, do you use Jetpack 6.2? Would like to know which Jetpack version you are using.

I am using JP 6.1.

Could you verify that your PCC1 pin information makes sense with the pinmux?

sudo cat /sys/kernel/debug/pinctrl/2430000.pinmux/pinconf-groups | grep -i -e pcc1

Sorry for late reply I got involved in debugging other issues.
this command returns nothing sir
sudo cat /sys/kernel/debug/pinctrl/2430000.pinmux/pinconf-groups | grep -i -e pcc1
outputPin.txt (33.7 KB)

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