-
Notifications
You must be signed in to change notification settings - Fork 615
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
platform: add Radxa CM3 platform support
Signed-off-by: Nascs <nascs@radxa.com> Co-authored-by: ZHANG Yuntian <yt@radxa.com>
- Loading branch information
Showing
10 changed files
with
332 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
Radxa CM3 {#_Radxa} | ||
========= | ||
|
||
The Radxa CM3 is a System on Module (SoM) based on the Rockchip RK3566 System on Chip (SoC). CM3 integrates the Central Process Unit (CPU), Power Management Unit (PMU), DRAM memory, flash storage and wireless connectivity (WiFi 5 and BT 5.0) in a small form factor of just 55mm x 40mm. CM3 uses 3x 100P 0.4mm-pitch Board-to-Board connectors to export various features, and can be combined with the customer's baseboard to build complete products, thereby speeding up the research and development process. | ||
Currently, CM3 is compatible with Radxa CM3 IO Board and Raspberry Pi CM4 IO Board. | ||
|
||
Interface notes | ||
--------------- | ||
|
||
- UART2 is enabled as the default console. | ||
- All UART ports support baud up to 1500000. | ||
|
||
Pin Mapping | ||
----------- | ||
|
||
Radxa CM3 IO Board and Raspberry Pi CM4 IO Baseboard's 40-pin expansion header are compatible. The following pinout applies to both products: | ||
|
||
| Function3| Function3| Function2| Function1| PIN | PIN | Function1| Function2| Function3| | ||
|-------------|------------|-------------|----------|:------|------:|-----------|-------------|----------| | ||
| | | | 3V3| 1 | 2 | +5.0V| | | | ||
| PWM2_M1|SPI0_MOSI_M0| I2C2_SDA_M0| GPIO0_B6| 3 | 4 | +5.0V| | | | ||
| PWM1_M1| SPI0_CLK_M0| I2C2_SCL_M0| GPIO0_B5| 5 | 6 | GND| | | | ||
| | | | GPIO3_D5| 7 | 8 | GPIO0_D1| UART2_TX_M0| | | ||
| | | | GND| 9 | 10 | GPIO0_D0| UART2_RX_M0| | | ||
| | | PWM0_M1| GPIO0_C7| 11 | 12 | GPIO3_C7| | | | ||
| | | PWM0_M0| GPIO0_B7| 13 | 14 | GND| | | | ||
| | | PWM4| GPIO0_C3| 15 | 16 | GPIO3_D4| | | | ||
| | | | +3.3V| 17 | 18 | GPIO3_D3| | | | ||
| | I2C4_SDA_M0| SPI3_MOSI_M0| GPIO4_B2| 19 | 20 | GND| | | | ||
| | | SPI3_MISO_M0| GPIO4_B0| 21 | 22 | GPIO3_C6| | | | ||
| | I2C4_SCL_M0| SPI3_CLK_M0| GPIO4_B3| 23 | 24 | GPIO4_A6| SPI3_CS0_M0| | | ||
| | | | GND| 25 | 26 |SARADC_VIN3| | | | ||
| | | I2C2_SDA_M1| GPIO4_B4| 27 | 28 | GPIO4_B5| I2C2_SCL_M1| | | ||
| | | | GPIO4_B1| 29 | 30 | GND| | | | ||
| | PWM6| SPI0_MISO_M0| GPIO0_C5| 31 | 32 | GPIO4_C0| UART5_TX_M1| | | ||
| | PWM7_IR| SPI0_CS0_M0| GPIO0_C6| 33 | 34 | GND| | | | ||
| | | | GPIO3_D0| 35 | 36 | GPIO4_A7| SPI3_CS1_M0| | | ||
| | | PWM3_IR| GPIO0_C2| 37 | 38 | GPIO3_D2| | | | ||
| | | | GND| 39 | 40 | GPIO3_D1| | | | ||
|
||
Supports | ||
-------- | ||
|
||
You can find additional product support in the following channels: | ||
|
||
- [Product Info](https://docs.radxa.com/en/compute-module/cm3) | ||
- [Forums](https://forum.radxa.com/c/rock3) | ||
- [Github](https://github.com/radxa) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Author: Nascs <nascs@radxa.com> | ||
* Copyright (c) 2023 Radxa Limited. | ||
* | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
|
||
#pragma once | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#include "mraa_internal.h" | ||
|
||
#define MRAA_RADXA_CM3_GPIO_COUNT 28 | ||
#define MRAA_RADXA_CM3_I2C_COUNT 3 | ||
#define MRAA_RADXA_CM3_SPI_COUNT 2 | ||
#define MRAA_RADXA_CM3_UART_COUNT 1 | ||
#define MRAA_RADXA_CM3_PWM_COUNT 9 | ||
#define MRAA_RADXA_CM3_AIO_COUNT 1 | ||
#define MRAA_RADXA_CM3_PIN_COUNT 40 | ||
#define PLATFORM_NAME_RADXA_CM3_IO "Radxa Compute Module 3(CM3) IO Board" | ||
#define PLATFORM_NAME_RADXA_CM3_IO_2 "Radxa CM3 IO Board" | ||
#define PLATFORM_NAME_RADXA_CM3_RPI_CM4_IO "Radxa CM3 RPI CM4 IO" // The core board of the Radxa CM3 is compatible with the RPI CM4 IO backplane. | ||
|
||
mraa_board_t * | ||
mraa_radxa_cm3(); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.