xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/thermal/max77620_thermal.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunThermal driver for MAX77620 Power management IC from Maxim Semiconductor.
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunMaxim Semiconductor MAX77620 supports alarm interrupts when its
4*4882a593Smuzhiyundie temperature crosses 120C and 140C. These threshold temperatures
5*4882a593Smuzhiyunare not configurable. Device does not provide the real temperature
6*4882a593Smuzhiyunof die other than just indicating whether temperature is above or
7*4882a593Smuzhiyunbelow threshold level.
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunRequired properties:
10*4882a593Smuzhiyun-------------------
11*4882a593Smuzhiyun#thermal-sensor-cells:	For more details, please refer to
12*4882a593Smuzhiyun			<devicetree/bindings/thermal/thermal-sensor.yaml>
13*4882a593Smuzhiyun			The value must be 0.
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunFor more details, please refer generic thermal DT binding document
16*4882a593Smuzhiyun<devicetree/bindings/thermal/thermal*.yaml>.
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunPlease refer <devicetree/bindings/mfd/max77620.txt> for mfd DT binding
19*4882a593Smuzhiyundocument for the MAX77620.
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunExample:
22*4882a593Smuzhiyun--------
23*4882a593Smuzhiyun#include <dt-bindings/mfd/max77620.h>
24*4882a593Smuzhiyun#include <dt-bindings/thermal/thermal.h>
25*4882a593Smuzhiyun...
26*4882a593Smuzhiyun
27*4882a593Smuzhiyuni2c@7000d000 {
28*4882a593Smuzhiyun	spmic: max77620@3c {
29*4882a593Smuzhiyun		compatible = "maxim,max77620";
30*4882a593Smuzhiyun		:::::
31*4882a593Smuzhiyun		#thermal-sensor-cells = <0>;
32*4882a593Smuzhiyun		:::
33*4882a593Smuzhiyun	};
34*4882a593Smuzhiyun};
35*4882a593Smuzhiyun
36*4882a593Smuzhiyuncool_dev: cool-dev {
37*4882a593Smuzhiyun	compatible = "cooling-dev";
38*4882a593Smuzhiyun	#cooling-cells = <2>;
39*4882a593Smuzhiyun};
40*4882a593Smuzhiyun
41*4882a593Smuzhiyunthermal-zones {
42*4882a593Smuzhiyun	PMIC-Die {
43*4882a593Smuzhiyun		polling-delay = <0>;
44*4882a593Smuzhiyun		polling-delay-passive = <0>;
45*4882a593Smuzhiyun		thermal-sensors = <&spmic>;
46*4882a593Smuzhiyun
47*4882a593Smuzhiyun		trips {
48*4882a593Smuzhiyun			pmic_die_warn_temp_thresh: hot-die {
49*4882a593Smuzhiyun				temperature = <120000>;
50*4882a593Smuzhiyun				type = "hot";
51*4882a593Smuzhiyun				hysteresis = <0>;
52*4882a593Smuzhiyun			};
53*4882a593Smuzhiyun
54*4882a593Smuzhiyun			pmic_die_cirt_temp_thresh: cirtical-die {
55*4882a593Smuzhiyun				temperature = <140000>;
56*4882a593Smuzhiyun				type = "critical";
57*4882a593Smuzhiyun				hysteresis = <0>;
58*4882a593Smuzhiyun			};
59*4882a593Smuzhiyun		};
60*4882a593Smuzhiyun
61*4882a593Smuzhiyun		cooling-maps {
62*4882a593Smuzhiyun			map0 {
63*4882a593Smuzhiyun				trip = <&pmic_die_warn_temp_thresh>;
64*4882a593Smuzhiyun				cooling-device = <&cool_dev THERMAL_NO_LIMIT
65*4882a593Smuzhiyun						  THERMAL_NO_LIMIT>;
66*4882a593Smuzhiyun				contribution = <100>;
67*4882a593Smuzhiyun			};
68*4882a593Smuzhiyun		};
69*4882a593Smuzhiyun	};
70*4882a593Smuzhiyun};
71