scmi: support arm's scmi protocol for spacemit platform

Change-Id: Ib797b2696207a5c1bf10a5feadfcad0814e196d3
This commit is contained in:
Nell
2023-06-29 09:06:23 +08:00
committed by zhangmeng
parent f465d8e68d
commit d3bb3cdd91
3 changed files with 51 additions and 1 deletions

View File

@@ -0,0 +1,46 @@
/ {
sram {
compatible = "mmio-sram";
/* 256k */
reg = <0x0 0x2f900000 0x0 0x40000>;
#address-cells = <1>;
#size-cells = <1>;
ranges = <0x0 0x0 0x2f900000 0x40000>;
/* channel 0*/
cpu_scp_lpri0: scp-sram@2f900000 {
compatible = "arm,scmi-shmem";
reg = <0x0 0x80>;
};
/* channel 1*/
cpu_scp_lpri1: scp-sram@2f900080 {
compatible = "arm,scmi-shmem";
reg = <0x80 0x80>;
};
/* channel 2*/
cpu_scp_lpri2: scp-sram@2f900100 {
compatible = "arm,scmi-shmem";
reg = <0x100 0x80>;
};
/* channel 3*/
cpu_scp_lpri3: scp-sram@2f900180 {
compatible = "arm,scmi-shmem";
reg = <0x180 0x80>;
};
};
firmware {
scmi {
compatible = "arm,scmi";
mbox-names = "tx", "rx";
mboxes = <&mailbox 0 &mailbox 2>;
shmem = <&cpu_scp_lpri0 &cpu_scp_lpri0>;
#address-cells = <1>;
#size-cells = <0>;
};
};
};

View File

@@ -49,6 +49,8 @@ CONFIG_PCI=y
CONFIG_PCIE_SPACEMIT=y
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
CONFIG_ARM_SCMI_PROTOCOL=m
# CONFIG_ARM_SCMI_POWER_DOMAIN is not set
CONFIG_MTD=y
CONFIG_MTD_BLOCK=y
CONFIG_MTD_SPI_NOR=y
@@ -57,6 +59,7 @@ CONFIG_VIRTIO_BLK=y
CONFIG_BLK_DEV_NVME=y
CONFIG_NVME_MULTIPATH=y
CONFIG_NVME_VERBOSE_ERRORS=y
CONFIG_SRAM=y
CONFIG_SCSI=y
CONFIG_BLK_DEV_SD=y
# CONFIG_BLK_DEV_BSG is not set
@@ -165,6 +168,7 @@ CONFIG_SPACEMIT_MAILBOX=y
# CONFIG_IOMMU_SUPPORT is not set
CONFIG_REMOTEPROC=y
CONFIG_SPACEMIT_REMOTEPROC=y
# CONFIG_RESET_SCMI is not set
# CONFIG_NVMEM is not set
CONFIG_EXT4_FS=y
CONFIG_EXT4_FS_POSIX_ACL=y

View File

@@ -3,7 +3,7 @@ menu "ARM System Control and Management Interface Protocol"
config ARM_SCMI_PROTOCOL
tristate "ARM System Control and Management Interface (SCMI) Message Protocol"
depends on ARM || ARM64 || COMPILE_TEST
depends on ARM || ARM64 || COMPILE_TEST || SOC_SPACEMIT
help
ARM System Control and Management Interface (SCMI) protocol is a
set of operating system-independent software interfaces that are