1*d5b0e70fSEmmanuel Vadot// SPDX-License-Identifier: BSD-3-Clause 2*d5b0e70fSEmmanuel Vadot/* 3*d5b0e70fSEmmanuel Vadot * Copyright (c) 2022, Linaro Limited 4*d5b0e70fSEmmanuel Vadot */ 5*d5b0e70fSEmmanuel Vadot 6*d5b0e70fSEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h> 7*d5b0e70fSEmmanuel Vadot#include <dt-bindings/spmi/spmi.h> 8*d5b0e70fSEmmanuel Vadot 9*d5b0e70fSEmmanuel Vadot/ { 10*d5b0e70fSEmmanuel Vadot thermal-zones { 11*d5b0e70fSEmmanuel Vadot pm8450-thermal { 12*d5b0e70fSEmmanuel Vadot polling-delay-passive = <100>; 13*d5b0e70fSEmmanuel Vadot 14*d5b0e70fSEmmanuel Vadot thermal-sensors = <&pm8450_temp_alarm>; 15*d5b0e70fSEmmanuel Vadot 16*d5b0e70fSEmmanuel Vadot trips { 17*d5b0e70fSEmmanuel Vadot trip0 { 18*d5b0e70fSEmmanuel Vadot temperature = <95000>; 19*d5b0e70fSEmmanuel Vadot hysteresis = <0>; 20*d5b0e70fSEmmanuel Vadot type = "passive"; 21*d5b0e70fSEmmanuel Vadot }; 22*d5b0e70fSEmmanuel Vadot 23*d5b0e70fSEmmanuel Vadot trip1 { 24*d5b0e70fSEmmanuel Vadot temperature = <115000>; 25*d5b0e70fSEmmanuel Vadot hysteresis = <0>; 26*d5b0e70fSEmmanuel Vadot type = "hot"; 27*d5b0e70fSEmmanuel Vadot }; 28*d5b0e70fSEmmanuel Vadot }; 29*d5b0e70fSEmmanuel Vadot }; 30*d5b0e70fSEmmanuel Vadot }; 31*d5b0e70fSEmmanuel Vadot}; 32*d5b0e70fSEmmanuel Vadot 33*d5b0e70fSEmmanuel Vadot 34*d5b0e70fSEmmanuel Vadot&spmi_bus { 35*d5b0e70fSEmmanuel Vadot pm8450: pmic@7 { 36*d5b0e70fSEmmanuel Vadot compatible = "qcom,pm8450", "qcom,spmi-pmic"; 37*d5b0e70fSEmmanuel Vadot reg = <0x7 SPMI_USID>; 38*d5b0e70fSEmmanuel Vadot #address-cells = <1>; 39*d5b0e70fSEmmanuel Vadot #size-cells = <0>; 40*d5b0e70fSEmmanuel Vadot 41*d5b0e70fSEmmanuel Vadot pm8450_temp_alarm: temp-alarm@a00 { 42*d5b0e70fSEmmanuel Vadot compatible = "qcom,spmi-temp-alarm"; 43*d5b0e70fSEmmanuel Vadot reg = <0xa00>; 44*d5b0e70fSEmmanuel Vadot interrupts = <0x7 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; 45*d5b0e70fSEmmanuel Vadot #thermal-sensor-cells = <0>; 46*d5b0e70fSEmmanuel Vadot }; 47*d5b0e70fSEmmanuel Vadot 48*d5b0e70fSEmmanuel Vadot pm8450_gpios: gpio@8800 { 49*d5b0e70fSEmmanuel Vadot compatible = "qcom,pm8450-gpio", "qcom,spmi-gpio"; 50*d5b0e70fSEmmanuel Vadot reg = <0x8800>; 51*d5b0e70fSEmmanuel Vadot gpio-controller; 52*d5b0e70fSEmmanuel Vadot gpio-ranges = <&pm8450_gpios 0 0 4>; 53*d5b0e70fSEmmanuel Vadot #gpio-cells = <2>; 54*d5b0e70fSEmmanuel Vadot interrupt-controller; 55*d5b0e70fSEmmanuel Vadot #interrupt-cells = <2>; 56*d5b0e70fSEmmanuel Vadot }; 57*d5b0e70fSEmmanuel Vadot }; 58*d5b0e70fSEmmanuel Vadot}; 59