• Hardware Platform (Jetson / GPU) Jetson Orin NX • JetPack Version (valid for Jetson only) 5.1 Developer’s Preview
Hi,
I’m developing a camera driver and I need to configure the reset GPIO for the sensor. Even though I’ve already set the correct GPIOs configuration in the driver and device tree I’m still unable to set the GPIO output to high . Whenever I set an output pin to high nothing happens “electrically” and if I check the output of cat /sys/kernel/debug/gpio the GPIOs are not set to high.
gpio-397 (PH.06 |cam_reset_gpio ) out lo
gpio-486 (PAC.00 |cam_reset_gpio ) out lo
I’ve only been able to activate the GPIOs by manually exporting and setting the value of the GPIO required
echo 397 > /sys/class/gpio/export
echo out > /sys/class/gpio/PH.06/direction
echo 1 > /sys/class/gpio/PH.06/value
echo 486 > /sys/class/gpio/export
echo out > /sys/class/gpio/PAC.00/direction
echo 1 > /sys/class/gpio/PAC.00/value
nvidia@nvidia-desktop:~$ sudo cat /sys/kernel/debug/gpio
gpio-397 (PH.06 |sysfs ) out hi
gpio-486 (PAC.00 |sysfs ) out hi
Is it a known bug on the Jetson Orin NX? Or in JetPack 5.1?
Also, is there a known method to install the quality release version JetPack 5.0.2 on the Orin NX? (I’ve seen that it is not available in the SDKmanager)
since you’re able to activate the GPIOs by manually,
may I know how you toggle the pins through kernel driver and device tree?
please share the code snippets for reference, thanks
I’ve experience some issue with this GPIO marco. i.e. reset-gpios = <&tegra_main_gpio CAM0_PWDN GPIO_ACTIVE_HIGH>;
this is TEGRA234_MAIN_GPIO(H, 6), the GPIO number can be obtain as below… $ sudo cat /sys/kernel/debug/gpio | grep H.6 gpio-397 (PH.06 |camera-control-outpu) out lo
please replace the marco with GPIO number directly.
such as … reset-gpios = <&tegra_main_gpio 397 GPIO_ACTIVE_HIGH>;