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/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 = <&pm8150_temp>;
22 temperature = <95000>;
28 temperature = <115000>;
34 temperature = <145000>;
45 compatible = "qcom,pm8150", "qcom,spmi-pmic";
46 reg = <0x0 SPMI_USID>;
51 compatible = "qcom,pm8916-pon";
54 compatible = "qcom,pm8941-pwrkey";
55 interrupts = <0x0 0x8 0x0 IRQ_TYPE_EDGE_BOTH>;
58 linux,code = <KEY_POWER>;
64 pm8150_temp: temp-alarm@2400 {
65 compatible = "qcom,spmi-temp-alarm";
67 interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
68 io-channels = <&pm8150_adc ADC5_DIE_TEMP>;
69 io-channel-names = "thermal";
70 #thermal-sensor-cells = <0>;
73 pm8150_adc: adc@3100 {
74 compatible = "qcom,spmi-adc5";
78 #io-channel-cells = <1>;
79 interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
83 qcom,pre-scaling = <1 1>;
88 reg = <ADC5_1P25VREF>;
89 qcom,pre-scaling = <1 1>;
94 reg = <ADC5_DIE_TEMP>;
95 qcom,pre-scaling = <1 1>;
100 pm8150_adc_tm: adc-tm@3500 {
101 compatible = "qcom,spmi-adc-tm5";
103 interrupts = <0x0 0x35 0x0 IRQ_TYPE_EDGE_RISING>;
104 #thermal-sensor-cells = <1>;
105 #address-cells = <1>;
111 compatible = "qcom,pm8941-rtc";
113 reg-names = "rtc", "alarm";
114 interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>;
117 pm8150_gpios: gpio@c000 {
118 compatible = "qcom,pm8150-gpio";
122 interrupt-controller;
123 #interrupt-cells = <2>;
128 compatible = "qcom,pm8150", "qcom,spmi-pmic";
129 reg = <0x1 SPMI_USID>;
130 #address-cells = <1>;