1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
4 $id: http://devicetree.org/schemas/thermal/qcom,spmi-temp-alarm.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm QPNP PMIC Temperature Alarm
10 - Bjorn Andersson <bjorn.andersson@linaro.org>
13 QPNP temperature alarm peripherals are found inside of Qualcomm PMIC chips
14 that utilize the Qualcomm SPMI implementation. These peripherals provide an
15 interrupt signal and status register to identify high PMIC die temperature.
18 - $ref: thermal-sensor.yaml#
22 const: qcom,spmi-temp-alarm
32 - description: ADC channel, which reports chip die temperature
38 '#thermal-sensor-cells':
45 - '#thermal-sensor-cells'
47 additionalProperties: false
51 #include <dt-bindings/interrupt-controller/arm-gic.h>
57 pm8350_temp_alarm: temperature-sensor@a00 {
58 compatible = "qcom,spmi-temp-alarm";
60 interrupts = <0x1 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
61 #thermal-sensor-cells = <0>;
66 pm8350_thermal: pm8350c-thermal {
67 polling-delay-passive = <100>;
69 thermal-sensors = <&pm8350_temp_alarm>;
73 temperature = <95000>;
78 pm8350_crit: pm8350c-crit {
79 temperature = <115000>;