From f9310890274a8f3b1e294537ca117df85e4e1a1c Mon Sep 17 00:00:00 2001 From: Nitesh Kumar Date: Fri, 3 May 2024 22:08:05 +0530 Subject: [PATCH] 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>; + };