diff --git a/bindings/arm/msm/qcom,gh-panic-notifier.yaml b/bindings/arm/msm/qcom,gh-panic-notifier.yaml new file mode 100644 index 00000000..48e1a930 --- /dev/null +++ b/bindings/arm/msm/qcom,gh-panic-notifier.yaml @@ -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>; + }; diff --git a/bindings/soc/qcom/dmesg-dumper.yaml b/bindings/soc/qcom/dmesg-dumper.yaml new file mode 100644 index 00000000..70185990 --- /dev/null +++ b/bindings/soc/qcom/dmesg-dumper.yaml @@ -0,0 +1,62 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/soc/qcom/dmesg-dumper.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Qualcomm Technologies, Inc. Dmesg dumper binding + +maintainers: + - Guru Das Srinagesh + +description: | + Upon encountering a kernel panic in a Virtual machine or getting + Virtual machine's alive log trrigger by primary Virtual machine, + enable the dumping the dmesg log buffer to a reserved memory + section through the use of a Gunyah shared-memory doorbell object. + +properties: + compatible: + const: qcom,dmesg-dump + + qcom,primary-vm: + description: Specify if this device is on the primary virtual machine. + + 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. + + shared-buffer: + $ref: '/schemas/types.yaml#/definitions/phandle' + maxItems: 1 + description: phandle reference to a reserved memory region for sharing + between vms + + ddump-pubkey-size: + maxItems: 1 + description: The size of public key used to encrypt the alive log. + + ddump-pubkey: + maxItems: 1 + description: The value of public key used to encrypt the alive log. + +required: + -compatible + -gunyah-label + -shared-buffer + +examples: + - | + trust_ui_vm_dump@e55f2000 { + no-map; + reg = <0x0 0xe55f2000 0x0 0x1000>; + }; + + dmesg-dump { + compatible = "qcom,dmesg-dump"; + qcom,primary-vm; + gunyah-label = <6>; + shared-buffer = <&trust_ui_vm_dump>; + };