Skip to main content

Interfaces and Mapping

This page provides detailed specifications for all interfaces on the IRIV EdgeAI CM5 and their GPIO/system mappings.

Pin and Interface Mapping Summary

FunctionRaspberry Pi CM5 Mapping
RS485/dev/ttyACM0
Digital Input DI0GPIO22
Digital Input DI1GPIO27
Digital Output DO0GPIO23
Digital Output DO1GPIO24
LED Lighting Driver L0GPIO12
LED Lighting Driver L1GPIO13
User ButtonGPIO4
User LED0GPIO20
User LED1GPIO21
Active BuzzerGPIO19
mPCIe Reset (Active Low)GPIO5
mPCIe PowerGPIO6
USB-C DebugUART0
OLED DisplayI2C1 (Address: 0x3C)
Secure AuthenticationI2C1 (Address: 0x60)

Ethernet

PortInterfaceSpeedOS Mapping
eth0Native CM5 Gigabit Ethernet10/100/1000Meth0
eth1USB 3.0 to Gigabit Ethernet Controller10/100/1000Meth1

USB Ports

USB 3.0

ParameterSpecification
Quantity2 ports
Speed5 Gbps (SuperSpeed)
ConnectionBoth ports share a USB 3.0 Hub

USB-C

ParameterSpecification
Quantity1 port
Boot ModeOS image loading to eMMC
Run ModeConnected to CM5 UART0 via USB-UART chip (console/debug)
Power Input5V 5A (PD capable)
Mode SelectionVia internal Boot/Run switch

HDMI

ParameterSpecification
Quantity1 port
ConnectorFull-size Type-A
StandardHDMI 2.0
Maximum Resolution4K @ 60Hz

MIPI Camera Ports

ParameterSpecification
Quantity2 ports (MIPI0, MIPI1)
Connector22-way MIPI
FunctionCSI Camera input

Terminal Block Interfaces

Power Supply Input (VIN)

ParameterMinMaxUnit
Voltage1030VDC
Surge Protection-60V for 20ms-
Fuse-4A-

Isolated RS485

ParameterSpecification
Device/dev/ttyACM0
Maximum Baud Rate500 kbps
Isolation Voltage5000 Vrms
Termination Resistor120 ohm (onboard)
Direction ControlAutomatic
ConnectionsA, B, GND (GND recommended for noise immunity)

Isolated Bidirectional Digital Input

ParameterSpecification
Quantity2 channels (DI0, DI1)
Common PinS/S (Sink/Source)
Low Level (VIL)0 - 0.8V
High Level (VIH)3 - 50V
Isolation Voltage3750 Vrms
Sensor CompatibilityPNP and NPN sensors
GPIO MappingDI0: GPIO22, DI1: GPIO27

Isolated Bidirectional Digital Output

ParameterSpecification
Quantity2 channels (DO0, DO1)
TypeDry contact (solid state relay)
Maximum Voltage50V (DC or AC)
Maximum Current500mA per channel
Isolation Voltage1500 Vrms
GPIO MappingDO0: GPIO23, DO1: GPIO24

Note: For inductive loads (relays, solenoids), connect a flyback diode in parallel with the load to reduce EMI.

LED Lighting Driver

ParameterSpecification
Quantity2 channels (L0, L1)
TypeWet contact (MOSFET)
Output VoltageSame as VIN
Maximum Current2A per channel
PWM CapableYes
Fuse2A (independent, replaceable)
GPIO MappingL0: GPIO12, L1: GPIO13
caution

LED Driver outputs are not powered when using USB-C power input. Use VIN terminal power for LED driver functionality.

Buttons

ButtonGPIOFunction
User ButtonGPIO4User programmable
Power Button-Single press: On. Double-press: Soft shutdown. Long-press: Force shutdown.

LEDs

LEDGPIOFunction
LED0GPIO20User programmable
LED1GPIO21User programmable
PWR-CM5 power indicator
ACT-CM5 activity indicator
M.2-NVMe SSD activity
4G PWR-4G module power indicator
WWAN-4G WWAN activity

Active Buzzer

ParameterSpecification
TypeActive piezo buzzer
GPIOGPIO19
ActivationOutput HIGH to activate

Expansion Sockets

M.2 Key-M Socket

ParameterSpecification
InterfacePCIe Gen 2, 1-lane
Supported Sizes2230, 2242
FunctionNVMe SSD (Bootable)
NoteM.2 SATA SSD is not supported

Mini PCIe Socket

ParameterSpecification
InterfaceUSB 2.0 only (No PCIe signal)
Use Case4G/LTE modules, LoRa modules
Power ControlGPIO6
Reset ControlGPIO5 (active low)
SIM SupportMicro SIM socket on right panel

PCIe Port for AI HAT+

ParameterSpecification
InterfacePCIe (similar to Raspberry Pi 5)
FunctionRaspberry Pi AI HAT+ connection
GPIO Header5V, 3V3, GND, ID_SC, ID_SD

I2C Devices

DeviceI2C BusAddress
SSD1315 OLED DisplayI2C10x3C
ATECC608B Secure AuthI2C10x60

Wireless

ParameterSpecification
WiFi2.4GHz / 5.0GHz IEEE 802.11 b/g/n/ac
BluetoothBluetooth 5.0, BLE
AntennaExternal antenna (included)
Disable OptionSolder jumper on internal board (WL/BT)