Skip to contentSkip to conversation

tinker-board-3: add

PATCH NAK [email protected] 3 participants 4 messages Dec 18, 2025 – Dec 19, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tinker-board-3: add

From: Michael Opdenacker <[email protected]>

Add basic support for the Asus Tinker Board 3 [1] and 3S [2] SBCs, with the Rockchip rk3566 SoC.

Support for such boards was introduced in the 6.19-rc1 version of the Linux kernel:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9f80b3952318d7ef18573a5010f06118602f992e

Therefore, the https://github.com/betafive/meta-linux-mainline/
layer is currently a prerequisite to build images for such machines.

Here are already supported features:
- Debug UART (/dev/ttyS2)
- SD card (/dev/mmcblk1)
- eMMC (/dev/mmcblk0, only on Tinker Board 3S)
- I2C:
- i2c0 (internal bus with a PMIC and regulators)
- i2c2 (internal bus with an at24 eeprom and an RTC device)
- USB 2.0 ports
- 2 GPIO LEDS

[1] https://tinker-board.asus.com/series/tinker-board-3.html
[2] https://tinker-board.asus.com/series/tinker-board-3s.html

---
 conf/machine/include/tinker-board-3.inc     | 11 +++++++++++
 conf/machine/tinker-board-3.conf            | 10 ++++++++++
 conf/machine/tinker-board-3s.conf           | 10 ++++++++++
 recipes-kernel/linux/linux-yocto_%.bbappend |  2 ++
 4 files changed, 33 insertions(+)
 create mode 100644 conf/machine/include/tinker-board-3.inc
 create mode 100644 conf/machine/tinker-board-3.conf
 create mode 100644 conf/machine/tinker-board-3s.conf
conf/machine/include/tinker-board-3.inc new file +11 -0
new file mode 100644
index 0000000..17d0ecc
@@ -0,0 +1,11 @@
+require conf/machine/include/rk3566.inc
+
+# Kernel provided by https://github.com/betafive/meta-linux-mainline/
+PREFERRED_PROVIDER_virtual/kernel = "linux-mainline"
+PREFERRED_VERSION_virtual/kernel = "6.19-rc1"
+
+MACHINE_EXTRA_RRECOMMENDS += "kernel-modules"
+
+# U-Boot doesn't support Tinker Board 3 so far
+# but boots fine when configured for a similar SBC
+UBOOT_MACHINE = "soquartz-model-a-rk3566_defconfig"
conf/machine/tinker-board-3.conf new file +10 -0
new file mode 100644
index 0000000..d6400f3
@@ -0,0 +1,10 @@
+# Copyright (C) 2025 Michael Opdenacker <[email protected]>
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+#@TYPE: Machine
+#@NAME: Tinker Board 3 RK3566
+#@DESCRIPTION: ASUS Tinker Board 3 is a Raspberry Pi like SBC based on Rockchip RK3566 Processor.
+
+require conf/machine/include/tinker-board-3.inc
+
+KERNEL_DEVICETREE = "rockchip/rk3566-tinker-board-3.dtb"
conf/machine/tinker-board-3s.conf new file +10 -0
new file mode 100644
index 0000000..e23dc8b
@@ -0,0 +1,10 @@
+# Copyright (C) 2025 Michael Opdenacker <[email protected]>
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+#@TYPE: Machine
+#@NAME: Tinker Board 3S RK3566
+#@DESCRIPTION: ASUS Tinker Board 3 is a Raspberry Pi like SBC based on Rockchip RK3566 Processor.
+
+require conf/machine/include/tinker-board-3.inc
+
+KERNEL_DEVICETREE = "rockchip/rk3566-tinker-board-3s.dtb"
recipes-kernel/linux/linux-yocto_%.bbappend +2 -0
index 2dba3d7..684d33a 100644
@@ -30,6 +30,8 @@ COMPATIBLE_MACHINE:rock-pi-e = "rock-pi-e"
 COMPATIBLE_MACHINE:rock-pi-s = "rock-pi-s"
 COMPATIBLE_MACHINE:rock64 = "rock64"
 COMPATIBLE_MACHINE:soquartz = "soquartz"
+COMPATIBLE_MACHINE:tinker-board-3 = "tinker-board-3"
+COMPATIBLE_MACHINE:tinker-board-3s = "tinker-board-3s"
 
 SRC_URI:append:rockchip = " file://rockchip-kmeta;type=kmeta;name=rockchip-kmeta;destsuffix=rockchip-kmeta"
 SRC_URI:append:nanopi-r4s = " file://realtek-r8169.cfg"
#1 lore raw

Hi Michael,

Quoted 42 lines · Michael Opdenacker via lists.yoctoproject.org

From: Michael Opdenacker <[email protected]>

Add basic support for the Asus Tinker Board 3 [1] and 3S [2] SBCs, with the Rockchip rk3566 SoC.

Support for such boards was introduced in the 6.19-rc1 version of the Linux kernel:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9f80b3952318d7ef18573a5010f06118602f992e

Therefore, the https://github.com/betafive/meta-linux-mainline/
layer is currently a prerequisite to build images for such machines.

Here are already supported features:
- Debug UART (/dev/ttyS2)
- SD card (/dev/mmcblk1)
- eMMC (/dev/mmcblk0, only on Tinker Board 3S)
- I2C:
- i2c0 (internal bus with a PMIC and regulators)
- i2c2 (internal bus with an at24 eeprom and an RTC device)
- USB 2.0 ports
- 2 GPIO LEDS

[1] https://tinker-board.asus.com/series/tinker-board-3.html
[2] https://tinker-board.asus.com/series/tinker-board-3s.html

---
  conf/machine/include/tinker-board-3.inc     | 11 +++++++++++
  conf/machine/tinker-board-3.conf            | 10 ++++++++++
  conf/machine/tinker-board-3s.conf           | 10 ++++++++++
  recipes-kernel/linux/linux-yocto_%.bbappend |  2 ++
  4 files changed, 33 insertions(+)

create mode 100644 conf/machine/include/tinker-board-3.inc create mode 100644 conf/machine/tinker-board-3.conf create mode 100644 conf/machine/tinker-board-3s.conf

conf/machine/include/tinker-board-3.inc new file +0 -0
new file mode 100644
index 0000000..17d0ecc

conf/machine/include/tinker-board-3.inc line 6

Quoted 6 lines
conf/machine/include/tinker-board-3.inc new file +6 -0
@@ -0,0 +1,11 @@
+require conf/machine/include/rk3566.inc
+
+# Kernel provided by https://github.com/betafive/meta-linux-mainline/
+PREFERRED_PROVIDER_virtual/kernel = "linux-mainline"
+PREFERRED_VERSION_virtual/kernel = "6.19-rc1"
+

Not sure we really want to do this. Maybe wait for linux-yocto-dev to hit v6.19*? We used to do this for some Radxa board in the past I believe.

conf/machine/include/tinker-board-3.inc line 11

Quoted 5 lines
conf/machine/include/tinker-board-3.inc new file +5 -0
+MACHINE_EXTRA_RRECOMMENDS += "kernel-modules"
+
+# U-Boot doesn't support Tinker Board 3 so far
+# but boots fine when configured for a similar SBC
+UBOOT_MACHINE = "soquartz-model-a-rk3566_defconfig"

Can you maybe try generic-rk3568_defconfig instead?

Quoted 22 lines
conf/machine/tinker-board-3.conf new file +10 -0
new file mode 100644
index 0000000..d6400f3
@@ -0,0 +1,10 @@
+# Copyright (C) 2025 Michael Opdenacker <[email protected]>
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+#@TYPE: Machine
+#@NAME: Tinker Board 3 RK3566
+#@DESCRIPTION: ASUS Tinker Board 3 is a Raspberry Pi like SBC based on Rockchip RK3566 Processor.
+
+require conf/machine/include/tinker-board-3.inc
+
+KERNEL_DEVICETREE = "rockchip/rk3566-tinker-board-3.dtb"
conf/machine/tinker-board-3s.conf new file +0 -0
new file mode 100644
index 0000000..e23dc8b

conf/machine/tinker-board-3s.conf line 6

Quoted 6 lines
conf/machine/tinker-board-3s.conf new file +6 -0
@@ -0,0 +1,10 @@
+# Copyright (C) 2025 Michael Opdenacker <[email protected]>
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+#@TYPE: Machine
+#@NAME: Tinker Board 3S RK3566
+#@DESCRIPTION: ASUS Tinker Board 3 is a Raspberry Pi like SBC based on Rockchip RK3566 Processor.

s/Tinker Board 3/Tinker Board 3S.

conf/machine/tinker-board-3s.conf line 10

Quoted 4 lines
conf/machine/tinker-board-3s.conf new file +4 -0
+
+require conf/machine/include/tinker-board-3.inc
+
+KERNEL_DEVICETREE = "rockchip/rk3566-tinker-board-3s.dtb"

Do you know if Asus has provided a way to know at runtime which of the Tinker 3/3S is currently running the software? E.g. via a GPIO or an ADC channel with different voltage values?

This would help us only have one machine for supporting both. In U-Boot, you'd do the auto-detection and load the appropriate device tree based on that.

We also need an entry in the README for this newly supported board.

recipes-kernel/linux/linux-yocto_%.bbappend COMPATIBLE_MACHINE:rock-pi-e = "rock-pi-e" · line 35

Quoted 11 lines
recipes-kernel/linux/linux-yocto_%.bbappend +2 -0
index 2dba3d7..684d33a 100644
@@ -30,6 +30,8 @@ COMPATIBLE_MACHINE:rock-pi-e = "rock-pi-e"
  COMPATIBLE_MACHINE:rock-pi-s = "rock-pi-s"
  COMPATIBLE_MACHINE:rock64 = "rock64"
  COMPATIBLE_MACHINE:soquartz = "soquartz"
+COMPATIBLE_MACHINE:tinker-board-3 = "tinker-board-3"
+COMPATIBLE_MACHINE:tinker-board-3s = "tinker-board-3s"
 

NACK, it isn't supported, you said it yourself.

Cheers,
Quentin

#2 lore raw
Quoted 39 lines · Quentin Schulz via lists.yoctoproject.org

Hi Michael,

Quoted 36 lines · Michael Opdenacker via lists.yoctoproject.org

From: Michael Opdenacker <[email protected]>

Add basic support for the Asus Tinker Board 3 [1] and 3S [2] SBCs, with the Rockchip rk3566 SoC.

Support for such boards was introduced in the 6.19-rc1 version of the Linux kernel:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9f80b3952318d7ef18573a5010f06118602f992e

Therefore, the https://github.com/betafive/meta-linux-mainline/
layer is currently a prerequisite to build images for such machines.

Here are already supported features:
- Debug UART (/dev/ttyS2)
- SD card (/dev/mmcblk1)
- eMMC (/dev/mmcblk0, only on Tinker Board 3S)
- I2C:
- i2c0 (internal bus with a PMIC and regulators)
- i2c2 (internal bus with an at24 eeprom and an RTC device)
- USB 2.0 ports
- 2 GPIO LEDS

[1] https://tinker-board.asus.com/series/tinker-board-3.html
[2] https://tinker-board.asus.com/series/tinker-board-3s.html

---
  conf/machine/include/tinker-board-3.inc     | 11 +++++++++++
  conf/machine/tinker-board-3.conf            | 10 ++++++++++
  conf/machine/tinker-board-3s.conf           | 10 ++++++++++
  recipes-kernel/linux/linux-yocto_%.bbappend |  2 ++
  4 files changed, 33 insertions(+)

create mode 100644 conf/machine/include/tinker-board-3.inc create mode 100644 conf/machine/tinker-board-3.conf create mode 100644 conf/machine/tinker-board-3s.conf

Quoted 15 lines

conf/machine/include/tinker-board-3.inc line 6

Quoted 12 lines
conf/machine/include/tinker-board-3.inc new file +6 -0
new file mode 100644
index 0000000..17d0ecc
@@ -0,0 +1,11 @@
+require conf/machine/include/rk3566.inc
+
+# Kernel provided by https://github.com/betafive/meta-linux-mainline/
+PREFERRED_PROVIDER_virtual/kernel = "linux-mainline"
+PREFERRED_VERSION_virtual/kernel = "6.19-rc1"
+

Not sure we really want to do this. Maybe wait for linux-yocto-dev to hit v6.19*? We used to do this for some Radxa board in the past I believe.

I would prefer to add this board once support is available via any of the Yocto Project kernels. We've added boards to meta-rockchip many times in the past when support was available through linux-yocto-dev. Ideally upstream U-Boot would support it as well.

#3 lore raw
In reply to Quentin Schulz

Hi Quentin

Thanks a lot for the review, much appreciated!
You're my top (and favorite) reviewer :)

Quoted 6 lines · Quentin Schulz

conf/machine/include/tinker-board-3.inc line 6

Quoted 4 lines
conf/machine/include/tinker-board-3.inc new file +4 -0
+# Kernel provided by https://github.com/betafive/meta-linux-mainline/
+PREFERRED_PROVIDER_virtual/kernel = "linux-mainline"
+PREFERRED_VERSION_virtual/kernel = "6.19-rc1"
+

Not sure we really want to do this. Maybe wait for linux-yocto-dev to hit v6.19*? We used to do this for some Radxa board in the past I believe.

Understood, let's wait for 2 more months then ;-)

Quoted 8 lines

conf/machine/include/tinker-board-3.inc line 11

Quoted 6 lines
conf/machine/include/tinker-board-3.inc new file +5 -0
+MACHINE_EXTRA_RRECOMMENDS += "kernel-modules"
+
+# U-Boot doesn't support Tinker Board 3 so far
+# but boots fine when configured for a similar SBC
+UBOOT_MACHINE = "soquartz-model-a-rk3566_defconfig"

Can you maybe try generic-rk3568_defconfig instead?

Excellent, it works!
And instead of displaying a wrong board name at boot time, we have something correct in U-Boot's output:

Model: Generic RK3566/RK3568
SoC:   RK3566

Quoted 4 lines
Quoted 4 lines

+++ b/conf/machine/tinker-board-3s.conf

(quoted diff) +1 -0
@@ -0,0 +1,10 @@
+# Copyright (C) 2025 Michael Opdenacker 

<[email protected]>

Quoted 8 lines
Quoted 6 lines
conf/machine/tinker-board-3s.conf new file +5 -0
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+#@TYPE: Machine
+#@NAME: Tinker Board 3S RK3566
+#@DESCRIPTION: ASUS Tinker Board 3 is a Raspberry Pi like SBC based 

on Rockchip RK3566 Processor.

s/Tinker Board 3/Tinker Board 3S.

Fixed, thanks!

Quoted 9 lines

conf/machine/tinker-board-3s.conf line 10

Quoted 5 lines
conf/machine/tinker-board-3s.conf new file +4 -0
+
+require conf/machine/include/tinker-board-3.inc
+
+KERNEL_DEVICETREE = "rockchip/rk3566-tinker-board-3s.dtb"

Do you know if Asus has provided a way to know at runtime which of the Tinker 3/3S is currently running the software? E.g. via a GPIO or an ADC channel with different voltage values?

This would help us only have one machine for supporting both. In U-Boot, you'd do the auto-detection and load the appropriate device tree based on that.

I don't know, but I can investigate. That would be useful indeed.

Quoted 2 lines

We also need an entry in the README for this newly supported board.

Correct, fixed.

Quoted 13 lines

recipes-kernel/linux/linux-yocto_%.bbappend COMPATIBLE_MACHINE:rock-pi-e = "rock-pi-e" · line 34

Quoted 11 lines
recipes-kernel/linux/linux-yocto_%.bbappend +0 -0
index 2dba3d7..684d33a 100644
@@ -30,6 +30,8 @@ COMPATIBLE_MACHINE:rock-pi-e = "rock-pi-e"

  COMPATIBLE_MACHINE:rock-pi-s = "rock-pi-s"
  COMPATIBLE_MACHINE:rock64 = "rock64"
  COMPATIBLE_MACHINE:soquartz = "soquartz"

recipes-kernel/linux/linux-yocto_%.bbappend +2 -0
+COMPATIBLE_MACHINE:tinker-board-3 = "tinker-board-3"
+COMPATIBLE_MACHINE:tinker-board-3s = "tinker-board-3s"

NACK, it isn't supported, you said it yourself.

Yep, see you in 2 months for a V2 ;-)

Thanks again
Michael.

Signature · 4 lines
Michael Opdenacker
Root Commit
Yocto Project and OpenEmbedded Training course - Learn by doing:
https://rootcommit.com/training/yocto/