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