summaryrefslogtreecommitdiff
path: root/bindings/thermal/qti-virtual-sensor.txt
blob: 57b4803a18e825ae409bb560603f83e32199131d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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>;
		};
	};