1// SPDX-License-Identifier: BSD-3-Clause 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 pmcx0102-c0-thermal { 12 polling-delay-passive = <100>; 13 thermal-sensors = <&pmcx0102_c_e0_temp_alarm>; 14 15 trips { 16 trip0 { 17 temperature = <95000>; 18 hysteresis = <0>; 19 type = "passive"; 20 }; 21 22 trip1 { 23 temperature = <115000>; 24 hysteresis = <0>; 25 type = "critical"; 26 }; 27 }; 28 }; 29 30 pmcx0102-c1-thermal { 31 polling-delay-passive = <100>; 32 thermal-sensors = <&pmcx0102_c_e1_temp_alarm>; 33 34 trips { 35 trip0 { 36 temperature = <95000>; 37 hysteresis = <0>; 38 type = "passive"; 39 }; 40 41 trip1 { 42 temperature = <115000>; 43 hysteresis = <0>; 44 type = "critical"; 45 }; 46 }; 47 }; 48 49 pmcx0102_d0_thermal: pmcx0102-d0-thermal { 50 polling-delay-passive = <100>; 51 thermal-sensors = <&pmcx0102_d_e0_temp_alarm>; 52 53 trips { 54 trip0 { 55 temperature = <95000>; 56 hysteresis = <0>; 57 type = "passive"; 58 }; 59 60 trip1 { 61 temperature = <115000>; 62 hysteresis = <0>; 63 type = "critical"; 64 }; 65 }; 66 }; 67 68 pmcx0102-d1-thermal { 69 polling-delay-passive = <100>; 70 thermal-sensors = <&pmcx0102_d_e1_temp_alarm>; 71 72 trips { 73 trip0 { 74 temperature = <95000>; 75 hysteresis = <0>; 76 type = "passive"; 77 }; 78 79 trip1 { 80 temperature = <115000>; 81 hysteresis = <0>; 82 type = "critical"; 83 }; 84 }; 85 }; 86 }; 87}; 88 89&spmi_bus0 { 90 pmcx0102_c_e0: pmic@2 { 91 compatible = "qcom,pmcx0102", "qcom,spmi-pmic"; 92 reg = <0x2 SPMI_USID>; 93 #address-cells = <1>; 94 #size-cells = <0>; 95 96 pmcx0102_c_e0_temp_alarm: temp-alarm@a00 { 97 compatible = "qcom,spmi-temp-alarm"; 98 reg = <0xa00>; 99 interrupts = <0x2 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; 100 #thermal-sensor-cells = <0>; 101 }; 102 103 pmcx0102_c_e0_gpios: gpio@8800 { 104 compatible = "qcom,pmcx0102-gpio", "qcom,spmi-gpio"; 105 reg = <0x8800>; 106 gpio-controller; 107 gpio-ranges = <&pmcx0102_c_e0_gpios 0 0 14>; 108 #gpio-cells = <2>; 109 interrupt-controller; 110 #interrupt-cells = <2>; 111 }; 112 }; 113 114 pmcx0102_d_e0: pmic@3 { 115 compatible = "qcom,pmcx0102", "qcom,spmi-pmic"; 116 reg = <0x3 SPMI_USID>; 117 #address-cells = <1>; 118 #size-cells = <0>; 119 120 pmcx0102_d_e0_temp_alarm: temp-alarm@a00 { 121 compatible = "qcom,spmi-temp-alarm"; 122 reg = <0xa00>; 123 interrupts = <0x3 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; 124 #thermal-sensor-cells = <0>; 125 }; 126 127 pmcx0102_d_e0_gpios: gpio@8800 { 128 compatible = "qcom,pmcx0102-gpio", "qcom,spmi-gpio"; 129 reg = <0x8800>; 130 gpio-controller; 131 gpio-ranges = <&pmcx0102_d_e0_gpios 0 0 14>; 132 #gpio-cells = <2>; 133 interrupt-controller; 134 #interrupt-cells = <2>; 135 }; 136 }; 137}; 138 139&spmi_bus1 { 140 pmcx0102_c_e1: pmic@2 { 141 compatible = "qcom,pmcx0102", "qcom,spmi-pmic"; 142 reg = <0x2 SPMI_USID>; 143 #address-cells = <1>; 144 #size-cells = <0>; 145 146 pmcx0102_c_e1_temp_alarm: temp-alarm@a00 { 147 compatible = "qcom,spmi-temp-alarm"; 148 reg = <0xa00>; 149 interrupts = <0x2 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; 150 #thermal-sensor-cells = <0>; 151 }; 152 153 pmcx0102_c_e1_gpios: gpio@8800 { 154 compatible = "qcom,pmcx0102-gpio", "qcom,spmi-gpio"; 155 reg = <0x8800>; 156 gpio-controller; 157 gpio-ranges = <&pmcx0102_c_e1_gpios 0 0 14>; 158 #gpio-cells = <2>; 159 interrupt-controller; 160 #interrupt-cells = <2>; 161 }; 162 }; 163 164 pmcx0102_d_e1: pmic@3 { 165 compatible = "qcom,pmcx0102", "qcom,spmi-pmic"; 166 reg = <0x3 SPMI_USID>; 167 #address-cells = <1>; 168 #size-cells = <0>; 169 170 pmcx0102_d_e1_temp_alarm: temp-alarm@a00 { 171 compatible = "qcom,spmi-temp-alarm"; 172 reg = <0xa00>; 173 interrupts = <0x3 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; 174 #thermal-sensor-cells = <0>; 175 }; 176 177 pmcx0102_d_e1_gpios: gpio@8800 { 178 compatible = "qcom,pmcx0102-gpio", "qcom,spmi-gpio"; 179 reg = <0x8800>; 180 gpio-controller; 181 gpio-ranges = <&pmcx0102_d_e1_gpios 0 0 14>; 182 #gpio-cells = <2>; 183 interrupt-controller; 184 #interrupt-cells = <2>; 185 }; 186 }; 187}; 188