diff --git a/bindings/soc/qcom/qcom,minidump.yaml b/bindings/soc/qcom/qcom,minidump.yaml new file mode 100644 index 00000000..a4eac137 --- /dev/null +++ b/bindings/soc/qcom/qcom,minidump.yaml @@ -0,0 +1,29 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/soc/qcom/qcom,minidump.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Qualcomm Technologies, Inc. Minidump driver + +maintainers: + - Melody Olvera + +description: | + Minidump driver allows clients to register memory regions. It can dump + registered memory regions when system goes wrong. + +properties: + compatible: + enum: + - qcom,minidump + - qcom,minidump-rm + +required: + - compatible + +examples: + - | + qcom,minidump { + compatible = "qcom,minidump"; + }; diff --git a/bindings/soc/qcom/qcom,va-minidump.yaml b/bindings/soc/qcom/qcom,va-minidump.yaml new file mode 100644 index 00000000..155f0e40 --- /dev/null +++ b/bindings/soc/qcom/qcom,va-minidump.yaml @@ -0,0 +1,40 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/soc/qcom/qcom,va-minidump.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Qualcomm Technologies, Inc. VA Minidump driver + +maintainers: + - Melody Olvera + +description: | + VA based minidump driver helps in registering dynamic data structures + from vendor modules with minidump. This driver works on VA, which + would be contiguous even if physical pages are scattered. Each client + can register area with contiguous VA as a section for ELF. This driver + creates ELF in panic notifier, combining all the section registered + by client drivers. + +properties: + compatible: + items: + - const: qcom,va-minidump + + memory-region: + $ref: '/schemas/types.yaml#/definitions/phandle' + maxItems: 1 + description: | + CMA region which is owned by this device. + +required: + - compatible + - memory-region + +examples: + - | + va_mini_dump { + compatible = "qcom,va-minidump"; + memory-region = <&va_md_mem>; + };