dts: Add amp dts node.

Add different domain in dts node for sbi boot and disable
gmac1 node.
make DEVICE_TREE=starfive_jh7110-amp to build
uboot amp image.

Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
This commit is contained in:
Minda Chen 2024-04-12 18:30:45 +08:00
parent d3c1495750
commit 75814d6d44
3 changed files with 121 additions and 2 deletions

View file

@ -7,8 +7,8 @@ dtb-$(CONFIG_TARGET_OPENPITON_RISCV64) += openpiton-riscv64.dtb
dtb-$(CONFIG_TARGET_SIFIVE_UNLEASHED) += hifive-unleashed-a00.dtb
dtb-$(CONFIG_TARGET_SIFIVE_UNMATCHED) += hifive-unmatched-a00.dtb
dtb-$(CONFIG_TARGET_SIPEED_MAIX) += k210-maix-bit.dtb
dtb-$(CONFIG_TARGET_STARFIVE_DEVKITS) += starfive_devkits.dtb
dtb-$(CONFIG_TARGET_STARFIVE_VISIONFIVE2) += starfive_visionfive2.dtb
dtb-$(CONFIG_TARGET_STARFIVE_DEVKITS) += starfive_devkits.dtb starfive_jh7110-amp.dtb
dtb-$(CONFIG_TARGET_STARFIVE_VISIONFIVE2) += starfive_visionfive2.dtb starfive_jh7110-amp.dtb
dtb-$(CONFIG_TARGET_STARFIVE_EVB) += starfive_evb.dtb
targets += $(dtb-y)

View file

@ -0,0 +1,18 @@
// SPDX-License-Identifier: GPL-2.0 OR MIT
/*
* Copyright (C) 2022 StarFive Technology Co., Ltd.
*/
#if defined(CONFIG_TARGET_STARFIVE_VISIONFIVE2)
#include "starfive_visionfive2-u-boot.dtsi"
#endif
#if defined(CONFIG_TARGET_STARFIVE_DEVKITS)
#include "starfive_devkits-u-boot.dtsi"
#endif
/ {
config {
amp,rtos-offset = <0x330000>;
amp,rtos-code-base = <0x6e800000>;
};
};

View file

@ -0,0 +1,101 @@
// SPDX-License-Identifier: GPL-2.0 OR MIT
/*
* Copyright (C) 2022 StarFive Technology Co., Ltd.
*/
/dts-v1/;
#if defined(CONFIG_TARGET_STARFIVE_VISIONFIVE2)
#include "starfive_visionfive2.dts"
#endif
#if defined(CONFIG_TARGET_STARFIVE_DEVKITS)
#include "starfive_devkits.dts"
#endif
/ {
chosen {
opensbi-domains {
compatible = "opensbi,domain,config";
rpmsg_shmem: rpmsg_shmem {
compatible = "opensbi,domain,memregion";
base = <0x0 0x6e400000>;
order = <22>;
};
rtcode: rtcode {
compatible = "opensbi,domain,memregion";
base = <0x0 0x6e800000>;
order = <23>;
};
rtheap: rtheap {
compatible = "opensbi,domain,memregion";
base = <0x0 0x6f000000>;
order = <24>;
};
dram0: dram0 {
compatible = "opensbi,domain,memregion";
base = <0x0 0x40000000>;
order = <30>;
};
dram1: dram1 {
compatible = "opensbi,domain,memregion";
base = <0x0 0x80000000>;
order = <31>;
};
allmem: allmem {
compatible = "opensbi,domain,memregion";
base = <0x0 0x0>;
order = <64>;
};
udomain: u-domain {
compatible = "opensbi,domain,instance";
possible-harts = <&cpu0 &cpu1 &cpu2 &cpu3>;
regions = <&rtcode 0x0>, <&rtheap 0x0>, <&allmem 0x3f>;
next-addr = <0x0 0x40200000>;
boot-hart = <&cpu1>;
system-reset-allowed;
system-suspend-allowed;
};
rtdomain: rt-domain {
compatible = "opensbi,domain,instance";
possible-harts = <&cpu4>;
regions = <&rpmsg_shmem 0x3f>, <&rtcode 0x3f>, <&rtheap 0x3f>,
<&dram1 0x0>, <&allmem 0x3f>;
boot-hart = <&cpu4>;
next-arg1 = <0x0 0x0>;
next-addr = <0x0 0x6e800000>;
next-mode = <0x1>;
};
};
};
};
&cpu0 {
opensbi-domain = <&udomain>;
};
&cpu1 {
opensbi-domain = <&udomain>;
};
&cpu2 {
opensbi-domain = <&udomain>;
};
&cpu3 {
opensbi-domain = <&udomain>;
};
&cpu4 {
opensbi-domain = <&rtdomain>;
};
&gmac1 {
status = "disabled";
};