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 pmr735d-k-thermal { 12*cb7aa33aSEmmanuel Vadot polling-delay-passive = <100>; 13*cb7aa33aSEmmanuel Vadot polling-delay = <0>; 14*cb7aa33aSEmmanuel Vadot 15*cb7aa33aSEmmanuel Vadot thermal-sensors = <&pmr735d_k_temp_alarm>; 16*cb7aa33aSEmmanuel Vadot 17*cb7aa33aSEmmanuel Vadot trips { 18*cb7aa33aSEmmanuel Vadot trip0 { 19*cb7aa33aSEmmanuel Vadot temperature = <95000>; 20*cb7aa33aSEmmanuel Vadot hysteresis = <0>; 21*cb7aa33aSEmmanuel Vadot type = "passive"; 22*cb7aa33aSEmmanuel Vadot }; 23*cb7aa33aSEmmanuel Vadot 24*cb7aa33aSEmmanuel Vadot trip1 { 25*cb7aa33aSEmmanuel Vadot temperature = <115000>; 26*cb7aa33aSEmmanuel Vadot hysteresis = <0>; 27*cb7aa33aSEmmanuel Vadot type = "hot"; 28*cb7aa33aSEmmanuel Vadot }; 29*cb7aa33aSEmmanuel Vadot }; 30*cb7aa33aSEmmanuel Vadot }; 31*cb7aa33aSEmmanuel Vadot 32*cb7aa33aSEmmanuel Vadot pmr735d-l-thermal { 33*cb7aa33aSEmmanuel Vadot polling-delay-passive = <100>; 34*cb7aa33aSEmmanuel Vadot polling-delay = <0>; 35*cb7aa33aSEmmanuel Vadot 36*cb7aa33aSEmmanuel Vadot thermal-sensors = <&pmr735d_l_temp_alarm>; 37*cb7aa33aSEmmanuel Vadot 38*cb7aa33aSEmmanuel Vadot trips { 39*cb7aa33aSEmmanuel Vadot trip0 { 40*cb7aa33aSEmmanuel Vadot temperature = <95000>; 41*cb7aa33aSEmmanuel Vadot hysteresis = <0>; 42*cb7aa33aSEmmanuel Vadot type = "passive"; 43*cb7aa33aSEmmanuel Vadot }; 44*cb7aa33aSEmmanuel Vadot 45*cb7aa33aSEmmanuel Vadot trip1 { 46*cb7aa33aSEmmanuel Vadot temperature = <115000>; 47*cb7aa33aSEmmanuel Vadot hysteresis = <0>; 48*cb7aa33aSEmmanuel Vadot type = "hot"; 49*cb7aa33aSEmmanuel Vadot }; 50*cb7aa33aSEmmanuel Vadot }; 51*cb7aa33aSEmmanuel Vadot }; 52*cb7aa33aSEmmanuel Vadot }; 53*cb7aa33aSEmmanuel Vadot}; 54*cb7aa33aSEmmanuel Vadot 55*cb7aa33aSEmmanuel Vadot 56*cb7aa33aSEmmanuel Vadot&spmi_bus { 57*cb7aa33aSEmmanuel Vadot pmr735d_k: pmic@a { 58*cb7aa33aSEmmanuel Vadot compatible = "qcom,pmr735d", "qcom,spmi-pmic"; 59*cb7aa33aSEmmanuel Vadot reg = <0xa SPMI_USID>; 60*cb7aa33aSEmmanuel Vadot #address-cells = <1>; 61*cb7aa33aSEmmanuel Vadot #size-cells = <0>; 62*cb7aa33aSEmmanuel Vadot 63*cb7aa33aSEmmanuel Vadot pmr735d_k_temp_alarm: temp-alarm@a00 { 64*cb7aa33aSEmmanuel Vadot compatible = "qcom,spmi-temp-alarm"; 65*cb7aa33aSEmmanuel Vadot reg = <0xa00>; 66*cb7aa33aSEmmanuel Vadot interrupts = <0xa 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; 67*cb7aa33aSEmmanuel Vadot #thermal-sensor-cells = <0>; 68*cb7aa33aSEmmanuel Vadot }; 69*cb7aa33aSEmmanuel Vadot 70*cb7aa33aSEmmanuel Vadot pmr735d_k_gpios: gpio@8800 { 71*cb7aa33aSEmmanuel Vadot compatible = "qcom,pmr735d-gpio", "qcom,spmi-gpio"; 72*cb7aa33aSEmmanuel Vadot reg = <0x8800>; 73*cb7aa33aSEmmanuel Vadot gpio-controller; 74*cb7aa33aSEmmanuel Vadot gpio-ranges = <&pmr735d_k_gpios 0 0 2>; 75*cb7aa33aSEmmanuel Vadot #gpio-cells = <2>; 76*cb7aa33aSEmmanuel Vadot interrupt-controller; 77*cb7aa33aSEmmanuel Vadot #interrupt-cells = <2>; 78*cb7aa33aSEmmanuel Vadot }; 79*cb7aa33aSEmmanuel Vadot }; 80*cb7aa33aSEmmanuel Vadot 81*cb7aa33aSEmmanuel Vadot pmr735d_l: pmic@b { 82*cb7aa33aSEmmanuel Vadot compatible = "qcom,pmr735d", "qcom,spmi-pmic"; 83*cb7aa33aSEmmanuel Vadot reg = <0xb SPMI_USID>; 84*cb7aa33aSEmmanuel Vadot #address-cells = <1>; 85*cb7aa33aSEmmanuel Vadot #size-cells = <0>; 86*cb7aa33aSEmmanuel Vadot 87*cb7aa33aSEmmanuel Vadot pmr735d_l_temp_alarm: temp-alarm@a00 { 88*cb7aa33aSEmmanuel Vadot compatible = "qcom,spmi-temp-alarm"; 89*cb7aa33aSEmmanuel Vadot reg = <0xa00>; 90*cb7aa33aSEmmanuel Vadot interrupts = <0xb 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; 91*cb7aa33aSEmmanuel Vadot #thermal-sensor-cells = <0>; 92*cb7aa33aSEmmanuel Vadot }; 93*cb7aa33aSEmmanuel Vadot 94*cb7aa33aSEmmanuel Vadot pmr735d_l_gpios: gpio@8800 { 95*cb7aa33aSEmmanuel Vadot compatible = "qcom,pmr735d-gpio", "qcom,spmi-gpio"; 96*cb7aa33aSEmmanuel Vadot reg = <0x8800>; 97*cb7aa33aSEmmanuel Vadot gpio-controller; 98*cb7aa33aSEmmanuel Vadot gpio-ranges = <&pmr735d_l_gpios 0 0 2>; 99*cb7aa33aSEmmanuel Vadot #gpio-cells = <2>; 100*cb7aa33aSEmmanuel Vadot interrupt-controller; 101*cb7aa33aSEmmanuel Vadot #interrupt-cells = <2>; 102*cb7aa33aSEmmanuel Vadot }; 103*cb7aa33aSEmmanuel Vadot }; 104*cb7aa33aSEmmanuel Vadot}; 105