bindings: Add bindings for the gunyah panic notifier

This driver responds to a kernel panic event on PVM
by sending doorbell to notify TUIVM.

Change-Id: I5cbc644a9978e290b44e61f2c8fa747d1ddfc276
Signed-off-by: Hrishabh Rajput <quic_hrishabh@quicinc.com>
This commit is contained in:
Hrishabh Rajput
2023-10-25 16:21:47 +05:30
parent bc9217d35d
commit eee0bb4bb2

View File

@@ -0,0 +1,59 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: "http://devicetree.org/schemas/arm/msm/qcom,gh-panic-notifier.yaml#"
$schema: "http://devicetree.org/meta-schemas/core.yaml#"
title: Qualcomm Technologies, Inc. Gunyah Panic Notifier Driver
description: |
Through the use of a Gunyah doorbell object to notify other VM do error
handle when Primary VM panic. This driver is to be enabled on both Primary
VM and the other VM who need do error handle.
properties:
compatible:
const: qcom,gh-panic-notifier
qcom,primary-vm:
description: Specify if this device is on the primary virtual machine.
peer-name:
description: Other vm peer name number.
gunyah-label:
$ref: '/schemas/types.yaml#/definitions/u32'
maxItems: 1
description: The label qrtr should request interrupts with this label from
the gunyah doorbell driver.
memory-region:
maxItems: 1
description: handle to memory reservation for shared memory region between
PVM and other VM.
shared-buffer-size:
description: The size of shared memory which alloc from CMA.
required:
-compatible
-gunyah-label
examples:
- |
vm_comm_mem: vm_comm_mem_region {
compatible = "shared-dma-pool";
alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>;
reusable;
alignment = <0x0 0x400000>;
size = <0x0 0x400000>;
};
qcom,gunyah-panic-notifier {
compatible = "qcom,gh-panic-notifier";
qcom,primary-vm;
peer-name = <2>;
gunyah-label = <9>;
memory-region = <&vm_comm_mem>;
shared-buffer-size = <0x1000>;
};