| .. | .. |
|---|
| 6 | 6 | |
|---|
| 7 | 7 | Required properties: |
|---|
| 8 | 8 | - compatible: Should contain "qcom,spmi-temp-alarm". |
|---|
| 9 | | -- reg: Specifies the SPMI address and length of the controller's |
|---|
| 10 | | - registers. |
|---|
| 9 | +- reg: Specifies the SPMI address. |
|---|
| 11 | 10 | - interrupts: PMIC temperature alarm interrupt. |
|---|
| 12 | | -- #thermal-sensor-cells: Should be 0. See thermal.txt for a description. |
|---|
| 11 | +- #thermal-sensor-cells: Should be 0. See Documentation/devicetree/bindings/thermal/thermal-sensor.yaml for a description. |
|---|
| 13 | 12 | |
|---|
| 14 | 13 | Optional properties: |
|---|
| 15 | 14 | - io-channels: Should contain IIO channel specifier for the ADC channel, |
|---|
| .. | .. |
|---|
| 20 | 19 | |
|---|
| 21 | 20 | pm8941_temp: thermal-alarm@2400 { |
|---|
| 22 | 21 | compatible = "qcom,spmi-temp-alarm"; |
|---|
| 23 | | - reg = <0x2400 0x100>; |
|---|
| 22 | + reg = <0x2400>; |
|---|
| 24 | 23 | interrupts = <0 0x24 0 IRQ_TYPE_EDGE_RISING>; |
|---|
| 25 | 24 | #thermal-sensor-cells = <0>; |
|---|
| 26 | 25 | |
|---|
| .. | .. |
|---|
| 36 | 35 | thermal-sensors = <&pm8941_temp>; |
|---|
| 37 | 36 | |
|---|
| 38 | 37 | trips { |
|---|
| 39 | | - passive { |
|---|
| 40 | | - temperature = <1050000>; |
|---|
| 38 | + stage1 { |
|---|
| 39 | + temperature = <105000>; |
|---|
| 41 | 40 | hysteresis = <2000>; |
|---|
| 42 | 41 | type = "passive"; |
|---|
| 43 | 42 | }; |
|---|
| 44 | | - alert { |
|---|
| 43 | + stage2 { |
|---|
| 45 | 44 | temperature = <125000>; |
|---|
| 46 | | - hysteresis = <2000>; |
|---|
| 47 | | - type = "hot"; |
|---|
| 48 | | - }; |
|---|
| 49 | | - crit { |
|---|
| 50 | | - temperature = <145000>; |
|---|
| 51 | 45 | hysteresis = <2000>; |
|---|
| 52 | 46 | type = "critical"; |
|---|
| 53 | 47 | }; |
|---|