Job Recruitment Website - Job information - What is the calculation method of AM5728 GPIO?

What is the calculation method of AM5728 GPIO?

Hello, the calculation method of GPIO is as follows: the starting serial number of GPIO3 is 64, so the serial number of GPIO3_20 is 84. You can use ls -al to view the directory under /sys/class/gpio/gpiochipX, where the file pointed by the device indicates which gpio the directory belongs to. For example, ls/sys/class/gpio/gpiochip64/-al can see that the device points to 48057000.gpio, which means that the serial number of gpio3_0 is 64, and all other IOs of gpio3 are up on the basis of 64.

If in doubt, please contact our technical support engineer in time to avoid affecting the development progress. I hope it helps you.