dt-bindings: add bindings for HAB driver

Add snapshot for device tree bindings for HAB from msm-5.4 commit
448a527994b040f ("dt-bindings: add bindings for HAB driver").

Change-Id: I76150aa4c5668967dc3baea5feeb43884cb7a46d
This commit is contained in:
lixiang
2022-08-10 17:06:56 +08:00
committed by Gerrit - the friendly Code Review server
parent 7e1175ef2d
commit de4f8b0df7
3 changed files with 62 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
QVM Guest Shared Memory
guest_shm is a device that enables linux as a guest operating system
to allocate shared memory between virtual machines and send notifications
of updates to other virtual machines.
Required properties:
- compatible: Must be "qvm,guest_shm".
- interrupt-parent: Parent interrupt controller.
- interrupts: Should contain QVM interrupt.
- reg: Physical address of the guest factory and length.
Example:
qvm,guest_shm {
compatible = "qvm,guest_shm";
interrupt-parent = <&gic>;
interrupts = <6 4>;
reg = <0x1c050000 0x1000>;
};

41
bindings/soc/qcom/hab.txt Normal file
View File

@@ -0,0 +1,41 @@
* HAB
HAB(Hypervisor ABstraction) is meant to be a cross-platform abstraction layer
for utilizing the underlying hypervisor system. This API can be accessed from
both user and kernel sides.
The intended users of this are primarily the multimedia drivers who want to
communicate with the host OS to use the multimedia hardware.
Required properties:
- compatible: Must be "qcom,hab"
- vmid: the local VM's ID
It should be unique in a system, and host's ID should be 0. Here is an
example for a system as qvm host + agl gvm + android gvm, and such below
setting is proper,
qvm host's vmid: 0
agl gvm's vmid: 1
android gvm's vmid: 2
- mmid group properties:
- grp-start-id: mmid group starting ID, eg, 100 is for MM_AUD_1~4
- role: the local role of this group, and must be "fe" or "be"
- remote-vmids: When the local role is "fe", this is to tell which VM is the
relevant BE. When it is "be", this is to tell which VMs it will support as
BE.
Example:
qcom,hab {
compatible = "qcom,hab";
vmid = <2>;
mmid100: mmid-grp@100 {
grp-start-id = <100>;
role = "fe";
remote-vmids = <0>;
};
mmid200: mmid-grp@200 {
grp-start-id = <200>;
role = "fe";
remote-vmids = <0>;
};
}

View File

@@ -942,6 +942,8 @@ patternProperties:
description: QiaoDian XianShi Corporation
"^qnap,.*":
description: QNAP Systems, Inc.
"^qvm,.*":
description: BlackBerry Ltd
"^radxa,.*":
description: Radxa
"^raidsonic,.*":