Pinout
The figure below shows the default functions of the IQ-8275 EVK 40-pin LS connector.

GPIOs
The following commands require root privileges. Use
sudo su to switch to the root user.Identify GPIO Subsystem Numbers
Identify the base GPIO number by running the following command and looking forplatform/f000000.pinctrl (gpiochip4). For IQ-8275, the base is 560.

Control GPIOs via sysfs
Configure direction and value
| Attribute | Values |
|---|---|
direction | in (input), out (output) |
value | 0 (low), 1 (high) |
edge | rising, falling, both, none |
GPIO Code Examples
- C
- Python
UART
Pins 5 and 7 are configured for UART by default (GPIO lines 54 and 55, mapping touart12 = qup1_se5 (0xa98000)).
Follow the Modify serial engine node procedure to enable the UART interface. After enabling, the device node appears at /dev/ttyHS3.
- Shell
I2C
Pins 8 and 10 are configured for I2C by default (GPIO lines 32 and 33, mapping toi2c4 = qup0_se4 (0x990000)).
Follow the Modify serial engine node procedure to enable the I2C interface.
SPI
Pins 11 and 13 are configured for SPI by default (GPIO lines 44 and 45, mapping tospi10 = qup1_se3 (0xa8c000)).
Follow the Modify serial engine node procedure to enable the SPI interface.

