Hello,
I have a Jetson Nano OKdo C100. I didn’t know the internal pull-up resistors could be disabled.
Now I’d like to disable the pull-ups on all gpios (not SFIO like I2C), and even activate them as pull-downs.
I have tried creating the overlay dts file, trying on the board’s pin 33, which I found through python with Jetson.GPIO that it was gpio38, and TEGRA_SOC’s GPIO_PE6. And I added the custom.dtbo in extconfig as well.
Here’s what I tried to build and apply for testing:
/dts-v1/;
/plugin/;
/ {
overlay-name = "test";
compatible = "nvidia,p3449-0000-b00+p3448-0002-b00", "nvidia,jetson-nano", "nvidia,tegra210";
jetson-header-name = "Jetson 40pin Header";
fragment@0 {
target = <&pinmux>;
__overlay__ {
header-40pin-pinmux {
pe6 {
nvidia,pins = "pe6";
nvidia,function = "rsvd0";
nvidia,pull = <0x1>;
nvidia,tristate = <0x0>;
nvidia,enable-input = <0x1>;
};
};
};
};
};
If I remove nvidia,function, I’m able to build the dtbo and apply, but of course, the overlay isn’t effective and my board’s pin 33 is still pulled up.
If I leave the function property, I can build the dtbo, but jetson-io.py returns the error that it cannot find the pin number for the node /fragment@0/_overlay_/header-40pin-pinmux/pe6.
And in the currently effective dtb file, I can find pe6 in unused-lowpower.
What am I doing wrong, please?
Thank you in advance,
Tom