23
ROM-5720 User Manual
Chapter 4
S
oftware
Functionality
4.1.11
GPIO Test
GPIO pin
Loopback test (Take GPIO4 and GPIO5 as an example)
Step 1: Connect GPIO4 and GPIO5
Step 2: Export GPIO interface
Step 3: Set direction
Step 4: Read value and set output value than check
4.1.12
Watchdog Test
System will reboot after 1 sec
SMARC Pin # SMARC Pin Name
CPU Ball Name
Kernel
GPIO
Default
Direction
P108
GPIO0/CAM0_PWR MX8MQ_IOMUXC_GPIO1_IO03 3
In
P109
GPIO1/CAM1_PWR MX8MQ_IOMUXC_GPIO1_IO05 125
In
P110
GPIO2/CAM0_RST MX8MQ_IOMUXC_SAI3_RXC
5
In
P111
GPIO3/CAM1_RST MX8MQ_IOMUXC_GPIO1_IO06 6
In
P112
GPIO
MX8MQ_IOMUXC_GPIO1_IO00 0
In
P113
GPIO5
MX8MQ_IOMUXC_SPDIF_RX
132
In
P114
GPIO6
MX8MQ_IOMUXC_SAI5_RXFS
83
In
P115
GPIO7
MX8MQ_IOMUXC_SAI5_RXD0
85
In
P116
GPIO8 MX8MQ_IOMUXC_GPIO1_IO08 8
In
P117
GPIO9 MX8MQ_IOMUXC_SAI5_RXD2
87
In
P118
GPIO10 MX8MQ_IOMUXC_SAI3_RXFS
124
In
P119
GPIO11
MX8MQ_IOMUXC_SAI1_RXFS
96
In
root@imx8mqrom5720a1 : ~# echo 0 > /sys/class/gpio/export
root@imx8mqrom5720a1 : ~# echo 132 > /sys/class/gpio/export
root@imx8mqrom5720a1 : ~# echo out > /sys/class/gpio/gpio1/direction
root@imx8mqrom5720a1 : ~# echo in > /sys/class/gpio/gpio2/direction
root@imx8mqrom5720a1 : ~# cat /sys/class/gpio/gpio2/value
1
root@imx8mqrom5720a1 : ~# echo 0 > /sys/class/gpio/gpio1/value
root@imx8mqrom5720a1 : ~# cat /sys/class/gpio/gpio2/value
0
root@imx8mqrom5720a1 : ~# /unit_tests/Watchdog/wdt_driver_test.out 1 2 0
- - - - Running < /unit_tests/watchdog/wdt_driver_test.out > test - -
- -
Starting wdt_driver (timeout: 1, sleep: 2, test: ioct1)
Trying to set time out value=1 seconds
Summary of Contents for ROM-5720
Page 1: ...User Manual ROM 5720 Arm Based SMARC 2 0 Module with NXP i MX8M Arm Cortex A53 Processor...
Page 6: ...ROM 5720 User Manual vi...
Page 8: ...ROM 5720 User Manual viii...
Page 16: ...ROM 5720 User Manual 8...
Page 17: ...Chapter 3 3 Pin Definition This chapter details the pin defini tions of ROM 5720...
Page 22: ...ROM 5720 User Manual 14...