[PATCH v3 0/2] riscv: dts: spacemit: Add initial support for OrangePi RV2

Hendrik Hamerlinck posted 2 patches 4 months, 1 week ago
.../devicetree/bindings/riscv/spacemit.yaml   |  1 +
arch/riscv/boot/dts/spacemit/Makefile         |  1 +
.../boot/dts/spacemit/k1-orangepi-rv2.dts     | 40 +++++++++++++++++++
3 files changed, 42 insertions(+)
create mode 100644 arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts
[PATCH v3 0/2] riscv: dts: spacemit: Add initial support for OrangePi RV2
Posted by Hendrik Hamerlinck 4 months, 1 week ago
This patchset adds initial device tree support for the OrangePi RV2 board.

The OrangePi RV2 [1] is described as using the Ky X1 SoC. Based on research
and testing, it appears to be identical or very closely related to the
SpacemiT K1 SoC [2], as suggested by the following:

- Similar integration in the Banana Pi kernel tree [3], which uses the 
  OrangePi RV2 and identifies it as the SpacemiT K1.
- Comparison of the device tree code showing a match to the OrangePi RV2 
  Linux tree [4].
- Locally tested the OrangePi RV2 with the SpacemiT K1 device tree, 
  confirming it boots and operates correctly.

Patch #1 documents the compatible string for the OrangePi RV2, and 
patch #2 adds its minimal device tree. This enables booting to a serial
console with UART output and blinking a LED, similar to other K1-based 
boards such as the Banana Pi BPI-F3 or the Milk-V Jupiter.

Link: http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/details/Orange-Pi-RV2.html [1]
Link: https://www.spacemit.com/en/key-stone-k1 [2]
Link: https://github.com/BPI-SINOVOIP/pi-linux/blob/linux-6.6.63-k1/arch/riscv/boot/dts/spacemit/k1-x_orangepi-rv2.dts [3]
Link: https://github.com/orangepi-xunlong/linux-orangepi/tree/orange-pi-6.6-ky [4]

Changes in v3:
Improved changelog: Reworded relation to SpacemiT K1 as presumed identical,
based on downstream sources and testing.
Applied Yixun Lan's Reviewed-by tag.

Changes in v2:
Patch 1: no changes.
Patch 2:
- Added aliases section to the device tree.
- Removed the memory section, as it is populated by the bootloader.
- Updated copyright header.
Link: https://lore.kernel.org/spacemit/20250718084339.471449-3-hendrik.hamerlinck@hammernet.be/

Here is version 1 of this series:
  https://lore.kernel.org/spacemit/20250711183245.256683-1-hendrik.hamerlinck@hammernet.be/

This is the follow-up mentioned in the previous version, sent now that
v6.17-rc1 was released yesterday.

Hendrik Hamerlinck (2):
  dt-bindings: riscv: spacemit: Add OrangePi RV2 board
  riscv: dts: spacemit: Add OrangePi RV2 board device tree

 .../devicetree/bindings/riscv/spacemit.yaml   |  1 +
 arch/riscv/boot/dts/spacemit/Makefile         |  1 +
 .../boot/dts/spacemit/k1-orangepi-rv2.dts     | 40 +++++++++++++++++++
 3 files changed, 42 insertions(+)
 create mode 100644 arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts

-- 
2.43.0
Re: [PATCH v3 0/2] riscv: dts: spacemit: Add initial support for OrangePi RV2
Posted by Yixun Lan 4 months ago
On Wed, 13 Aug 2025 11:22:38 +0200, Hendrik Hamerlinck wrote:
> This patchset adds initial device tree support for the OrangePi RV2 board.
> 
> The OrangePi RV2 [1] is described as using the Ky X1 SoC. Based on research
> and testing, it appears to be identical or very closely related to the
> SpacemiT K1 SoC [2], as suggested by the following:
> 
> - Similar integration in the Banana Pi kernel tree [3], which uses the
>   OrangePi RV2 and identifies it as the SpacemiT K1.
> - Comparison of the device tree code showing a match to the OrangePi RV2
>   Linux tree [4].
> - Locally tested the OrangePi RV2 with the SpacemiT K1 device tree,
>   confirming it boots and operates correctly.
> 
> [...]

Applied, thanks!

[1/2] dt-bindings: riscv: spacemit: Add OrangePi RV2 board
      https://github.com/spacemit-com/linux/commit/f10512e2c44e6ee3242314d43102acab7340e2d3
[2/2] riscv: dts: spacemit: Add OrangePi RV2 board device tree
      https://github.com/spacemit-com/linux/commit/bab8dea259100a99e047fd11a48940b229d30031

Best regards,
-- 
Yixun Lan