1*cb7aa33aSEmmanuel Vadot// SPDX-License-Identifier: BSD-3-Clause 2*cb7aa33aSEmmanuel Vadot/* 3*cb7aa33aSEmmanuel Vadot * Copyright (c) 2022, Linaro Limited 4*cb7aa33aSEmmanuel Vadot */ 5*cb7aa33aSEmmanuel Vadot 6*cb7aa33aSEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h> 7*cb7aa33aSEmmanuel Vadot#include <dt-bindings/spmi/spmi.h> 8*cb7aa33aSEmmanuel Vadot 9*cb7aa33aSEmmanuel Vadot/ { 10*cb7aa33aSEmmanuel Vadot thermal-zones { 11*cb7aa33aSEmmanuel Vadot pm8010-m-thermal { 12*cb7aa33aSEmmanuel Vadot polling-delay-passive = <100>; 13*cb7aa33aSEmmanuel Vadot 14*cb7aa33aSEmmanuel Vadot thermal-sensors = <&pm8010_m_temp_alarm>; 15*cb7aa33aSEmmanuel Vadot 16*cb7aa33aSEmmanuel Vadot trips { 17*cb7aa33aSEmmanuel Vadot trip0 { 18*cb7aa33aSEmmanuel Vadot temperature = <95000>; 19*cb7aa33aSEmmanuel Vadot hysteresis = <0>; 20*cb7aa33aSEmmanuel Vadot type = "passive"; 21*cb7aa33aSEmmanuel Vadot }; 22*cb7aa33aSEmmanuel Vadot 23*cb7aa33aSEmmanuel Vadot trip1 { 24*cb7aa33aSEmmanuel Vadot temperature = <115000>; 25*cb7aa33aSEmmanuel Vadot hysteresis = <0>; 26*cb7aa33aSEmmanuel Vadot type = "hot"; 27*cb7aa33aSEmmanuel Vadot }; 28*cb7aa33aSEmmanuel Vadot }; 29*cb7aa33aSEmmanuel Vadot }; 30*cb7aa33aSEmmanuel Vadot 31*cb7aa33aSEmmanuel Vadot pm8010-n-thermal { 32*cb7aa33aSEmmanuel Vadot polling-delay-passive = <100>; 33*cb7aa33aSEmmanuel Vadot 34*cb7aa33aSEmmanuel Vadot thermal-sensors = <&pm8010_n_temp_alarm>; 35*cb7aa33aSEmmanuel Vadot 36*cb7aa33aSEmmanuel Vadot trips { 37*cb7aa33aSEmmanuel Vadot trip0 { 38*cb7aa33aSEmmanuel Vadot temperature = <95000>; 39*cb7aa33aSEmmanuel Vadot hysteresis = <0>; 40*cb7aa33aSEmmanuel Vadot type = "passive"; 41*cb7aa33aSEmmanuel Vadot }; 42*cb7aa33aSEmmanuel Vadot 43*cb7aa33aSEmmanuel Vadot trip1 { 44*cb7aa33aSEmmanuel Vadot temperature = <115000>; 45*cb7aa33aSEmmanuel Vadot hysteresis = <0>; 46*cb7aa33aSEmmanuel Vadot type = "hot"; 47*cb7aa33aSEmmanuel Vadot }; 48*cb7aa33aSEmmanuel Vadot }; 49*cb7aa33aSEmmanuel Vadot }; 50*cb7aa33aSEmmanuel Vadot }; 51*cb7aa33aSEmmanuel Vadot}; 52*cb7aa33aSEmmanuel Vadot 53*cb7aa33aSEmmanuel Vadot 54*cb7aa33aSEmmanuel Vadot&spmi_bus { 55*cb7aa33aSEmmanuel Vadot pm8010_m: pmic@c { 56*cb7aa33aSEmmanuel Vadot compatible = "qcom,pm8010", "qcom,spmi-pmic"; 57*cb7aa33aSEmmanuel Vadot reg = <0xc SPMI_USID>; 58*cb7aa33aSEmmanuel Vadot #address-cells = <1>; 59*cb7aa33aSEmmanuel Vadot #size-cells = <0>; 60*cb7aa33aSEmmanuel Vadot 61*cb7aa33aSEmmanuel Vadot pm8010_m_temp_alarm: temp-alarm@2400 { 62*cb7aa33aSEmmanuel Vadot compatible = "qcom,spmi-temp-alarm"; 63*cb7aa33aSEmmanuel Vadot reg = <0x2400>; 64*cb7aa33aSEmmanuel Vadot interrupts = <0xc 0x24 0x0 IRQ_TYPE_EDGE_BOTH>; 65*cb7aa33aSEmmanuel Vadot #thermal-sensor-cells = <0>; 66*cb7aa33aSEmmanuel Vadot }; 67*cb7aa33aSEmmanuel Vadot }; 68*cb7aa33aSEmmanuel Vadot 69*cb7aa33aSEmmanuel Vadot pm8010_n: pmic@d { 70*cb7aa33aSEmmanuel Vadot compatible = "qcom,pm8010", "qcom,spmi-pmic"; 71*cb7aa33aSEmmanuel Vadot reg = <0xd SPMI_USID>; 72*cb7aa33aSEmmanuel Vadot #address-cells = <1>; 73*cb7aa33aSEmmanuel Vadot #size-cells = <0>; 74*cb7aa33aSEmmanuel Vadot 75*cb7aa33aSEmmanuel Vadot pm8010_n_temp_alarm: temp-alarm@2400 { 76*cb7aa33aSEmmanuel Vadot compatible = "qcom,spmi-temp-alarm"; 77*cb7aa33aSEmmanuel Vadot reg = <0x2400>; 78*cb7aa33aSEmmanuel Vadot interrupts = <0xd 0x24 0x0 IRQ_TYPE_EDGE_BOTH>; 79*cb7aa33aSEmmanuel Vadot #thermal-sensor-cells = <0>; 80*cb7aa33aSEmmanuel Vadot }; 81*cb7aa33aSEmmanuel Vadot }; 82*cb7aa33aSEmmanuel Vadot}; 83