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