Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ ARM
* [Radxa ROCK 3C](../master/docs/radxa_rock_3c.md)
* [Radxa ROCK 5A](../master/docs/radxa_rock_5a.md)
* [Radxa ROCK 5B](../master/docs/radxa_rock_5b.md)
* [Radxa ROCK 5C](../master/docs/radxa_rock_5c.md)
* [Radxa CM5 IO](../master/docs/radxa_cm5_io.md)
* [Rock Pi 4](../master/docs/rockpi4.md)
* [Orange Pi Prime](../master/docs/orange_pi_prime.md)
Expand Down
1 change: 1 addition & 0 deletions docs/index.java.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ Specific platform information for supported platforms is documented here:
- @ref radxa_rock_3c
- @ref radxa_rock_5a
- @ref radxa_rock_5b
- @ref radxa_rock_5c
- @ref rockpi4

## DEBUGGING
Expand Down
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Specific platform information for supported platforms is documented here:
- @ref radxa_rock_3c
- @ref radxa_rock_5a
- @ref radxa_rock_5b
- @ref radxa_rock_5c
- @ref rockpi4

## DEBUGGING
Expand Down
18 changes: 18 additions & 0 deletions docs/radxa_rock_5c.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Radxa ROCK 5 Model C {#_Radxa}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

其他的文档有说Model么?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Radxa ROCK 3 Model A
Radxa ROCK 3 Model B
Radxa ROCK 3 Model C

都是这种格式。

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

刚刚看到的5B/5B+就不是吧?

=============================

Radxa ROCK 5C is a compact single-board computer (SBC) that offers a range of cutting-edge features, characteristics, and expansion options. It is the ideal choice for makers, IoT enthusiasts, hobbyists, gamers, PC users, and anyone in need of a high-spec platform with excellent performance and reliability. Radxa ROCK 5C comes in two versions: a standard version based on RK3588S2 and a Lite version based on RK3582. The standard version and Lite version share most of the features, the only difference lies in the SoC (System-on-Chip).

Pin Mapping
-----------

The Radxa ROCK 5C 40-pin headers' pinout is compatible with the [Radxa ROCK 5A 40-pin headers' pinout](./radxa_rock_5a.md#pin-mapping).

Resources
---------

You can find additional product support in the following channels:

- [Product Info](https://docs.radxa.com/en/rock5/rock5c)
- [Forums](https://forum.radxa.com/c/rock5)
- [Github](https://github.com/radxa)
1 change: 1 addition & 0 deletions include/arm/radxa_rock_5a.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ extern "C" {
#define MRAA_RADXA_ROCK_5A_AIO_COUNT 1
#define MRAA_RADXA_ROCK_5A_PIN_COUNT 40
#define PLATFORM_NAME_RADXA_ROCK_5A "Radxa ROCK 5A"
#define PLATFORM_NAME_RADXA_ROCK_5C "Radxa ROCK 5C"

mraa_board_t *
mraa_radxa_rock_5a();
Expand Down
3 changes: 2 additions & 1 deletion src/arm/arm.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ mraa_arm_platform()
platform_type = MRAA_RADXA_ROCK_3B;
else if (mraa_file_contains("/proc/device-tree/model", PLATFORM_NAME_RADXA_ROCK_3C))
platform_type = MRAA_RADXA_ROCK_3C;
else if (mraa_file_contains("/proc/device-tree/model", PLATFORM_NAME_RADXA_ROCK_5A))
else if (mraa_file_contains("/proc/device-tree/model", PLATFORM_NAME_RADXA_ROCK_5A) ||
mraa_file_contains("/proc/device-tree/model", PLATFORM_NAME_RADXA_ROCK_5C))
platform_type = MRAA_RADXA_ROCK_5A;
else if (mraa_file_contains("/proc/device-tree/model", PLATFORM_NAME_RADXA_ROCK_5B))
platform_type = MRAA_RADXA_ROCK_5B;
Expand Down
11 changes: 10 additions & 1 deletion src/arm/radxa_rock_5a.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,18 @@ mraa_radxa_rock_5a()
b->no_bus_mux = 1;
b->phy_pin_count = MRAA_RADXA_ROCK_5A_PIN_COUNT + 1;

if (mraa_file_contains("/proc/device-tree/model", PLATFORM_NAME_RADXA_ROCK_5A)) {
b->platform_name = PLATFORM_NAME_RADXA_ROCK_5A;
} else if (mraa_file_contains("/proc/device-tree/model", PLATFORM_NAME_RADXA_ROCK_5C)) {
b->platform_name = PLATFORM_NAME_RADXA_ROCK_5C;
} else {
syslog(LOG_ERR, "An unknown product detected. Fail early...");
free(b);
return NULL;
}

// UART
b->uart_dev_count = MRAA_RADXA_ROCK_5A_UART_COUNT;
b->platform_name = PLATFORM_NAME_RADXA_ROCK_5A;
b->def_uart_dev = 0;
b->uart_dev[0].index = 2;
b->uart_dev[1].index = 4;
Expand Down