ARM: dts: msm: Enable virtio-mem device for kera-vm

Describe the properties of the memory region virtio-mem supports.
Also reserve the IPA space for dmabuf buffers.

Change-Id: Ibc2876b12819d6dc4bda4f3839fd89bff49dc97d
Signed-off-by: Vijayanand Jitta <quic_vjitta@quicinc.com>
This commit is contained in:
Vijayanand Jitta
2024-11-12 09:18:26 +05:30
parent 5bc0c845bc
commit 5b02d1a930

View File

@@ -265,14 +265,27 @@
qcom,mem-buf {
compatible = "qcom,mem-buf";
qcom,mem-buf-capabilities = "consumer";
qcom,ipa-range = <0x0 0x0 0xf 0xffffffff>;
qcom,dmabuf-ipa-size = <0x1 0x00000000>; /* 4GB IPA space for dmabuf */
qcom,vmid = <45>;
};
qcom,mem-buf-msgq {
mem_buf_msgq: qcom,mem-buf-msgq {
compatible = "qcom,mem-buf-msgq";
qcom,msgq-names = "trusted_vm";
};
virtio_mem_device {
compatible = "qcom,virtio-mem";
depends-on-supply = <&mem_buf_msgq>;
/* Must be memory_block_size_bytes() aligned */
qcom,max-size = <0x0 0x18000000>;
qcom,ipa-range = <0x0 0x0 0xf 0xffffffff>;
qcom,block-size = <0x400000>;
qcom,initial-movable-zone-size = <0x2000000>;
};
/*
* QUP1 : SE0 - Secondary touch
* QUP2 : SE0 - Primary touch