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,pm8998-pon";
54 mode-bootloader = <0x2>;
55 mode-recovery = <0x1>;
58 compatible = "qcom,pm8941-pwrkey";
59 interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
62 linux,code = <KEY_POWER>;
68 compatible = "qcom,pm8941-resin";
69 interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>;
77 pm660_temp: temp-alarm@2400 {
78 compatible = "qcom,spmi-temp-alarm";
80 interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
81 io-channels = <&pm660_adc ADC5_DIE_TEMP>;
82 io-channel-names = "thermal";
83 #thermal-sensor-cells = <0>;
87 compatible = "qcom,spmi-adc-rev2";
89 interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
92 #io-channel-cells = <1>;
96 qcom,decimation = <1024>;
97 qcom,pre-scaling = <1 1>;
102 reg = <ADC5_1P25VREF>;
103 qcom,decimation = <1024>;
104 qcom,pre-scaling = <1 1>;
109 reg = <ADC5_DIE_TEMP>;
110 qcom,decimation = <1024>;
111 qcom,pre-scaling = <1 1>;
116 reg = <ADC5_XO_THERM_100K_PU>;
117 qcom,pre-scaling = <1 1>;
118 qcom,decimation = <1024>;
119 qcom,hw-settle-time = <200>;
125 reg = <ADC5_AMUX_THM1_100K_PU>;
126 qcom,pre-scaling = <1 1>;
127 qcom,decimation = <1024>;
128 qcom,hw-settle-time = <200>;
134 reg = <ADC5_AMUX_THM2_100K_PU>;
135 qcom,pre-scaling = <1 1>;
136 qcom,decimation = <1024>;
137 qcom,hw-settle-time = <200>;
139 label = "emmc_therm";
143 reg = <ADC5_AMUX_THM3_100K_PU>;
144 qcom,pre-scaling = <1 1>;
145 qcom,decimation = <1024>;
146 qcom,hw-settle-time = <200>;
152 reg = <ADC5_AMUX_THM4_100K_PU>;
153 qcom,pre-scaling = <1 1>;
154 qcom,decimation = <1024>;
155 qcom,hw-settle-time = <200>;
161 reg = <ADC5_AMUX_THM5_100K_PU>;
162 qcom,pre-scaling = <1 1>;
163 qcom,decimation = <1024>;
164 qcom,hw-settle-time = <200>;
166 label = "quiet_therm";
170 reg = <ADC5_VPH_PWR>;
171 qcom,decimation = <1024>;
172 qcom,pre-scaling = <1 3>;
178 qcom,decimation = <1024>;
179 qcom,pre-scaling = <1 3>;
184 pm660_gpios: gpio@c000 {
185 compatible = "qcom,pm660-gpio", "qcom,spmi-gpio";
188 gpio-ranges = <&pm660_gpios 0 0 13>;
190 interrupt-controller;
191 #interrupt-cells = <2>;
196 compatible = "qcom,pm660", "qcom,spmi-pmic";
197 reg = <0x1 SPMI_USID>;
198 #address-cells = <1>;
201 pm660_spmi_regulators: regulators {
202 compatible = "qcom,pm660-regulators";