4 Internal Interface

4.1 SPI Flash

The ED-CM4IND expands a 4MB SPI Flash via SPI for user data storage. The SPI Flash is connected to the CM4's spi-1 bus, with the following pin definitions:

PinSignalCM4 Pinout
1SPI_CSGPIO16
2SPI_SCKGPIO21
3SPI_MISOGPIO19
4SPI_MOSIGPIO20

4.2 RTC

The ED-CM4IND integrates an RTC. For domestically sold versions, a CR1220 coin cell battery (RTC backup power) is pre-installed to ensure a reliable and uninterrupted clock, unaffected by power loss. The RTC clock chip is connected to the i2c-1 bus with a device address of 0x51.

image-20241223190946448

i2c-1 Bus Pin Definition:

PinSignalCM4 Pinout
1SDA1GPIO2
2SCL1GPIO3

NOTE

Some international logistics do not support battery shipments, so some devices may not include the CR1220 battery. Before using the RTC, ensure a CR1220 coin cell battery is installed on the motherboard.

4.3 Buzzer

The ED-CM4IND integrates a buzzer, controllable via GPIO. The pin definition is as follows:

PinSignalCM4 Pinout
1BEEPGPIO25

4.4 MIPI DSI

The ED-CM4IND includes one MIPI DSI interface, labeled "DSI1," supporting LCD screen expansion. The pin definitions are as follows:

My alt textPin IDPin Name
1GND
2DSI1_D0_N
3DSI1_D0_P
4GND
5DSI1_D1_N
6DSI1_D1_P
7GND
8DSI1_CLK_N
9DSI1_CLK_P
10GND
11SCL0
12SDA0
13GND
143V3
153V3

4.5 MIPI CSI

The ED-CM4IND includes two MIPI CSI interfaces, labeled "CSI1" and "CSI0," supporting Raspberry Pi Camera expansion.

4.5.1 CSI0

The Pin definition are as follows:

My alt textPin IDPin Name
1GND
2DSI1_D0_N
3DSI1_D0_P
4GND
5DSI1_D1_N
6DSI1_D1_P
7GND
8DSI1_CLK_N
9DSI1_CLK_P
10GND
11CAM_GPIO
12
13ID_SC
14ID_SD
153V3

4.5.2 CSI1

The Pin definition are as follows:

My alt textPin IDPin Name
1GND
2DSI1_D0_N
3DSI1_D0_P
4GND
5DSI1_D1_N
6DSI1_D1_P
7GND
8DSI1_CLK_N
9DSI1_CLK_P
10GND
11CAM_GPIO
12NC
13SCL0
14SDA0
153V3

4.6 FPC HDMI

The ED-CM4IND includes one FPC HDMI interface, labeled "HDMI LCD," with reserved USB 2.0 touch signals and PWM backlight control signals, supporting HDMI touchscreens. A 40-pin 0.5mm pitch FPC cable is recommended for connecting LCD screens.

The Pin definition are as follows:

My alt textPin IDPin NamePin IDPin Name
1Y+21GND
2X+22HDMI1_CLKP
3Y-23HDMI1_CLKN
4X-24GND
5GND25BACKLIGHT_PWM
6USB_DP26GND
7USB_DM27GND
8GND28GND
9HDMI1_HPD29GND
10HDMI1_SCL30GND
11HDMI1_SDA31GND
12GND32LCD_PWR_EN
13HDMI1_TX2P335V
14HDMI1_TX2N345V
15GND355V
16HDMI1_TX1P365V
17HDMI1_TX1N375V
18GND385V
19HDMI1_TX0P395V
20HDMI1_TX0N405V

4.7 40-PIN GPIO

The ED-CM4IND includes one 40-pin GPIO header, compatible with Raspberry Pi HAT, supporting various Raspberry Pi expansion accessories. The Pin definitions are as follows:

PinNameIODefinitionConfigured Function
13V3O3.3V--
25VI/O5V--
3PIN3I/OGPIO2I2C1_SDA
45VI/O5V--
5PN5I/OGPIO3I2C1_SDL
6GND--GND--
7PIN7I/OGPIO4TXD3
8PIN8I/OGPIO14TXD0
9GND--GND--
10PIN10I/OGPIO15RXD0
11PIN11I/OGPIO17GPIO17
12PIN12I/OGPIO18BACKLIGHT_PWM
13PIN13I/OGPIO27GPIO27
14GND--GND--
15PIN15I/OGPIO22RELAY
16PIN16I/OGPIO23LCD_PWR_EN
173V3O3.3V--
18PIN18I/OGPIO24FAN_EN
19PIN19I/OGPIO10RST_4G
20GND--GND--
21PIN21I/OGPIO9RXD4
22PIN22I/OGPIO25BEEP
23PIN23I/OGPIO11DIN1
24PIN24I/OGPIO8TXD4
25GND--GND--
26PIN26I/OGPIO7ADC_INT
27PIN27I/OGPIO0ID_SD
28PIN28I/OGPIO1ID_SC
29PIN29I/OGPIO5RXD3
30GND--GND--
31PIN31I/OGPIO6USER BUTTON
32PIN32GPIO12TXD5
33PIN33I/OGPIO13HDMI1_CLKN
34GND--GND--
35PIN35I/OGPIO19SPI_MISO
36PIN36I/OGPIO16SPI_CS
37PIN37I/OGPIO26DIN2
38PIN38I/OGPIO20SPI_MOSI
39GND--GND--
40PIN40I/OGPIO21SPI_SCK

NOTE

Some GPIO pins on the 40-pin header are pre-configured for onboard functions. Please check before use.

4.8 Mini PCIe Interface

The ED-CM4IND includes one Mini PCIe interface, supporting 4G module expansion (optional). Pin Definitions are as follow:

My alt textPin IDPin NamePin IDPin NamePin IDPin Name
1NC21GND413V3
23V322GPIO10 / PCIE_nRST42LED_WWAN
3NC23PCIE_RXN43GND
4GND243V344NC
5NC25PCIE_RXP45NC
6NC26GND46NC
7PCIE_CLK_nREQ27GND47NC
8USIM_VDD28NC48NC
9GND29GND49NC
10USIM_DATA30NC50GND
11GND31PCIE_TXN51NC
12USIM_CLK32NC523V3
13PCIE_CLKP33PCIE_TXP53GND
14USIM_RST34GND54GND
15GND35GND----
16NC36USB_DM----
17NC37GND----
18GND38USB_DP----
19NC393V3----
20NC40GND----

4G Module Reset Pin Definition:

PinSignalCM4 Pinout
1RST_4GGPIO10

4.9 USB 2.0 Pin Header

The ED-CM4IND includes two USB 2.0 pin headers, labeled J44 and J63, with a 4-pin 2.54mm pitch. These can be used to expand USB 2.0 interfaces as needed. Pin Definitions are as follows:

Pin IDPin Name
15V
2D-
3D+
4GND

4.10 UART Pin Header

The ED-CM4IND includes one UART pin header, labeled J58 and named "UART0." It is a TTL-level serial port with a 4-pin 2.54mm pitch, typically used as a debug serial port. Pin Definitions are as follows:

Pin IDPin Name
13.3V
2GND
3TXD0
4RXD0

4.11 2-PIN GPIO Pin Header

The ED-CM4IND provides one GPIO via a 2-pin 2.54mm pitch header, labeled J68 and connected to GPIO27 on the CM4. It can be configured for various purposes. Pin definitions are as follows:

Pin IDPin Name
1GND
2GPIO27

4.12 Micro USB Interface

The ED-CM4IND includes one Micro USB interface, labeled J73 and named "USB PROGRAM," used for eMMC programming. Pin definitions are as follows:

My alt textPin IDPin Name
15V
2D-
3D+
4NC
5GND

4.13 5V 1A Output

The ED-CM4IND includes one 5V 1A power output interface, labeled J72, providing 5V 1A DC output for powering external LCD screens. Pin definitions are as follows:

Pin IDPin Name
15V
2GND

4.14 PoE Pin Header

The ED-CM4IND includes one PoE pin header for connecting PoE HAT modules. Pin definitions are as follows:

Pin IDPin Name
1VC1-
2VC1+
3VC2-
4VC2+

4.15 Fan Pin Header

The ED-CM4IND includes one fan control interface, labeled J67. Pin definitions are as follows:

Pin IDPin Name
15V (no pull-up)
25V (bring pull)
3FAN_EN
4GND
5GND

TIP

FAN_EN is connected to GPIO24 on the CM4. By controlling GPIO24, the fan can be turned on/off and its speed adjusted.