1 // SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
4 * Copyright (c) 2019, Linaro Limited
7 #include <dt-bindings/iio/qcom,spmi-vadc.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
9 #include <dt-bindings/spmi/spmi.h>
14 polling-delay-passive = <100>;
17 thermal-sensors = <&pm8150b_temp>;
21 temperature = <95000>;
27 temperature = <115000>;
33 temperature = <145000>;
44 compatible = "qcom,pm8150b", "qcom,spmi-pmic";
45 reg = <0x2 SPMI_USID>;
50 compatible = "qcom,pm8916-pon";
56 pm8150b_temp: temp-alarm@2400 {
57 compatible = "qcom,spmi-temp-alarm";
59 interrupts = <0x2 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
60 io-channels = <&pm8150b_adc ADC5_DIE_TEMP>;
61 io-channel-names = "thermal";
62 #thermal-sensor-cells = <0>;
65 pm8150b_adc: adc@3100 {
66 compatible = "qcom,spmi-adc5";
70 #io-channel-cells = <1>;
71 interrupts = <0x2 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
75 qcom,pre-scaling = <1 1>;
80 reg = <ADC5_1P25VREF>;
81 qcom,pre-scaling = <1 1>;
86 reg = <ADC5_DIE_TEMP>;
87 qcom,pre-scaling = <1 1>;
92 reg = <ADC5_CHG_TEMP>;
93 qcom,pre-scaling = <1 1>;
98 pm8150b_gpios: gpio@c000 {
99 compatible = "qcom,pm8150b-gpio";
103 interrupt-controller;
104 #interrupt-cells = <2>;
109 compatible = "qcom,pm8150b", "qcom,spmi-pmic";
110 reg = <0x3 SPMI_USID>;
111 #address-cells = <1>;