From 436a4b8bbe966c20a5bb0a72434d62cc8c1fdfd6 Mon Sep 17 00:00:00 2001 From: Nitesh Kumar Date: Tue, 11 Oct 2022 15:28:59 +0530 Subject: [PATCH] dt-bindings: thermal: Add VIRTUAL sensor driver bindings Add bindings for the virtual sensor driver. Change-Id: I5a55848c42d131aa5bfa3644d64b0b13d1b57b45 --- bindings/thermal/qti-virtual-sensor.txt | 47 +++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 bindings/thermal/qti-virtual-sensor.txt diff --git a/bindings/thermal/qti-virtual-sensor.txt b/bindings/thermal/qti-virtual-sensor.txt new file mode 100644 index 00000000..57b4803a --- /dev/null +++ b/bindings/thermal/qti-virtual-sensor.txt @@ -0,0 +1,47 @@ +=================================================================== +VIRTUAL sensor driver +=================================================================== + +Virtual sensor driver will be used to give maximum or minimum temperature of set of thermal zones. +Generally this set of thermal zones are categorized based on the sensor present on that subsytem. + +Properties: +- compatible: + Usage: required + Value type: + Definition: must be "qcom,vs-sensor" + + Virtual sensor driver properties: +- qcom,sensors: + Usage: required + Value type: + Definition: List of thermal zones whom maximum or minimum temperature need to find out. + +- qcom,logic: + Usage: optional + value type: + Definition: It can be 1 or 0. 1 is identifier for maximum temperature and 0 is identifier + for minimum temperature. + +- qcom,sensor_id: + Usage: optional + value type: + Definition: It will be 0,1,2.. depending upon how many thermal sensors are present in the target. + +Example: + virtual_sensor: virtual-sensor { + compatible = "qcom,vs-sensor"; + #thermal-sensor-cells = <1>; + + cpu_max: cpu-max{ + qcom,sensors = <&cpuss_0 &cpuss_1 &cpuss_2 &cpuss_3>; + qcom,logic = <1>; + qcom,sensor_id = <0>; + }; + + modem_max: modem-max{ + qcom,sensors = <&modem_offline &modem_q6 & modem_offline_fec &modem_offline_phy_0 &modem_offline_phy_1>; + qcom,logic = <1>; + qcom,sensor_id = <1>; + }; + };