JetPack 5.0 DP was installed on Xavier NX (production version) + Dev Kit Carrier board using SDK manager without any modification.
There are two issues about GPIO in this DP version:
-
cat /sys/kernel/debug/gpio
showstegra194-gpio-aon
starts at gpio-305 not gpio 248 as in JP4.6.1.tegra194-gpio
starts at gpio-335 instead of gpio-288 as in JP4.6.1. Also the the gpio-line-names of all gpio are shows as the their SoC GPIO Port #, instead of the things specified in thesources/hardware/nvidia/platform/t19x/jakku/kernel-dts/common/tegra194-p3509-0000-a00.dtsi
. Please find the attached output from gpio.
nvidia@ubuntu:~$ dmesg | grep GPIOs
[ 3.386936] gpiochip0: registered GPIOs 504 to 511 on max77620-gpio
[ 5.236837] gpiochip1: registered GPIOs 335 to 503 on tegra194-gpio
[ 5.238638] gpiochip2: registered GPIOs 305 to 334 on tegra194-gpio-aon
- GPIO doesn’t output high when I set the value. For example: pin29 of J12 always shows 0 V while doing:
root@ubuntu:/home/nvidia# echo 440 > /sys/class/gpio/export
root@ubuntu:/home/nvidia# echo out > /sys/class/gpio/PQ.05/direction
root@ubuntu:/home/nvidia# echo 1 > /sys/class/gpio/PQ.05/value
The same testes shows correct results on JP4.6.1.
gpio_jp5.txt (7.2 KB)
The GPIO pin works as expected if the direction is in
(value is 1 if connect to high and 0 if connected to 0) in JP5.0 DP.
Please help me to check. Thanks!