Back to home page

OSCL-LXR

 
 

    


0001 Thermal driver for MAX77620 Power management IC from Maxim Semiconductor.
0002 
0003 Maxim Semiconductor MAX77620 supports alarm interrupts when its
0004 die temperature crosses 120C and 140C. These threshold temperatures
0005 are not configurable. Device does not provide the real temperature
0006 of die other than just indicating whether temperature is above or
0007 below threshold level.
0008 
0009 Required properties:
0010 -------------------
0011 #thermal-sensor-cells:  For more details, please refer to
0012                         <devicetree/bindings/thermal/thermal-sensor.yaml>
0013                         The value must be 0.
0014 
0015 For more details, please refer generic thermal DT binding document
0016 <devicetree/bindings/thermal/thermal*.yaml>.
0017 
0018 Please refer <devicetree/bindings/mfd/max77620.txt> for mfd DT binding
0019 document for the MAX77620.
0020 
0021 Example:
0022 --------
0023 #include <dt-bindings/mfd/max77620.h>
0024 #include <dt-bindings/thermal/thermal.h>
0025 ...
0026 
0027 i2c@7000d000 {
0028         spmic: max77620@3c {
0029                 compatible = "maxim,max77620";
0030                 :::::
0031                 #thermal-sensor-cells = <0>;
0032                 :::
0033         };
0034 };
0035 
0036 cool_dev: cool-dev {
0037         compatible = "cooling-dev";
0038         #cooling-cells = <2>;
0039 };
0040 
0041 thermal-zones {
0042         PMIC-Die {
0043                 polling-delay = <0>;
0044                 polling-delay-passive = <0>;
0045                 thermal-sensors = <&spmic>;
0046 
0047                 trips {
0048                         pmic_die_warn_temp_thresh: hot-die {
0049                                 temperature = <120000>;
0050                                 type = "hot";
0051                                 hysteresis = <0>;
0052                         };
0053 
0054                         pmic_die_cirt_temp_thresh: cirtical-die {
0055                                 temperature = <140000>;
0056                                 type = "critical";
0057                                 hysteresis = <0>;
0058                         };
0059                 };
0060 
0061                 cooling-maps {
0062                         map0 {
0063                                 trip = <&pmic_die_warn_temp_thresh>;
0064                                 cooling-device = <&cool_dev THERMAL_NO_LIMIT
0065                                                   THERMAL_NO_LIMIT>;
0066                                 contribution = <100>;
0067                         };
0068                 };
0069         };
0070 };