OrangePi-RV2: Add overlay dtbo files

This is for use with fdtoverlays directive in extlinux.conf
to enabled different configs for the Opi rv2 pin headers

Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
This commit is contained in:
Sven-Ola Tuecke 2026-01-19 18:12:17 +01:00 committed by c0rnelius
parent b9350e0133
commit 7c0d37997c
26 changed files with 396 additions and 4 deletions

View File

@ -15,7 +15,7 @@
/ {
model = "ky x1 orangepi-r2s board";
compatible = "spacemit,orangepi-r2s", "spacemit,k1x";
compatible = "spacemit,orangepi-r2s", "spacemit,k1-x";
cpus: cpus {
#address-cells = <1>;

View File

@ -15,7 +15,7 @@
/ {
model = "ky x1 orangepi-rv2 board";
compatible = "spacemit,orangepi-rv2", "spacemit,k1x";
compatible = "spacemit,orangepi-rv2", "spacemit,k1-x";
cpus: cpus {
#address-cells = <1>;

View File

@ -1,5 +1,15 @@
# SPDX-License-Identifier: GPL-2.0
dtbo-$(CONFIG_SOC_SPACEMIT_K1X) += \
k1-can0.dtbo \
k1-i2c3.dtbo \
k1-i2c4.dtbo \
k1-lcd.dtbo \
k1-pwm7.dtbo \
k1-pwm9.dtbo \
k1-spi3-cs0-spidev.dtbo \
k1-uart5.dtbo \
k1-uart8.dtbo \
k1-uart9.dtbo \
k1-spacemit-disable-qspi.dtbo \
k1-spacemit-i2c4-pwm7-spi3-uart5.dtbo

View File

@ -0,0 +1,17 @@
/dts-v1/;
/plugin/;
// For Orange Pi RV2, but may work on other devices. Origin:
// https://github.com/orangepi-xunlong/linux-orangepi/tree/orange-pi-6.6-ky/arch/riscv/boot/dts/ky/overlay
/ {
compatible = "spacemit,k1-x";
fragment@0 {
target = <&flexcan0>;
__overlay__ {
status = "okay";
};
};
};

View File

@ -0,0 +1,17 @@
/dts-v1/;
/plugin/;
// For Orange Pi RV2, but may work on other devices. Origin:
// https://github.com/orangepi-xunlong/linux-orangepi/tree/orange-pi-6.6-ky/arch/riscv/boot/dts/ky/overlay
/ {
compatible = "spacemit,k1-x";
fragment@0 {
target = <&i2c3>;
__overlay__ {
status = "okay";
};
};
};

View File

@ -0,0 +1,17 @@
/dts-v1/;
/plugin/;
// For Orange Pi RV2, but may work on other devices. Origin:
// https://github.com/orangepi-xunlong/linux-orangepi/tree/orange-pi-6.6-ky/arch/riscv/boot/dts/ky/overlay
/ {
compatible = "spacemit,k1-x";
fragment@0 {
target = <&i2c4>;
__overlay__ {
status = "okay";
};
};
};

View File

@ -0,0 +1,33 @@
/dts-v1/;
/plugin/;
// For Orange Pi RV2, but may work on other devices. Origin:
// https://github.com/orangepi-xunlong/linux-orangepi/tree/orange-pi-6.6-ky/arch/riscv/boot/dts/ky/overlay
/ {
compatible = "spacemit,k1-x";
fragment@0 {
target = <&dpu_online2_dsi>;
__overlay__ {
status = "okay";
};
};
fragment@1 {
target = <&dsi2>;
__overlay__ {
status = "okay";
};
};
fragment@2 {
target = <&touchscreen>;
__overlay__ {
status = "okay";
};
};
};

View File

@ -0,0 +1,17 @@
/dts-v1/;
/plugin/;
// For Orange Pi RV2, but may work on other devices. Origin:
// https://github.com/orangepi-xunlong/linux-orangepi/tree/orange-pi-6.6-ky/arch/riscv/boot/dts/ky/overlay
/ {
compatible = "spacemit,k1-x";
fragment@0 {
target = <&pwm7>;
__overlay__ {
status = "okay";
};
};
};

View File

@ -0,0 +1,17 @@
/dts-v1/;
/plugin/;
// For Orange Pi RV2, but may work on other devices. Origin:
// https://github.com/orangepi-xunlong/linux-orangepi/tree/orange-pi-6.6-ky/arch/riscv/boot/dts/ky/overlay
/ {
compatible = "spacemit,k1-x";
fragment@0 {
target = <&rpwm9>;
__overlay__ {
status = "okay";
};
};
};

View File

@ -0,0 +1,17 @@
/dts-v1/;
/plugin/;
// For Orange Pi RV2, but may work on other devices. Origin:
// https://github.com/orangepi-xunlong/linux-orangepi/tree/orange-pi-6.6-ky/arch/riscv/boot/dts/ky/overlay
/ {
compatible = "spacemit,k1-x";
fragment@0 {
target = <&spi3>;
__overlay__ {
status = "okay";
};
};
};

View File

@ -0,0 +1,17 @@
/dts-v1/;
/plugin/;
// For Orange Pi RV2, but may work on other devices. Origin:
// https://github.com/orangepi-xunlong/linux-orangepi/tree/orange-pi-6.6-ky/arch/riscv/boot/dts/ky/overlay
/ {
compatible = "spacemit,k1-x";
fragment@0 {
target = <&uart5>;
__overlay__ {
status = "okay";
};
};
};

View File

@ -0,0 +1,17 @@
/dts-v1/;
/plugin/;
// For Orange Pi RV2, but may work on other devices. Origin:
// https://github.com/orangepi-xunlong/linux-orangepi/tree/orange-pi-6.6-ky/arch/riscv/boot/dts/ky/overlay
/ {
compatible = "spacemit,k1-x";
fragment@0 {
target = <&uart8>;
__overlay__ {
status = "okay";
};
};
};

View File

@ -0,0 +1,17 @@
/dts-v1/;
/plugin/;
// For Orange Pi RV2, but may work on other devices. Origin:
// https://github.com/orangepi-xunlong/linux-orangepi/tree/orange-pi-6.6-ky/arch/riscv/boot/dts/ky/overlay
/ {
compatible = "spacemit,k1-x";
fragment@0 {
target = <&uart9>;
__overlay__ {
status = "okay";
};
};
};

View File

@ -15,7 +15,7 @@
/ {
model = "ky x1 orangepi-r2s board";
compatible = "spacemit,orangepi-r2s", "spacemit,k1x";
compatible = "spacemit,orangepi-r2s", "spacemit,k1-x";
cpus: cpus {
#address-cells = <1>;

View File

@ -15,7 +15,7 @@
/ {
model = "ky x1 orangepi-rv2 board";
compatible = "spacemit,orangepi-rv2", "spacemit,k1x";
compatible = "spacemit,orangepi-rv2", "spacemit,k1-x";
cpus: cpus {
#address-cells = <1>;

View File

@ -1,5 +1,15 @@
# SPDX-License-Identifier: GPL-2.0
dtbo-$(CONFIG_ARCH_RV64I) += \
k1-can0.dtbo \
k1-i2c3.dtbo \
k1-i2c4.dtbo \
k1-lcd.dtbo \
k1-pwm7.dtbo \
k1-pwm9.dtbo \
k1-spi3-cs0-spidev.dtbo \
k1-uart5.dtbo \
k1-uart8.dtbo \
k1-uart9.dtbo \
k1-spacemit-disable-qspi.dtbo \
k1-spacemit-i2c4-pwm7-spi3-uart5.dtbo

View File

@ -0,0 +1,17 @@
/dts-v1/;
/plugin/;
// For Orange Pi RV2, but may work on other devices. Origin:
// https://github.com/orangepi-xunlong/linux-orangepi/tree/orange-pi-6.6-ky/arch/riscv/boot/dts/ky/overlay
/ {
compatible = "spacemit,k1-x";
fragment@0 {
target = <&flexcan0>;
__overlay__ {
status = "okay";
};
};
};

View File

@ -0,0 +1,17 @@
/dts-v1/;
/plugin/;
// For Orange Pi RV2, but may work on other devices. Origin:
// https://github.com/orangepi-xunlong/linux-orangepi/tree/orange-pi-6.6-ky/arch/riscv/boot/dts/ky/overlay
/ {
compatible = "spacemit,k1-x";
fragment@0 {
target = <&i2c3>;
__overlay__ {
status = "okay";
};
};
};

View File

@ -0,0 +1,17 @@
/dts-v1/;
/plugin/;
// For Orange Pi RV2, but may work on other devices. Origin:
// https://github.com/orangepi-xunlong/linux-orangepi/tree/orange-pi-6.6-ky/arch/riscv/boot/dts/ky/overlay
/ {
compatible = "spacemit,k1-x";
fragment@0 {
target = <&i2c4>;
__overlay__ {
status = "okay";
};
};
};

View File

@ -0,0 +1,33 @@
/dts-v1/;
/plugin/;
// For Orange Pi RV2, but may work on other devices. Origin:
// https://github.com/orangepi-xunlong/linux-orangepi/tree/orange-pi-6.6-ky/arch/riscv/boot/dts/ky/overlay
/ {
compatible = "spacemit,k1-x";
fragment@0 {
target = <&dpu_online2_dsi>;
__overlay__ {
status = "okay";
};
};
fragment@1 {
target = <&dsi2>;
__overlay__ {
status = "okay";
};
};
fragment@2 {
target = <&touchscreen>;
__overlay__ {
status = "okay";
};
};
};

View File

@ -0,0 +1,17 @@
/dts-v1/;
/plugin/;
// For Orange Pi RV2, but may work on other devices. Origin:
// https://github.com/orangepi-xunlong/linux-orangepi/tree/orange-pi-6.6-ky/arch/riscv/boot/dts/ky/overlay
/ {
compatible = "spacemit,k1-x";
fragment@0 {
target = <&pwm7>;
__overlay__ {
status = "okay";
};
};
};

View File

@ -0,0 +1,17 @@
/dts-v1/;
/plugin/;
// For Orange Pi RV2, but may work on other devices. Origin:
// https://github.com/orangepi-xunlong/linux-orangepi/tree/orange-pi-6.6-ky/arch/riscv/boot/dts/ky/overlay
/ {
compatible = "spacemit,k1-x";
fragment@0 {
target = <&rpwm9>;
__overlay__ {
status = "okay";
};
};
};

View File

@ -0,0 +1,17 @@
/dts-v1/;
/plugin/;
// For Orange Pi RV2, but may work on other devices. Origin:
// https://github.com/orangepi-xunlong/linux-orangepi/tree/orange-pi-6.6-ky/arch/riscv/boot/dts/ky/overlay
/ {
compatible = "spacemit,k1-x";
fragment@0 {
target = <&spi3>;
__overlay__ {
status = "okay";
};
};
};

View File

@ -0,0 +1,17 @@
/dts-v1/;
/plugin/;
// For Orange Pi RV2, but may work on other devices. Origin:
// https://github.com/orangepi-xunlong/linux-orangepi/tree/orange-pi-6.6-ky/arch/riscv/boot/dts/ky/overlay
/ {
compatible = "spacemit,k1-x";
fragment@0 {
target = <&uart5>;
__overlay__ {
status = "okay";
};
};
};

View File

@ -0,0 +1,17 @@
/dts-v1/;
/plugin/;
// For Orange Pi RV2, but may work on other devices. Origin:
// https://github.com/orangepi-xunlong/linux-orangepi/tree/orange-pi-6.6-ky/arch/riscv/boot/dts/ky/overlay
/ {
compatible = "spacemit,k1-x";
fragment@0 {
target = <&uart8>;
__overlay__ {
status = "okay";
};
};
};

View File

@ -0,0 +1,17 @@
/dts-v1/;
/plugin/;
// For Orange Pi RV2, but may work on other devices. Origin:
// https://github.com/orangepi-xunlong/linux-orangepi/tree/orange-pi-6.6-ky/arch/riscv/boot/dts/ky/overlay
/ {
compatible = "spacemit,k1-x";
fragment@0 {
target = <&uart9>;
__overlay__ {
status = "okay";
};
};
};