Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux
[deliverable/linux.git] / Documentation / devicetree / bindings / thermal / qcom-spmi-temp-alarm.txt
CommitLineData
c610afaa
II
1Qualcomm QPNP PMIC Temperature Alarm
2
3QPNP temperature alarm peripherals are found inside of Qualcomm PMIC chips
4that utilize the Qualcomm SPMI implementation. These peripherals provide an
5interrupt signal and status register to identify high PMIC die temperature.
6
7Required properties:
8- compatible: Should contain "qcom,spmi-temp-alarm".
9- reg: Specifies the SPMI address and length of the controller's
10 registers.
11- interrupts: PMIC temperature alarm interrupt.
12- #thermal-sensor-cells: Should be 0. See thermal.txt for a description.
13
14Optional properties:
15- io-channels: Should contain IIO channel specifier for the ADC channel,
16 which report chip die temperature.
17- io-channel-names: Should contain "thermal".
18
19Example:
20
21 pm8941_temp: thermal-alarm@2400 {
22 compatible = "qcom,spmi-temp-alarm";
23 reg = <0x2400 0x100>;
24 interrupts = <0 0x24 0 IRQ_TYPE_EDGE_RISING>;
25 #thermal-sensor-cells = <0>;
26
27 io-channels = <&pm8941_vadc VADC_DIE_TEMP>;
28 io-channel-names = "thermal";
29 };
30
31 thermal-zones {
32 pm8941 {
33 polling-delay-passive = <250>;
34 polling-delay = <1000>;
35
36 thermal-sensors = <&pm8941_temp>;
37
38 trips {
39 passive {
40 temperature = <1050000>;
41 hysteresis = <2000>;
42 type = "passive";
43 };
44 alert {
45 temperature = <125000>;
46 hysteresis = <2000>;
47 type = "hot";
48 };
49 crit {
50 temperature = <145000>;
51 hysteresis = <2000>;
52 type = "critical";
53 };
54 };
55 };
56 };
57
This page took 0.061114 seconds and 5 git commands to generate.