mirror of
https://github.com/Evolution-X-Devices/kernel_oneplus_sm8550-devicetrees
synced 2026-02-01 09:49:52 +00:00
dt-bindings: thermal: Add VIRTUAL sensor driver bindings
Add bindings for the virtual sensor driver. Change-Id: I5a55848c42d131aa5bfa3644d64b0b13d1b57b45
This commit is contained in:
47
bindings/thermal/qti-virtual-sensor.txt
Normal file
47
bindings/thermal/qti-virtual-sensor.txt
Normal file
@@ -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: <string>
|
||||
Definition: must be "qcom,vs-sensor"
|
||||
|
||||
Virtual sensor driver properties:
|
||||
- qcom,sensors:
|
||||
Usage: required
|
||||
Value type: <List of Thermal Zones>
|
||||
Definition: List of thermal zones whom maximum or minimum temperature need to find out.
|
||||
|
||||
- qcom,logic:
|
||||
Usage: optional
|
||||
value type: <integer>
|
||||
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: <integer>
|
||||
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>;
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user