1 // SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
4 * Copyright (c) 2021-2023, Linaro Limited
7 #include <dt-bindings/input/input.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
9 #include <dt-bindings/spmi/spmi.h>
10 #include <dt-bindings/iio/qcom,spmi-vadc.h>
15 polling-delay-passive = <100>;
18 thermal-sensors = <&pmc8180_temp>;
22 temperature = <95000>;
28 temperature = <115000>;
34 temperature = <145000>;
42 polling-delay-passive = <100>;
45 thermal-sensors = <&pmc8180c_temp>;
49 temperature = <95000>;
55 temperature = <115000>;
61 temperature = <145000>;
72 compatible = "qcom,pm8150", "qcom,spmi-pmic";
73 reg = <0x0 SPMI_USID>;
78 compatible = "qcom,pm8916-pon";
81 compatible = "qcom,pm8941-pwrkey";
82 interrupts = <0x0 0x8 0x0 IRQ_TYPE_EDGE_BOTH>;
85 linux,code = <KEY_POWER>;
91 pmc8180_temp: temp-alarm@2400 {
92 compatible = "qcom,spmi-temp-alarm";
94 interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
95 io-channels = <&pmc8180_adc ADC5_DIE_TEMP>;
96 io-channel-names = "thermal";
97 #thermal-sensor-cells = <0>;
100 pmc8180_adc: adc@3100 {
101 compatible = "qcom,spmi-adc5";
103 #address-cells = <1>;
105 #io-channel-cells = <1>;
106 interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
109 reg = <ADC5_REF_GND>;
110 qcom,pre-scaling = <1 1>;
115 reg = <ADC5_1P25VREF>;
116 qcom,pre-scaling = <1 1>;
121 reg = <ADC5_DIE_TEMP>;
122 qcom,pre-scaling = <1 1>;
127 pmc8180_adc_tm: adc-tm@3500 {
128 compatible = "qcom,spmi-adc-tm5";
130 interrupts = <0x0 0x35 0x0 IRQ_TYPE_EDGE_RISING>;
131 #thermal-sensor-cells = <1>;
132 #address-cells = <1>;
138 compatible = "qcom,pm8941-rtc";
140 reg-names = "rtc", "alarm";
141 interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>;
144 pmc8180_gpios: gpio@c000 {
145 compatible = "qcom,pmc8180-gpio", "qcom,spmi-gpio";
148 gpio-ranges = <&pmc8180_gpios 0 0 10>;
150 interrupt-controller;
151 #interrupt-cells = <2>;
156 compatible = "qcom,pmc8180", "qcom,spmi-pmic";
157 reg = <0x1 SPMI_USID>;
158 #address-cells = <1>;
163 compatible = "qcom,smb2351", "qcom,spmi-pmic";
164 reg = <0x2 SPMI_USID>;
165 #address-cells = <1>;
169 compatible = "qcom,spmi-adc-rev2";
171 #address-cells = <1>;
173 #io-channel-cells = <1>;
174 interrupts = <0x2 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
177 reg = <ADC5_REF_GND>;
178 qcom,pre-scaling = <1 1>;
183 reg = <ADC5_1P25VREF>;
184 qcom,pre-scaling = <1 1>;
190 qcom,pre-scaling = <1 1>;
197 compatible = "qcom,pm8150c", "qcom,spmi-pmic";
198 reg = <0x6 SPMI_USID>;
199 #address-cells = <1>;
204 compatible = "qcom,pm8150", "qcom,spmi-pmic";
205 reg = <0x8 SPMI_USID>;
206 #address-cells = <1>;
211 compatible = "qcom,smb2351", "qcom,spmi-pmic";
212 reg = <0xa SPMI_USID>;
213 #address-cells = <1>;
217 compatible = "qcom,spmi-adc-rev2";
219 #address-cells = <1>;
221 #io-channel-cells = <1>;
222 interrupts = <0xa 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
225 reg = <ADC5_REF_GND>;
226 qcom,pre-scaling = <1 1>;
231 reg = <ADC5_1P25VREF>;
232 qcom,pre-scaling = <1 1>;
238 qcom,pre-scaling = <1 1>;
245 compatible = "qcom,pm8150c", "qcom,spmi-pmic";
246 reg = <0x4 SPMI_USID>;
247 #address-cells = <1>;
251 compatible = "qcom,pm8916-pon";
257 pmc8180c_temp: temp-alarm@2400 {
258 compatible = "qcom,spmi-temp-alarm";
260 interrupts = <0x4 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
261 io-channels = <&pmc8180c_adc ADC5_DIE_TEMP>;
262 io-channel-names = "thermal";
263 #thermal-sensor-cells = <0>;
266 pmc8180c_adc: adc@3100 {
267 compatible = "qcom,spmi-adc5";
269 #address-cells = <1>;
271 #io-channel-cells = <1>;
272 interrupts = <0x4 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
275 reg = <ADC5_REF_GND>;
276 qcom,pre-scaling = <1 1>;
281 reg = <ADC5_1P25VREF>;
282 qcom,pre-scaling = <1 1>;
287 reg = <ADC5_DIE_TEMP>;
288 qcom,pre-scaling = <1 1>;
293 pmc8180c_adc_tm: adc-tm@3500 {
294 compatible = "qcom,spmi-adc-tm5";
296 interrupts = <0x4 0x35 0x0 IRQ_TYPE_EDGE_RISING>;
297 #thermal-sensor-cells = <1>;
298 #address-cells = <1>;
303 pmc8180c_gpios: gpio@c000 {
304 compatible = "qcom,pmc8180c-gpio", "qcom,spmi-gpio";
307 gpio-ranges = <&pmc8180c_gpios 0 0 12>;
309 interrupt-controller;
310 #interrupt-cells = <2>;
315 compatible = "qcom,pmc8180c", "qcom,spmi-pmic";
316 reg = <0x5 SPMI_USID>;
319 compatible = "qcom,pmc8180c-lpg";
321 #address-cells = <1>;