Merge tag 'gfs2-4.11.addendum' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2...
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / thermal / max77620_thermal.txt
1 Thermal driver for MAX77620 Power management IC from Maxim Semiconductor.
2
3 Maxim Semiconductor MAX77620 supports alarm interrupts when its
4 die temperature crosses 120C and 140C. These threshold temperatures
5 are not configurable. Device does not provide the real temperature
6 of die other than just indicating whether temperature is above or
7 below threshold level.
8
9 Required properties:
10 -------------------
11 #thermal-sensor-cells:  Please refer <devicetree/bindings/thermal/thermal.txt>
12                         for more details.
13                         The value must be 0.
14
15 For more details, please refer generic thermal DT binding document
16 <devicetree/bindings/thermal/thermal.txt>.
17
18 Please refer <devicetree/bindings/mfd/max77620.txt> for mfd DT binding
19 document for the MAX77620.
20
21 Example:
22 --------
23 #include <dt-bindings/mfd/max77620.h>
24 #include <dt-bindings/thermal/thermal.h>
25 ...
26
27 i2c@7000d000 {
28         spmic: max77620@3c {
29                 compatible = "maxim,max77620";
30                 :::::
31                 #thermal-sensor-cells = <0>;
32                 :::
33         };
34 };
35
36 cool_dev: cool-dev {
37         compatible = "cooling-dev";
38         #cooling-cells = <2>;
39 };
40
41 thermal-zones {
42         PMIC-Die {
43                 polling-delay = <0>;
44                 polling-delay-passive = <0>;
45                 thermal-sensors = <&spmic>;
46
47                 trips {
48                         pmic_die_warn_temp_thresh: hot-die {
49                                 temperature = <120000>;
50                                 type = "hot";
51                                 hysteresis = <0>;
52                         };
53
54                         pmic_die_cirt_temp_thresh: cirtical-die {
55                                 temperature = <140000>;
56                                 type = "critical";
57                                 hysteresis = <0>;
58                         };
59                 };
60
61                 cooling-maps {
62                         map0 {
63                                 trip = <&pmic_die_warn_temp_thresh>;
64                                 cooling-device = <&cool_dev THERMAL_NO_LIMIT
65                                                   THERMAL_NO_LIMIT>;
66                                 contribution = <100>;
67                         };
68                 };
69         };
70 };