1*9d004cdaSDmitry Baryshkov// SPDX-License-Identifier: GPL-2.0 2*9d004cdaSDmitry Baryshkov#include <dt-bindings/interrupt-controller/irq.h> 3*9d004cdaSDmitry Baryshkov#include <dt-bindings/spmi/spmi.h> 4*9d004cdaSDmitry Baryshkov 5*9d004cdaSDmitry Baryshkov 6*9d004cdaSDmitry Baryshkov/ { 7*9d004cdaSDmitry Baryshkov thermal-zones { 8*9d004cdaSDmitry Baryshkov pm8841-thermal { 9*9d004cdaSDmitry Baryshkov polling-delay-passive = <100>; 10*9d004cdaSDmitry Baryshkov polling-delay = <0>; 11*9d004cdaSDmitry Baryshkov thermal-sensors = <&pm8841_temp>; 12*9d004cdaSDmitry Baryshkov 13*9d004cdaSDmitry Baryshkov trips { 14*9d004cdaSDmitry Baryshkov trip0 { 15*9d004cdaSDmitry Baryshkov temperature = <105000>; 16*9d004cdaSDmitry Baryshkov hysteresis = <2000>; 17*9d004cdaSDmitry Baryshkov type = "passive"; 18*9d004cdaSDmitry Baryshkov }; 19*9d004cdaSDmitry Baryshkov 20*9d004cdaSDmitry Baryshkov trip1 { 21*9d004cdaSDmitry Baryshkov temperature = <125000>; 22*9d004cdaSDmitry Baryshkov hysteresis = <2000>; 23*9d004cdaSDmitry Baryshkov type = "hot"; 24*9d004cdaSDmitry Baryshkov }; 25*9d004cdaSDmitry Baryshkov 26*9d004cdaSDmitry Baryshkov crit { 27*9d004cdaSDmitry Baryshkov temperature = <140000>; 28*9d004cdaSDmitry Baryshkov hysteresis = <2000>; 29*9d004cdaSDmitry Baryshkov type = "critical"; 30*9d004cdaSDmitry Baryshkov }; 31*9d004cdaSDmitry Baryshkov }; 32*9d004cdaSDmitry Baryshkov }; 33*9d004cdaSDmitry Baryshkov }; 34*9d004cdaSDmitry Baryshkov}; 35*9d004cdaSDmitry Baryshkov 36*9d004cdaSDmitry Baryshkov&spmi_bus { 37*9d004cdaSDmitry Baryshkov 38*9d004cdaSDmitry Baryshkov pm8841_0: pm8841@4 { 39*9d004cdaSDmitry Baryshkov compatible = "qcom,pm8841", "qcom,spmi-pmic"; 40*9d004cdaSDmitry Baryshkov reg = <0x4 SPMI_USID>; 41*9d004cdaSDmitry Baryshkov #address-cells = <1>; 42*9d004cdaSDmitry Baryshkov #size-cells = <0>; 43*9d004cdaSDmitry Baryshkov 44*9d004cdaSDmitry Baryshkov pm8841_mpps: mpps@a000 { 45*9d004cdaSDmitry Baryshkov compatible = "qcom,pm8841-mpp", "qcom,spmi-mpp"; 46*9d004cdaSDmitry Baryshkov reg = <0xa000>; 47*9d004cdaSDmitry Baryshkov gpio-controller; 48*9d004cdaSDmitry Baryshkov #gpio-cells = <2>; 49*9d004cdaSDmitry Baryshkov gpio-ranges = <&pm8841_mpps 0 0 4>; 50*9d004cdaSDmitry Baryshkov interrupt-controller; 51*9d004cdaSDmitry Baryshkov #interrupt-cells = <2>; 52*9d004cdaSDmitry Baryshkov }; 53*9d004cdaSDmitry Baryshkov 54*9d004cdaSDmitry Baryshkov pm8841_temp: temp-alarm@2400 { 55*9d004cdaSDmitry Baryshkov compatible = "qcom,spmi-temp-alarm"; 56*9d004cdaSDmitry Baryshkov reg = <0x2400>; 57*9d004cdaSDmitry Baryshkov interrupts = <4 0x24 0 IRQ_TYPE_EDGE_RISING>; 58*9d004cdaSDmitry Baryshkov #thermal-sensor-cells = <0>; 59*9d004cdaSDmitry Baryshkov }; 60*9d004cdaSDmitry Baryshkov }; 61*9d004cdaSDmitry Baryshkov 62*9d004cdaSDmitry Baryshkov pm8841_1: pm8841@5 { 63*9d004cdaSDmitry Baryshkov compatible = "qcom,pm8841", "qcom,spmi-pmic"; 64*9d004cdaSDmitry Baryshkov reg = <0x5 SPMI_USID>; 65*9d004cdaSDmitry Baryshkov #address-cells = <1>; 66*9d004cdaSDmitry Baryshkov #size-cells = <0>; 67*9d004cdaSDmitry Baryshkov }; 68*9d004cdaSDmitry Baryshkov}; 69