1094da73fSVinod Koul// SPDX-License-Identifier: BSD-3-Clause 2094da73fSVinod Koul/* 3094da73fSVinod Koul * Copyright (c) 2021, Linaro Limited 4094da73fSVinod Koul */ 5094da73fSVinod Koul 6094da73fSVinod Koul#include <dt-bindings/interrupt-controller/irq.h> 7094da73fSVinod Koul#include <dt-bindings/spmi/spmi.h> 8094da73fSVinod Koul 9*7a79b95fSDmitry Baryshkov/ { 10*7a79b95fSDmitry Baryshkov thermal-zones { 11*7a79b95fSDmitry Baryshkov pm8350_thermal: pm8350c-thermal { 12*7a79b95fSDmitry Baryshkov polling-delay-passive = <100>; 13*7a79b95fSDmitry Baryshkov polling-delay = <0>; 14*7a79b95fSDmitry Baryshkov thermal-sensors = <&pm8350_temp_alarm>; 15*7a79b95fSDmitry Baryshkov 16*7a79b95fSDmitry Baryshkov trips { 17*7a79b95fSDmitry Baryshkov pm8350_trip0: trip0 { 18*7a79b95fSDmitry Baryshkov temperature = <95000>; 19*7a79b95fSDmitry Baryshkov hysteresis = <0>; 20*7a79b95fSDmitry Baryshkov type = "passive"; 21*7a79b95fSDmitry Baryshkov }; 22*7a79b95fSDmitry Baryshkov 23*7a79b95fSDmitry Baryshkov pm8350_crit: pm8350c-crit { 24*7a79b95fSDmitry Baryshkov temperature = <115000>; 25*7a79b95fSDmitry Baryshkov hysteresis = <0>; 26*7a79b95fSDmitry Baryshkov type = "critical"; 27*7a79b95fSDmitry Baryshkov }; 28*7a79b95fSDmitry Baryshkov }; 29*7a79b95fSDmitry Baryshkov }; 30*7a79b95fSDmitry Baryshkov }; 31*7a79b95fSDmitry Baryshkov}; 32*7a79b95fSDmitry Baryshkov 33094da73fSVinod Koul&spmi_bus { 34094da73fSVinod Koul pm8350: pmic@1 { 35094da73fSVinod Koul compatible = "qcom,pm8350", "qcom,spmi-pmic"; 36094da73fSVinod Koul reg = <0x1 SPMI_USID>; 37094da73fSVinod Koul #address-cells = <1>; 38094da73fSVinod Koul #size-cells = <0>; 39094da73fSVinod Koul 40*7a79b95fSDmitry Baryshkov pm8350_temp_alarm: temp-alarm@a00 { 41*7a79b95fSDmitry Baryshkov compatible = "qcom,spmi-temp-alarm"; 42*7a79b95fSDmitry Baryshkov reg = <0xa00>; 43*7a79b95fSDmitry Baryshkov interrupts = <0x1 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; 44*7a79b95fSDmitry Baryshkov #thermal-sensor-cells = <0>; 45*7a79b95fSDmitry Baryshkov }; 46*7a79b95fSDmitry Baryshkov 47094da73fSVinod Koul pm8350_gpios: gpio@8800 { 48094da73fSVinod Koul compatible = "qcom,pm8350-gpio"; 49094da73fSVinod Koul reg = <0x8800>; 50094da73fSVinod Koul gpio-controller; 51094da73fSVinod Koul #gpio-cells = <2>; 52094da73fSVinod Koul interrupt-controller; 53094da73fSVinod Koul #interrupt-cells = <2>; 54094da73fSVinod Koul }; 55094da73fSVinod Koul }; 56094da73fSVinod Koul}; 57