DTS DTSI file issue

Could you please explain what value of “nvidia,function =” if we need to configure pin as GPIO (output)?

We are using “Jetson_Orin_NX_and_Orin_Nano_series_Pinmux_Config_Template_V0.3.xlsm” to generate DTSI/DTS file. The pin functions are not correctly reflected in DTS/DTSI file. Could you please guide why it is happening. For GPIOs it is giving “vi0” for some pins and “rsvd1” for the others pins?

Hi yashodip.c,

Normally, it should be rsvd* for GPIO usage.

Could you provide some examples for the exact pin you want to configure?
pinmux spreadsheet should generate the correct pinmux/gpio dtsi for pinmux register.

We want to configure PP.06 as output, we have configure as below,
image

when we generate DTSI, nvidia,function = “vi0”; and it is not working as output on our customs board. We are not able to Set/Reset this out put.
It’s DTSI configuration is as below,

soc_gpio25_pp6 {
nvidia,pins = “soc_gpio25_pp6”;
nvidia,function = “vi0”;
nvidia,pull = <TEGRA_PIN_PULL_NONE>;
nvidia,tristate = <TEGRA_PIN_DISABLE>;
nvidia,enable-input = <TEGRA_PIN_DISABLE>;
nvidia,io-high-voltage = <TEGRA_PIN_ENABLE>;
nvidia,lpdr = <TEGRA_PIN_DISABLE>;

You can check Column Q to Column U in pinmux spreadsheet for its available nvidia,function

What do you mean about “it is not working”?
Do you mean that the pin can not be controlled through gpiod?
If so, please share the detailed steps how did you control this pin.

You can also run the following command to check if any driver is using this pin.

$ sudo cat /sys/kernel/debug/gpio|grep PP.06

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