1*b97ee269SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2*b97ee269SEmmanuel Vadot%YAML 1.2 3*b97ee269SEmmanuel Vadot--- 4*b97ee269SEmmanuel Vadot$id: http://devicetree.org/schemas/thermal/qcom,spmi-temp-alarm.yaml# 5*b97ee269SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*b97ee269SEmmanuel Vadot 7*b97ee269SEmmanuel Vadottitle: Qualcomm QPNP PMIC Temperature Alarm 8*b97ee269SEmmanuel Vadot 9*b97ee269SEmmanuel Vadotmaintainers: 10*b97ee269SEmmanuel Vadot - Bjorn Andersson <bjorn.andersson@linaro.org> 11*b97ee269SEmmanuel Vadot 12*b97ee269SEmmanuel Vadotdescription: 13*b97ee269SEmmanuel Vadot QPNP temperature alarm peripherals are found inside of Qualcomm PMIC chips 14*b97ee269SEmmanuel Vadot that utilize the Qualcomm SPMI implementation. These peripherals provide an 15*b97ee269SEmmanuel Vadot interrupt signal and status register to identify high PMIC die temperature. 16*b97ee269SEmmanuel Vadot 17*b97ee269SEmmanuel VadotallOf: 18*b97ee269SEmmanuel Vadot - $ref: thermal-sensor.yaml# 19*b97ee269SEmmanuel Vadot 20*b97ee269SEmmanuel Vadotproperties: 21*b97ee269SEmmanuel Vadot compatible: 22*b97ee269SEmmanuel Vadot const: qcom,spmi-temp-alarm 23*b97ee269SEmmanuel Vadot 24*b97ee269SEmmanuel Vadot reg: 25*b97ee269SEmmanuel Vadot maxItems: 1 26*b97ee269SEmmanuel Vadot 27*b97ee269SEmmanuel Vadot interrupts: 28*b97ee269SEmmanuel Vadot maxItems: 1 29*b97ee269SEmmanuel Vadot 30*b97ee269SEmmanuel Vadot io-channels: 31*b97ee269SEmmanuel Vadot items: 32*b97ee269SEmmanuel Vadot - description: ADC channel, which reports chip die temperature 33*b97ee269SEmmanuel Vadot 34*b97ee269SEmmanuel Vadot io-channel-names: 35*b97ee269SEmmanuel Vadot items: 36*b97ee269SEmmanuel Vadot - const: thermal 37*b97ee269SEmmanuel Vadot 38*b97ee269SEmmanuel Vadot '#thermal-sensor-cells': 39*b97ee269SEmmanuel Vadot const: 0 40*b97ee269SEmmanuel Vadot 41*b97ee269SEmmanuel Vadotrequired: 42*b97ee269SEmmanuel Vadot - compatible 43*b97ee269SEmmanuel Vadot - reg 44*b97ee269SEmmanuel Vadot - interrupts 45*b97ee269SEmmanuel Vadot 46*b97ee269SEmmanuel VadotadditionalProperties: false 47*b97ee269SEmmanuel Vadot 48*b97ee269SEmmanuel Vadotexamples: 49*b97ee269SEmmanuel Vadot - | 50*b97ee269SEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 51*b97ee269SEmmanuel Vadot 52*b97ee269SEmmanuel Vadot pmic { 53*b97ee269SEmmanuel Vadot #address-cells = <1>; 54*b97ee269SEmmanuel Vadot #size-cells = <0>; 55*b97ee269SEmmanuel Vadot 56*b97ee269SEmmanuel Vadot pm8350_temp_alarm: temperature-sensor@a00 { 57*b97ee269SEmmanuel Vadot compatible = "qcom,spmi-temp-alarm"; 58*b97ee269SEmmanuel Vadot reg = <0xa00>; 59*b97ee269SEmmanuel Vadot interrupts = <0x1 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; 60*b97ee269SEmmanuel Vadot #thermal-sensor-cells = <0>; 61*b97ee269SEmmanuel Vadot }; 62*b97ee269SEmmanuel Vadot }; 63*b97ee269SEmmanuel Vadot 64*b97ee269SEmmanuel Vadot thermal-zones { 65*b97ee269SEmmanuel Vadot pm8350_thermal: pm8350c-thermal { 66*b97ee269SEmmanuel Vadot polling-delay-passive = <100>; 67*b97ee269SEmmanuel Vadot polling-delay = <0>; 68*b97ee269SEmmanuel Vadot thermal-sensors = <&pm8350_temp_alarm>; 69*b97ee269SEmmanuel Vadot 70*b97ee269SEmmanuel Vadot trips { 71*b97ee269SEmmanuel Vadot pm8350_trip0: trip0 { 72*b97ee269SEmmanuel Vadot temperature = <95000>; 73*b97ee269SEmmanuel Vadot hysteresis = <0>; 74*b97ee269SEmmanuel Vadot type = "passive"; 75*b97ee269SEmmanuel Vadot }; 76*b97ee269SEmmanuel Vadot 77*b97ee269SEmmanuel Vadot pm8350_crit: pm8350c-crit { 78*b97ee269SEmmanuel Vadot temperature = <115000>; 79*b97ee269SEmmanuel Vadot hysteresis = <0>; 80*b97ee269SEmmanuel Vadot type = "critical"; 81*b97ee269SEmmanuel Vadot }; 82*b97ee269SEmmanuel Vadot }; 83*b97ee269SEmmanuel Vadot }; 84*b97ee269SEmmanuel Vadot }; 85