159319deeSVinod Koul// SPDX-License-Identifier: BSD-3-Clause 259319deeSVinod Koul/* 359319deeSVinod Koul * Copyright (c) 2021, Linaro Limited 459319deeSVinod Koul */ 559319deeSVinod Koul 659319deeSVinod Koul#include <dt-bindings/interrupt-controller/irq.h> 759319deeSVinod Koul#include <dt-bindings/spmi/spmi.h> 859319deeSVinod Koul 959319deeSVinod Koul&spmi_bus { 1059319deeSVinod Koul pmr735a: pmic@4 { 1159319deeSVinod Koul compatible = "qcom,pmr735a", "qcom,spmi-pmic"; 1259319deeSVinod Koul reg = <0x4 SPMI_USID>; 1359319deeSVinod Koul #address-cells = <1>; 1459319deeSVinod Koul #size-cells = <0>; 1559319deeSVinod Koul 167a3544e5Ssatya priya pmr735a_temp_alarm: temp-alarm@a00 { 177a3544e5Ssatya priya compatible = "qcom,spmi-temp-alarm"; 187a3544e5Ssatya priya reg = <0xa00>; 197a3544e5Ssatya priya interrupts = <0x4 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; 207a3544e5Ssatya priya #thermal-sensor-cells = <0>; 217a3544e5Ssatya priya }; 227a3544e5Ssatya priya 2359319deeSVinod Koul pmr735a_gpios: gpio@8800 { 24f878e1baSsatya priya compatible = "qcom,pmr735a-gpio", "qcom,spmi-gpio"; 2559319deeSVinod Koul reg = <0x8800>; 2659319deeSVinod Koul gpio-controller; 27f878e1baSsatya priya gpio-ranges = <&pmr735a_gpios 0 0 4>; 2859319deeSVinod Koul #gpio-cells = <2>; 2959319deeSVinod Koul interrupt-controller; 3059319deeSVinod Koul #interrupt-cells = <2>; 3159319deeSVinod Koul }; 3259319deeSVinod Koul }; 3359319deeSVinod Koul}; 347a3544e5Ssatya priya 35*7dc11169SDmitry Baryshkov/ { 36*7dc11169SDmitry Baryshkov thermal-zones { 377a3544e5Ssatya priya pmr735a_thermal: pmr735a-thermal { 387a3544e5Ssatya priya polling-delay-passive = <100>; 397a3544e5Ssatya priya polling-delay = <0>; 407a3544e5Ssatya priya thermal-sensors = <&pmr735a_temp_alarm>; 417a3544e5Ssatya priya 427a3544e5Ssatya priya trips { 437a3544e5Ssatya priya pmr735a_trip0: trip0 { 447a3544e5Ssatya priya temperature = <95000>; 457a3544e5Ssatya priya hysteresis = <0>; 467a3544e5Ssatya priya type = "passive"; 477a3544e5Ssatya priya }; 487a3544e5Ssatya priya 497a3544e5Ssatya priya pmr735a_crit: pmr735a-crit { 507a3544e5Ssatya priya temperature = <115000>; 517a3544e5Ssatya priya hysteresis = <0>; 527a3544e5Ssatya priya type = "critical"; 537a3544e5Ssatya priya }; 547a3544e5Ssatya priya }; 557a3544e5Ssatya priya }; 567a3544e5Ssatya priya }; 57*7dc11169SDmitry Baryshkov}; 58