0001 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/thermal/qcom,spmi-temp-alarm.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Qualcomm QPNP PMIC Temperature Alarm
0008
0009 maintainers:
0010 - Bjorn Andersson <bjorn.andersson@linaro.org>
0011
0012 description:
0013 QPNP temperature alarm peripherals are found inside of Qualcomm PMIC chips
0014 that utilize the Qualcomm SPMI implementation. These peripherals provide an
0015 interrupt signal and status register to identify high PMIC die temperature.
0016
0017 allOf:
0018 - $ref: thermal-sensor.yaml#
0019
0020 properties:
0021 compatible:
0022 const: qcom,spmi-temp-alarm
0023
0024 reg:
0025 maxItems: 1
0026
0027 interrupts:
0028 maxItems: 1
0029
0030 io-channels:
0031 items:
0032 - description: ADC channel, which reports chip die temperature
0033
0034 io-channel-names:
0035 items:
0036 - const: thermal
0037
0038 '#thermal-sensor-cells':
0039 const: 0
0040
0041 required:
0042 - compatible
0043 - reg
0044 - interrupts
0045 - '#thermal-sensor-cells'
0046
0047 additionalProperties: false
0048
0049 examples:
0050 - |
0051 #include <dt-bindings/interrupt-controller/arm-gic.h>
0052
0053 pmic {
0054 #address-cells = <1>;
0055 #size-cells = <0>;
0056
0057 pm8350_temp_alarm: temperature-sensor@a00 {
0058 compatible = "qcom,spmi-temp-alarm";
0059 reg = <0xa00>;
0060 interrupts = <0x1 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
0061 #thermal-sensor-cells = <0>;
0062 };
0063 };
0064
0065 thermal-zones {
0066 pm8350_thermal: pm8350c-thermal {
0067 polling-delay-passive = <100>;
0068 polling-delay = <0>;
0069 thermal-sensors = <&pm8350_temp_alarm>;
0070
0071 trips {
0072 pm8350_trip0: trip0 {
0073 temperature = <95000>;
0074 hysteresis = <0>;
0075 type = "passive";
0076 };
0077
0078 pm8350_crit: pm8350c-crit {
0079 temperature = <115000>;
0080 hysteresis = <0>;
0081 type = "critical";
0082 };
0083 };
0084 };
0085 };