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