GPIO config:
dtsi file :./bootloader/tegra234-mb1-bct-gpio-p3767-dp-a03.dtsi
when i export the gpio:
iking@iking:~$ sudo cat /sys/kernel/debug/gpio |grep PCC
gpio-328 (PCC.00 )
gpio-329 (PCC.01 )
gpio-330 (PCC.02 )
gpio-331 (PCC.03 |mux ) out hi
gpio-332 (PCC.04 )
gpio-333 (PCC.05 )
gpio-334 (PCC.06 )
gpio-335 (PCC.07 )
root@iking:/home/iking/devmem2# ./devmem2 0x02430028
/dev/mem opened.
Memory mapped at address 0xffff965c6000.
Value at address 0x2430028 (0xffff965c6028): 0x459 0100 0101 1001
root@iking:/home/iking/devmem2# ./devmem2 0x02430048
/dev/mem opened.
Memory mapped at address 0xffffb7cc2000.
Value at address 0x2430048 (0xffffb7cc2048): 0x415 0100 0001 0101
How can the results be different when these two pin configurations are the same? Did I miscalculate my address?
Hi 550399056,
Are you using the devkit or custom board for Orin Nano?
What’s your Jetpack version in use?
550399056:
GPIO config:
Do you configure them as Output/Drive 0
in pinmux spreadsheet?
550399056:
when i export the gpio:
You just print the gpio number in sysfs rather than export the gpio here.
May I know what’s your use case?
0x02430028 is the register for SOC_GPIO24
.
Are you trying to read the pinmux register for PCC.00
?
If so, please run the following command instead.
$ sudo busybox devmem 0x0c302048
now i can export gpio .
i want read the pinmux register for PCC.00
and PCC.02.
sudo busybox devmem 0x0c302048 for GPIO03 GPIO3_PCC.00
sudo busybox devmem 0x0c302028 for GPIO05 GPIO3_PCC.02
two pin configurations are the same ,but the value is not same
Please share the result of above 2 commands.
550399056:
now i can export gpio .
Can you control the GPIO now?
What’s the Jetpack version in use?