From 03b6f1640fc44b668d2261d0ac19303892955e41 Mon Sep 17 00:00:00 2001 From: Nitesh Kumar Date: Fri, 3 May 2024 21:45:18 +0530 Subject: [PATCH 1/3] dt-bindings: thermal: Add BCL off cooling device driver bindings Add bindings for bcl off cooling device driver. Change-Id: I3983de82f92f2c78a7d88395c09c22b194b82214 Signed-off-by: Nitesh Kumar --- bindings/thermal/qcom,bcl-off-cdev.yaml | 53 +++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 bindings/thermal/qcom,bcl-off-cdev.yaml diff --git a/bindings/thermal/qcom,bcl-off-cdev.yaml b/bindings/thermal/qcom,bcl-off-cdev.yaml new file mode 100644 index 00000000..d9898c38 --- /dev/null +++ b/bindings/thermal/qcom,bcl-off-cdev.yaml @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/thermal/qcom,bcl-off-cdev.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Technologies, Inc. BCL OFF cooling device + +maintainers: + - Nitesh Kumar + +description: | + The BCL OFF cooling device, will be used to disable PMIC bcl. + This cooling device will be called when modem RF calibration + is performed using external power supply. + + When external power supply is used for RF calibration, ibat current + can cross the battery specs and can trigger batfet issues. So pmic bcl + should be disabled as it is for protection for battery not external + power supply. + + +properties: + compatible: + const: qcom,bcl-off + + reg: + maxItems: 1 + description: | + where 'a' is the starting register address of the PMIC + peripheral and 'b' is the size of the peripheral 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: + - | + bcl_off: bcl-off { + compatible = "qcom,bcl-off"; + reg = <0x4700 0x100>; + #cooling-cells = <2>; + }; From 68fe7b3347c87e0bef867b2cf612722a3bf97d36 Mon Sep 17 00:00:00 2001 From: Nitesh Kumar Date: Fri, 3 May 2024 21:54:26 +0530 Subject: [PATCH 2/3] 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>; + }; From f9310890274a8f3b1e294537ca117df85e4e1a1c Mon Sep 17 00:00:00 2001 From: Nitesh Kumar Date: Fri, 3 May 2024 22:08:05 +0530 Subject: [PATCH 3/3] dt-bindings: thermal: Add regulator cooling device driver bindings Add bindings for regulator cooling device driver. Change-Id: I5e196ba5d80a787de822223048283eb288b0f83f Signed-off-by: Nitesh Kumar --- bindings/thermal/qti-regulator-cdev.yaml | 53 ++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 bindings/thermal/qti-regulator-cdev.yaml diff --git a/bindings/thermal/qti-regulator-cdev.yaml b/bindings/thermal/qti-regulator-cdev.yaml new file mode 100644 index 00000000..485098f7 --- /dev/null +++ b/bindings/thermal/qti-regulator-cdev.yaml @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/thermal/qti-regulator-cdev.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Regulator cooling device. + +maintainers: + - Nitesh Kumar + +description: | + The regulator cooling device, will be used to place a voltage floor + restriction on a rail. + + +properties: + compatible: + const: qcom,regulator-cooling-device + + cdev-supply: + description: | + phandle to the regulator to which the cooling device will + place a floor mitigation. + + regulator-levels: + description: | + Array of regulator voltages the cooling device should + use to place a floor restriction. The voltages should be specified + in descending order. + + "#cooling-cells": + const: 2 + description: | + Must be 2. Please refer to + for more details. + +required: + - compatible + - cdev-supply + - regulator-levels + - "#cooling-cells" + +additionalProperties: false + +examples: + - | + mx_cdev: mx-cdev-lvl { + compatible = "qcom,regulator-cooling-device"; + cdev-supply = <®ulator-cdev-supply>; + regulator-levels = ; + #cooling-cells = <2>; + };