From 68fe7b3347c87e0bef867b2cf612722a3bf97d36 Mon Sep 17 00:00:00 2001 From: Nitesh Kumar Date: Fri, 3 May 2024 21:54:26 +0530 Subject: [PATCH] dt-bindings: thermal: Add LMH CPU voltage cooling device driver bindings Add bindings for LMH CPU voltage cooling devices driver. Change-Id: I726428978c6e8dc1b71ec754782bd60b3509dab9 Signed-off-by: Nitesh Kumar --- bindings/thermal/qti-lmh-cpu-vdd-cdev.yaml | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 bindings/thermal/qti-lmh-cpu-vdd-cdev.yaml diff --git a/bindings/thermal/qti-lmh-cpu-vdd-cdev.yaml b/bindings/thermal/qti-lmh-cpu-vdd-cdev.yaml new file mode 100644 index 00000000..9165f43f --- /dev/null +++ b/bindings/thermal/qti-lmh-cpu-vdd-cdev.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/thermal/qti-lmh-cpu-vdd-cdev.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: QTI LMH CPU Voltage cooling devices. + +maintainers: + - Nitesh Kumar + +description: | + The LMH CPU voltage cooling device will be used to place voltage restriction + vote on CPU railway during cold thermal condition. This cooling device driver + will register one cooling device per LLM, which can be used by thermal zone to + place voltage restriction vote. + +properties: + compatible: + const: qcom,lmh-cpu-vdd + + reg: + maxItems: 1 + description: | + where 'a' is the starting register address of the LLM + and 'b' is the size of LLM address space. + + "#cooling-cells": + const: 2 + description: | + Must be 2. Needed for of_thermal as cooling device + identifier. Please refer to for more + details. + +required: + - compatible + - reg + - "#cooling-cells" + +additionalProperties: false + +examples: + - | + lmh_cpu_vdd0: qcom,lmh-cpu-vdd@18350800 { + compatible = "qcom,lmh-cpu-vdd"; + reg = <0x18350800 0x1000>; + #cooling-cells = <2>; + };