From e9f0dde2bf5cac2c66380c8bab9296abc791d62c Mon Sep 17 00:00:00 2001
From: "Paul M. B. Bendixen" <pbe@trifork.com>
Date: Wed, 13 Nov 2024 09:29:46 +0100
Subject: [meta-rockchip] [PATCH] SOQuartz: add

The SOQuartz is a RK3566 based compute module and parts of Quartz64 series

Specs:
- Rockchip RK3566 Quad-core ARM Cortex-A55@1.8GHz
- Mali-G52 2EE Bifrost GPU@800MHz
- Raspberry Pi 4 CM form factor
- RAM Memory Variants: 2GB, 4GB, 8GB LPDDR4.
- optional eMMC from 8GB to 128GB
- optional 128Mb SPI Flash
- 10/100/1000Mbps Ethernet
- WiFi 802.11 b/g/n/ac with Bluetooth 5.0

Exposed preripherals:
- 1x HDMI
- 2x DSI
- 1x eDP
- 1x LVDS
- 1x CSI 4-line
- 1x Ethernet
- 1x USB 2.0 OTG
- 1x SD
- 1x PCIe 1-line
- 28x GPIO

Signed-off-by: Paul M. B. Bendixen <pbe@trifork.com>
---
 README                                      |  1 +
 conf/machine/soquartz.conf                  | 12 ++++++++++++
 recipes-kernel/linux/linux-yocto_%.bbappend |  1 +
 3 files changed, 14 insertions(+)
 create mode 100644 conf/machine/soquartz.conf

diff --git a/README b/README
index 09f8691..c5079a5 100644
--- a/README
+++ b/README
@@ -45,6 +45,7 @@ Status of supported boards:
 			rock-pi-e
 			rock-pi-s
 			rock64
+			soquartz
 
 	builds:
 		32-bit:
diff --git a/conf/machine/soquartz.conf b/conf/machine/soquartz.conf
new file mode 100644
index 0000000..01860b7
--- /dev/null
+++ b/conf/machine/soquartz.conf
@@ -0,0 +1,12 @@
+#Copyright (C) Trifork A/S 2024
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+#@Type: Machine
+#@Name: SOQuartz
+#@Description: SOQuartz board for pine64
+
+WKS_FILE ?= "rockchip.wks"
+require include/rk3566.inc
+
+UBOOT_MACHINE = "soquartz-cm4-rk3566_defconfig"
+KERNEL_DEVICETREE = "rockchip/rk3566-soquartz-cm4.dtb"
diff --git a/recipes-kernel/linux/linux-yocto_%.bbappend b/recipes-kernel/linux/linux-yocto_%.bbappend
index 5528bab..56ec9d7 100644
--- a/recipes-kernel/linux/linux-yocto_%.bbappend
+++ b/recipes-kernel/linux/linux-yocto_%.bbappend
@@ -22,6 +22,7 @@ COMPATIBLE_MACHINE:rock-3a = "rock-3a"
 COMPATIBLE_MACHINE:rock-4c-plus = "rock-4c-plus"
 COMPATIBLE_MACHINE:rock-5a = "rock-5a"
 COMPATIBLE_MACHINE:rock-5b = "rock-5b"
+COMPATIBLE_MACHINE:soquartz = "soquartz"
 
 SRC_URI:append = " file://rockchip-kmeta;type=kmeta;name=rockchip-kmeta;destsuffix=rockchip-kmeta"
 SRC_URI:append:nanopi-r4s = " file://nanopi-r4s.scc"
-- 
2.43.0

