I have been trying to get the GPIOs on my Jetson Orin Nano Dev kit system to set pins to be GPIO and then work with either C or Python code as GPIOs. I need to use some GPIOs to indicate which backkplane slot the carrier card is in, and so what functions should be executed on this instance. I also need to send enable signals to remove hardware that is only looking for a state, not a communication protocol.
The visual demonstration of output from the jetson-io tool as shown in Configuring the Jetson Expansion Headers — NVIDIA Jetson Linux Developer Guide is exactly what I need.
However I do not get that set of options. I just get a list indicating which of the existing non-gpio options I wish to have active.
I have tried hand coding an overlay block for the 40 pin header, but while the examples show that collections such as:
touch_clk_pcc4 {
nvidia,pins = "touch_clk_pcc4";
nvidia,function = "gp";
nvidia,pull = <TEGRA_PIN_PULL_NONE>;
nvidia,tristate = <TEGRA_PIN_ENABLE>;
nvidia,enable-input = <TEGRA_PIN_DISABLE>;
nvidia,io-high-voltage = <TEGRA_PIN_ENABLE>;
nvidia,lpdr = <TEGRA_PIN_DISABLE>;
ought to be viable, The dtc gives me a fatal error on the nvidia.function line.
In order to figure out which nvidia.pins name to use, I had to go look at column V of the pinmux spreadsheet (normally hidden) but even so, the effect is not satisfactory, I can get GPIO7 on pin 9 to give me an appropriate waveform on a scope. The rest seem to be showing 60 cycle noise (apparently from the power supply ground) and only occasionally showing an output level change that matches the desired 1/2 Hz test pattern.
What I want is a way to get the with-GPIO version of jetson-io.py to execute and actually have an overlay that functions.
