*** Please note that this reply is generated by LLM automatically ***
I’d be happy to help you with your question.
Firstly, it’s great that you’re using a device tree overlay to configure the GPIO pins on your Jetson AGX Orin module. The device tree is a powerful tool for configuring the hardware on your module.
Regarding your question, not all GPIO pins that work as input from the 40-pin header support pull-up or pull-down configurations. The support for pull-up or pull-down configurations depends on the specific GPIO pin and its configuration.
In your case, you’ve successfully set pin 13 from PWM to input with a pull-up configuration using the device tree overlay. However, when you try to set other pins that are already configured as input by default to pull-up, it doesn’t get reflected in the readings.
To answer your question, the proper device tree overlay configuration for enabling pull-up or pull-down on GPIO pins that work as input from the 40-pin header depends on the specific GPIO pin and its configuration.
Here are some general guidelines:
- Check the Jetson AGX Orin module’s datasheet or documentation to see which GPIO pins support pull-up or pull-down configurations.
- Use the
nvidia,pull property in your device tree overlay to specify the pull-up or pull-down configuration for a specific GPIO pin. For example:
fragment@0 {
target = <&gpio>;
__overlay__ {
hdr40maingpios {
pin-13 {
nvidia,pull = <2>; /* pull-up */
};
};
};
};
In this example, the nvidia,pull property is set to <2>, which enables pull-up on pin 13.
- Make sure to use the correct GPIO pin number and configuration in your device tree overlay. You can use the
gpio command-line tool to verify the GPIO pin configuration on your module.
Comparing your device tree overlay configuration for pin 13, it looks like you’re using the correct syntax and properties. However, you may want to double-check the GPIO pin number and configuration to ensure that it matches the documentation and your module’s configuration.
If you’re still having issues, you may want to try using the gpio command-line tool to verify the GPIO pin configuration on your module. You can also try using a different pull-up or pull-down configuration to see if it makes a difference.
I hope this helps! Let me know if you have any further questions or need more assistance.
*** Please give the thumbs up if you get answers you like. Or provide feedback to help us improve the answer. ***