1 // SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (c) 2020, Konrad Dybcio
6 #include <dt-bindings/iio/qcom,spmi-vadc.h>
7 #include <dt-bindings/input/linux-event-codes.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
9 #include <dt-bindings/spmi/spmi.h>
10 #include <dt-bindings/thermal/thermal.h>
15 polling-delay-passive = <250>;
16 polling-delay = <1000>;
18 thermal-sensors = <&pm660_temp>;
21 pm660_alert0: pm660-alert0 {
22 temperature = <95000>;
26 pm660_crit: pm660-crit {
27 temperature = <125000>;
39 compatible = "qcom,pm660", "qcom,spmi-pmic";
40 reg = <0x0 SPMI_USID>;
45 compatible = "qcom,pm8941-rtc";
46 reg = <0x6000>, <0x6100>;
47 reg-names = "rtc", "alarm";
48 interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
52 compatible = "qcom,pm8916-pon";
57 compatible = "qcom,pm8941-pwrkey";
58 interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
61 linux,code = <KEY_POWER>;
66 pm660_temp: temp-alarm@2400 {
67 compatible = "qcom,spmi-temp-alarm";
69 interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
70 io-channels = <&pm660_adc ADC5_DIE_TEMP>;
71 io-channel-names = "thermal";
72 #thermal-sensor-cells = <0>;
76 compatible = "qcom,spmi-adc-rev2";
78 interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
81 #io-channel-cells = <1>;
85 qcom,decimation = <1024>;
86 qcom,pre-scaling = <1 1>;
89 vref_1p25: vref_1p25@1 {
90 reg = <ADC5_1P25VREF>;
91 qcom,decimation = <1024>;
92 qcom,pre-scaling = <1 1>;
95 die_temp: die_temp@6 {
96 reg = <ADC5_DIE_TEMP>;
97 qcom,decimation = <1024>;
98 qcom,pre-scaling = <1 1>;
101 xo_therm: xo_therm@4c {
102 reg = <ADC5_XO_THERM_100K_PU>;
103 qcom,pre-scaling = <1 1>;
104 qcom,decimation = <1024>;
105 qcom,hw-settle-time = <200>;
109 msm_therm: msm_therm@4d {
110 reg = <ADC5_AMUX_THM1_100K_PU>;
111 qcom,pre-scaling = <1 1>;
112 qcom,decimation = <1024>;
113 qcom,hw-settle-time = <200>;
117 emmc_therm: emmc_therm@4e {
118 reg = <ADC5_AMUX_THM2_100K_PU>;
119 qcom,pre-scaling = <1 1>;
120 qcom,decimation = <1024>;
121 qcom,hw-settle-time = <200>;
125 pa_therm0: thermistor0@4f {
126 reg = <ADC5_AMUX_THM3_100K_PU>;
127 qcom,pre-scaling = <1 1>;
128 qcom,decimation = <1024>;
129 qcom,hw-settle-time = <200>;
133 pa_therm1: thermistor1@50 {
134 reg = <ADC5_AMUX_THM4_100K_PU>;
135 qcom,pre-scaling = <1 1>;
136 qcom,decimation = <1024>;
137 qcom,hw-settle-time = <200>;
141 quiet_therm: quiet_therm@51 {
142 reg = <ADC5_AMUX_THM5_100K_PU>;
143 qcom,pre-scaling = <1 1>;
144 qcom,decimation = <1024>;
145 qcom,hw-settle-time = <200>;
149 vadc_vph_pwr: vph_pwr@83 {
150 reg = <ADC5_VPH_PWR>;
151 qcom,decimation = <1024>;
152 qcom,pre-scaling = <1 3>;
157 qcom,decimation = <1024>;
158 qcom,pre-scaling = <1 3>;
162 pm660_gpios: gpios@c000 {
163 compatible = "qcom,pm660-gpio";
166 gpio-ranges = <&pm660_gpios 0 0 13>;
168 interrupt-controller;
169 #interrupt-cells = <2>;
174 compatible = "qcom,pm660", "qcom,spmi-pmic";
175 reg = <0x1 SPMI_USID>;
176 #address-cells = <1>;
179 pm660_spmi_regulators: pm660-regulators {
180 compatible = "qcom,pm660-regulators";