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:
parent
b9350e0133
commit
7c0d37997c
@ -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>;
|
||||
|
||||
@ -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>;
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
17
patch/kernel/archive/spacemit-6.18/overlay/k1-can0.dts
Normal file
17
patch/kernel/archive/spacemit-6.18/overlay/k1-can0.dts
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
17
patch/kernel/archive/spacemit-6.18/overlay/k1-i2c3.dts
Normal file
17
patch/kernel/archive/spacemit-6.18/overlay/k1-i2c3.dts
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
17
patch/kernel/archive/spacemit-6.18/overlay/k1-i2c4.dts
Normal file
17
patch/kernel/archive/spacemit-6.18/overlay/k1-i2c4.dts
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
33
patch/kernel/archive/spacemit-6.18/overlay/k1-lcd.dts
Normal file
33
patch/kernel/archive/spacemit-6.18/overlay/k1-lcd.dts
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
17
patch/kernel/archive/spacemit-6.18/overlay/k1-pwm7.dts
Normal file
17
patch/kernel/archive/spacemit-6.18/overlay/k1-pwm7.dts
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
17
patch/kernel/archive/spacemit-6.18/overlay/k1-pwm9.dts
Normal file
17
patch/kernel/archive/spacemit-6.18/overlay/k1-pwm9.dts
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
17
patch/kernel/archive/spacemit-6.18/overlay/k1-uart5.dts
Normal file
17
patch/kernel/archive/spacemit-6.18/overlay/k1-uart5.dts
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
17
patch/kernel/archive/spacemit-6.18/overlay/k1-uart8.dts
Normal file
17
patch/kernel/archive/spacemit-6.18/overlay/k1-uart8.dts
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
17
patch/kernel/archive/spacemit-6.18/overlay/k1-uart9.dts
Normal file
17
patch/kernel/archive/spacemit-6.18/overlay/k1-uart9.dts
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -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>;
|
||||
|
||||
@ -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>;
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
17
patch/kernel/archive/spacemit-6.6/overlay/k1-can0.dts
Normal file
17
patch/kernel/archive/spacemit-6.6/overlay/k1-can0.dts
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
17
patch/kernel/archive/spacemit-6.6/overlay/k1-i2c3.dts
Normal file
17
patch/kernel/archive/spacemit-6.6/overlay/k1-i2c3.dts
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
17
patch/kernel/archive/spacemit-6.6/overlay/k1-i2c4.dts
Normal file
17
patch/kernel/archive/spacemit-6.6/overlay/k1-i2c4.dts
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
33
patch/kernel/archive/spacemit-6.6/overlay/k1-lcd.dts
Normal file
33
patch/kernel/archive/spacemit-6.6/overlay/k1-lcd.dts
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
17
patch/kernel/archive/spacemit-6.6/overlay/k1-pwm7.dts
Normal file
17
patch/kernel/archive/spacemit-6.6/overlay/k1-pwm7.dts
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
17
patch/kernel/archive/spacemit-6.6/overlay/k1-pwm9.dts
Normal file
17
patch/kernel/archive/spacemit-6.6/overlay/k1-pwm9.dts
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
17
patch/kernel/archive/spacemit-6.6/overlay/k1-uart5.dts
Normal file
17
patch/kernel/archive/spacemit-6.6/overlay/k1-uart5.dts
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
17
patch/kernel/archive/spacemit-6.6/overlay/k1-uart8.dts
Normal file
17
patch/kernel/archive/spacemit-6.6/overlay/k1-uart8.dts
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
17
patch/kernel/archive/spacemit-6.6/overlay/k1-uart9.dts
Normal file
17
patch/kernel/archive/spacemit-6.6/overlay/k1-uart9.dts
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
Loading…
Reference in New Issue
Block a user