diff mbox series

[meta-rockchip] add radxa-cm3

Message ID 20241218103904.43032-1-daniil.klimuk@3mdeb.com
State New
Headers show
Series [meta-rockchip] add radxa-cm3 | expand

Commit Message

Danik Dec. 18, 2024, 10:39 a.m. UTC
Add Radxa Compute Module 3 support.

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
---
 README                                      |  1 +
 conf/machine/radxa-cm3.conf                 | 12 ++++++++++++
 recipes-kernel/linux/linux-yocto_%.bbappend |  1 +
 3 files changed, 14 insertions(+)
 create mode 100644 conf/machine/radxa-cm3.conf

Comments

Quentin Schulz Dec. 18, 2024, 1:13 p.m. UTC | #1
Hi Danik,

On 12/18/24 11:39 AM, Danik via lists.yoctoproject.org wrote:
> [You don't often get email from daniil.klimuk=3mdeb.com@lists.yoctoproject.org. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
> 
> Add Radxa Compute Module 3 support.
> 

This is actually rather adding support for the Radxa CM3 IO board which 
is based on the Radxa CM3 SoM.

Maybe we should rather have the same mechanism we have for SOQuartz? An 
include file for SOQuartz (respectively Radxa CM3) and a machine conf 
file for SOQuartz Model-A baseboard (respectively Radxa CM3 IO). So that 
users with a different baseboard could simply require the include file 
in their machine configuration file.

The support seems fine to me otherwise, so just splitting this into two 
files (and following what we have for soquartz with the comments and 
MACHINEOVERRIDES) should be enough :)

Cheers,
Quentin
diff mbox series

Patch

diff --git a/README b/README
index 6bceba0c9cf0..4c75ac9d574d 100644
--- a/README
+++ b/README
@@ -31,6 +31,7 @@  Status of supported boards:
 			nanopi-r2s
 			nanopi-r4s
 			orangepi-5-plus
+			radxa-cm3
 			radxa-zero-3e
 			radxa-zero-3w
 			roc-rk3308-cc
diff --git a/conf/machine/radxa-cm3.conf b/conf/machine/radxa-cm3.conf
new file mode 100644
index 000000000000..2a6c62613978
--- /dev/null
+++ b/conf/machine/radxa-cm3.conf
@@ -0,0 +1,12 @@ 
+#@TYPE: Machine
+#@NAME: Radxa Rock CM3
+#@DESCRIPTION: Radxa Computing Module 3 Series (Radxa CM3 Series) is a series
+#System-on-Module based on the Rockchip RK356x series, containing processor,
+#memory, eMMC Flash and Power Management Unit. https://wiki.radxa.com/Rock3/CM3
+
+require conf/machine/include/rk3566.inc
+
+KERNEL_DEVICETREE = "rockchip/rk3566-radxa-cm3-io.dtb"
+MACHINE_EXTRA_RRECOMMENDS += "kernel-modules"
+
+UBOOT_MACHINE = "radxa-cm3-io-rk3566_defconfig"
diff --git a/recipes-kernel/linux/linux-yocto_%.bbappend b/recipes-kernel/linux/linux-yocto_%.bbappend
index 56ec9d7ea81b..91a9b8e0abcb 100644
--- a/recipes-kernel/linux/linux-yocto_%.bbappend
+++ b/recipes-kernel/linux/linux-yocto_%.bbappend
@@ -23,6 +23,7 @@  COMPATIBLE_MACHINE:rock-4c-plus = "rock-4c-plus"
 COMPATIBLE_MACHINE:rock-5a = "rock-5a"
 COMPATIBLE_MACHINE:rock-5b = "rock-5b"
 COMPATIBLE_MACHINE:soquartz = "soquartz"
+COMPATIBLE_MACHINE:radxa-cm3 = "radxa-cm3"
 
 SRC_URI:append = " file://rockchip-kmeta;type=kmeta;name=rockchip-kmeta;destsuffix=rockchip-kmeta"
 SRC_URI:append:nanopi-r4s = " file://nanopi-r4s.scc"