4.9 GPIO test
How to convert GPIO pin to corresponding value? GPION_IOM = (N-1)*32+M
For example, the 8th pin of J22 (SAI1_TXFS) GPIO (4, 10), then the corresponding node is (4-1) * 32 + 10 = 106
The GPIO test steps are as follows:
1. Dts configuration corresponding pin pin for GPIO mode
2. Export node echo 106 > /sys/class/gpio/export
3. Set direction echo out > /sys/class/gpio/gpio106/direction
4. Set to 1 echo 1 > /sys/class/gpio/gpio106/value
4-9-1 set SAI1_TXFS to gpio func
4.9 GPIO test
27
Summary of Contents for MYD-JX8MX Series
Page 1: ......
Page 12: ...3 2 Program Android image to SD card 12...
Page 16: ...4 1 3 reboot bootloader 4 1 4 disable verity 4 1 DM verity configuration 16...
Page 18: ...4 2 3 choose network Ethernet APP can view more information 4 2 NETWORK test 18...
Page 26: ...4 8 5 Connected 4 8 4G test 26...