1// SPDX-License-Identifier: BSD-3-Clause-Clear 2/* 3 * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. 4 */ 5 6#include <dt-bindings/interrupt-controller/irq.h> 7#include <dt-bindings/spmi/spmi.h> 8 9/ { 10 thermal-zones { 11 pmh0110-d-thermal { 12 polling-delay-passive = <100>; 13 14 thermal-sensors = <&pmh0110_d_e0_temp_alarm>; 15 16 trips { 17 trip0 { 18 temperature = <95000>; 19 hysteresis = <0>; 20 type = "passive"; 21 }; 22 23 trip1 { 24 temperature = <115000>; 25 hysteresis = <0>; 26 type = "hot"; 27 }; 28 29 trip2 { 30 temperature = <145000>; 31 hysteresis = <0>; 32 type = "critical"; 33 }; 34 }; 35 }; 36 37 pmh0110-f-thermal { 38 polling-delay-passive = <100>; 39 40 thermal-sensors = <&pmh0110_f_e0_temp_alarm>; 41 42 trips { 43 trip0 { 44 temperature = <95000>; 45 hysteresis = <0>; 46 type = "passive"; 47 }; 48 49 trip1 { 50 temperature = <115000>; 51 hysteresis = <0>; 52 type = "hot"; 53 }; 54 55 trip2 { 56 temperature = <145000>; 57 hysteresis = <0>; 58 type = "critical"; 59 }; 60 }; 61 }; 62 63 pmh0110-g-thermal { 64 polling-delay-passive = <100>; 65 66 thermal-sensors = <&pmh0110_g_e0_temp_alarm>; 67 68 trips { 69 trip0 { 70 temperature = <95000>; 71 hysteresis = <0>; 72 type = "passive"; 73 }; 74 75 trip1 { 76 temperature = <115000>; 77 hysteresis = <0>; 78 type = "hot"; 79 }; 80 81 trip2 { 82 temperature = <145000>; 83 hysteresis = <0>; 84 type = "critical"; 85 }; 86 }; 87 }; 88 89 pmh0110-i-thermal { 90 polling-delay-passive = <100>; 91 92 thermal-sensors = <&pmh0110_i_e0_temp_alarm>; 93 94 trips { 95 trip0 { 96 temperature = <95000>; 97 hysteresis = <0>; 98 type = "passive"; 99 }; 100 101 trip1 { 102 temperature = <115000>; 103 hysteresis = <0>; 104 type = "hot"; 105 }; 106 107 trip2 { 108 temperature = <145000>; 109 hysteresis = <0>; 110 type = "critical"; 111 }; 112 }; 113 }; 114 }; 115}; 116 117&spmi_bus0 { 118 pmh0110_d_e0: pmic@3 { 119 compatible = "qcom,pmh0110", "qcom,spmi-pmic"; 120 reg = <0x3 SPMI_USID>; 121 #address-cells = <1>; 122 #size-cells = <0>; 123 124 pmh0110_d_e0_temp_alarm: temp-alarm@a00 { 125 compatible = "qcom,spmi-temp-alarm"; 126 reg = <0xa00>; 127 interrupts = <0x3 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; 128 #thermal-sensor-cells = <0>; 129 }; 130 131 pmh0110_d_e0_gpios: gpio@8800 { 132 compatible = "qcom,pmh0110-gpio", "qcom,spmi-gpio"; 133 reg = <0x8800>; 134 gpio-controller; 135 gpio-ranges = <&pmh0110_d_e0_gpios 0 0 14>; 136 #gpio-cells = <2>; 137 interrupt-controller; 138 #interrupt-cells = <2>; 139 }; 140 }; 141 142 pmh0110_f_e0: pmic@5 { 143 compatible = "qcom,pmh0110", "qcom,spmi-pmic"; 144 reg = <0x5 SPMI_USID>; 145 #address-cells = <1>; 146 #size-cells = <0>; 147 148 pmh0110_f_e0_temp_alarm: temp-alarm@a00 { 149 compatible = "qcom,spmi-temp-alarm"; 150 reg = <0xa00>; 151 interrupts = <0x5 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; 152 #thermal-sensor-cells = <0>; 153 }; 154 155 pmh0110_f_e0_gpios: gpio@8800 { 156 compatible = "qcom,pmh0110-gpio", "qcom,spmi-gpio"; 157 reg = <0x8800>; 158 gpio-controller; 159 gpio-ranges = <&pmh0110_f_e0_gpios 0 0 14>; 160 #gpio-cells = <2>; 161 interrupt-controller; 162 #interrupt-cells = <2>; 163 }; 164 }; 165 166 pmh0110_g_e0: pmic@6 { 167 compatible = "qcom,pmh0110", "qcom,spmi-pmic"; 168 reg = <0x6 SPMI_USID>; 169 #address-cells = <1>; 170 #size-cells = <0>; 171 172 pmh0110_g_e0_temp_alarm: temp-alarm@a00 { 173 compatible = "qcom,spmi-temp-alarm"; 174 reg = <0xa00>; 175 interrupts = <0x6 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; 176 #thermal-sensor-cells = <0>; 177 }; 178 179 pmh0110_g_e0_gpios: gpio@8800 { 180 compatible = "qcom,pmh0110-gpio", "qcom,spmi-gpio"; 181 reg = <0x8800>; 182 gpio-controller; 183 gpio-ranges = <&pmh0110_g_e0_gpios 0 0 14>; 184 #gpio-cells = <2>; 185 interrupt-controller; 186 #interrupt-cells = <2>; 187 }; 188 }; 189 190 pmh0110_i_e0: pmic@8 { 191 compatible = "qcom,pmh0110", "qcom,spmi-pmic"; 192 reg = <0x8 SPMI_USID>; 193 #address-cells = <1>; 194 #size-cells = <0>; 195 196 pmh0110_i_e0_temp_alarm: temp-alarm@a00 { 197 compatible = "qcom,spmi-temp-alarm"; 198 reg = <0xa00>; 199 interrupts = <0x8 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; 200 #thermal-sensor-cells = <0>; 201 }; 202 203 pmh0110_i_e0_gpios: gpio@8800 { 204 compatible = "qcom,pmh0110-gpio", "qcom,spmi-gpio"; 205 reg = <0x8800>; 206 gpio-controller; 207 gpio-ranges = <&pmh0110_i_e0_gpios 0 0 14>; 208 #gpio-cells = <2>; 209 interrupt-controller; 210 #interrupt-cells = <2>; 211 }; 212 }; 213}; 214