Gpio Test - Advantech ROM-5620 User Manual

Nxp i.mx8x cortex-a35 smarc 2.0/2.1 computer-on-module
Table of Contents

Advertisement

Connect cable and ping test (eg. eth1)
root@imx8qxrom5620a1:~# ping -I eth1 8 . 8 . 8 . 8
PING 8 . 8 . 8 . 8 (8 . 8 . 8 . 8) from 172 . 22 . 28 . 48 eth1: 56 (84) bytes
of data.
64 bytes from 8 . 8 . 8 . 8: icmp_seq=1 tt1=54 time=3.36 ms
64 bytes from 8 . 8 . 8 . 8: icmp_seq=2 tt1=54 time=3.15 ms
64 bytes from 8 . 8 . 8 . 8: icmp_seq=3 tt1=54 time=3.18 ms
^C
- - - 8 . 8 . 8 . 8 ping statistics - - -
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 3.157 / 3.235 / 3.363 / 0.091 ms
root@imx8qxrom5620a1:~#
4.1.11

GPIO Test

GPIO pin
SMARC
SMARC Pin Name
Pin #
P108
GPIO0 / CAM0_PWR# SC_P_SPI2_CS0_LSIO_GPIO1_IO00 448
P109
GPIO1 / CAM1_PWR#
P110
GPIO2 / CAM0_RST#
P111
GPIO3 / CAM1_RST#
P112
GPIO4 / HAD_RST#
P113
GPIO5 / PWM_OUT
P114
GPIO6 / TACHIN
P115
GPIO7
P116
GPIO8
P117
GPIO9
P118
GPIO10
P119
GPIO11
Loop-back Test (Take GPIO4 and GPIO5 as examples)
Step 1: Connect GPIO4 and GPIO5
Step 2: Export GPIO interface
root@imx8qxprom5620a1 : ~#
root@imx8qxprom5620a1 : ~#
Step 3: Set direction
root@imx8qxprom5620a1 : ~#
root@imx8qxprom5620a1 : ~#
ROM-5620 User Manual
CPU Ball Name
SC_P_SPI2_SCK_LSIO_G-
PIO1_IO03
SC_P_SPI2_SDI_LSIO_GPIO1_IO02 450
SC_P_SPI2_SDO_LSIO_G-
PIO1_IO01
SC_P_SPI0_CS0_LSIO_GPIO1_IO08 456
SC_P_SPI0_SCK_LSIO_G-
PIO1_IO04
SC_P_SPI0_SDI_LSIO_GPIO1_IO05 453
SC_P_MCLK_IN0_LSIO_G-
PIO0_IO19
SC_P_SPI0_SDO_LSIO_G-
PIO1_IO06
SC_P_CSI_PCLK_LSIO_G-
PIO3_IO00
SC_P_CSI_MCLK_LSIO_G-
PIO3_IO01
SC_P_CSI_EN_LSIO_GPIO3_IO02
echo
456
>
/sys/class/gpio/export
echo
452
>
/sys/class/gpio/export
echo
out
>
/sys/class/gpio/gpio1/direction
echo
in
>
/sys/class/gpio/gpio2/direction
30
Default
Number
Direction
In
451
In
In
449
In
In
452
In
In
499
In
454
In
384
In
385
In
386
In

Advertisement

Table of Contents
loading

Table of Contents