From 76d67b1132d84adeca21faf1cef34494e97c47fe Mon Sep 17 00:00:00 2001 From: Priyansh Jain Date: Wed, 17 Jan 2024 08:38:23 +0530 Subject: [PATCH] dt-bindings: thermal: Add bindings for gpu dump skip cooling device Add bindings for gpu dump skip cooling device driver. This cooling device is added to set WR_THERMAL_FLAG region in SDAM which is used by PMIC to disable GFX in SDI path, when SDI path reset is caused during high temperature. It also set a SOC cookie in sys dbg imem region which is used to skip GPU scan dump collection in SDI path, when SDI path reset is triggered during high temperature. Change-Id: Icefd3b2ee0e36de1738c177bc2bb3e67700372f0 Signed-off-by: Priyansh Jain --- bindings/thermal/qti-gpu-dump-skip-cdev.yaml | 57 ++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 bindings/thermal/qti-gpu-dump-skip-cdev.yaml diff --git a/bindings/thermal/qti-gpu-dump-skip-cdev.yaml b/bindings/thermal/qti-gpu-dump-skip-cdev.yaml new file mode 100644 index 00000000..1f4513df --- /dev/null +++ b/bindings/thermal/qti-gpu-dump-skip-cdev.yaml @@ -0,0 +1,57 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/thermal/qti-gpu-dump-skip-cdev.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Technologies, Inc. GPU dump skip cooling device + +maintainers: + - Priyansh Jain + +description: | + The GPU dump skip cooling device, will be used to set WR_THERMAL_FLAG + region in SDAM which is used by PMIC to disable GFX in SDI path, when + SDI path reset is caused during high temperature. It also sets a SOC + cookie in sys dbg imem region which is used to skip GPU scan dump + collection in SDI path, when SDI path reset is triggered during high + temperature. + +properties: + compatible: + const: qcom,gpu-dump-skip-cdev + + nvmem-cells: + maxItems: 2 + description: | + Phandle of the nvmem cell for the PMIC register region which + stores the PMIC WR thermal flag. + + nvmem-cell-names: + items: + - const: wr_thermal_flag + + "#cooling-cells": + const: 2 + description: | + Must be 2. Needed for of_thermal as cooling device identifier. + Please refer to for + more details. + +required: + - compatible + - nvmem-cells + - nvmem-cell-names + - "#cooling-cells" + +additionalProperties: false + +examples: + - | + + qcom,gpu-dump-skip-cdev { + compatible = "qcom,gpu-dump-skip-cdev"; + nvmem-cells = <&wr_thermal_flag>; + nvmem-cell-names = "wr_thermal_flag"; + #cooling-cells = <2>; + };