1 // SPDX-License-Identifier: GPL-2.0
2 #include <dt-bindings/iio/qcom,spmi-vadc.h>
3 #include <dt-bindings/input/linux-event-codes.h>
4 #include <dt-bindings/interrupt-controller/irq.h>
5 #include <dt-bindings/spmi/spmi.h>
10 polling-delay-passive = <250>;
11 polling-delay = <1000>;
13 thermal-sensors = <&pm8994_temp>;
16 pm8994_alert0: pm8994-alert0 {
17 temperature = <95000>;
21 pm8994_crit: pm8994-crit {
22 temperature = <125000>;
34 compatible = "qcom,pm8994", "qcom,spmi-pmic";
35 reg = <0x0 SPMI_USID>;
40 compatible = "qcom,pm8941-rtc";
41 reg = <0x6000>, <0x6100>;
42 reg-names = "rtc", "alarm";
43 interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
47 compatible = "qcom,pm8916-pon";
49 mode-bootloader = <0x2>;
50 mode-recovery = <0x1>;
53 compatible = "qcom,pm8941-pwrkey";
54 interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
57 linux,code = <KEY_POWER>;
61 compatible = "qcom,pm8941-resin";
62 interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>;
69 pm8994_temp: temp-alarm@2400 {
70 compatible = "qcom,spmi-temp-alarm";
72 interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
73 io-channels = <&pm8994_vadc VADC_DIE_TEMP>;
74 io-channel-names = "thermal";
75 #thermal-sensor-cells = <0>;
78 pm8994_vadc: adc@3100 {
79 compatible = "qcom,spmi-vadc";
81 interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
84 #io-channel-cells = <1>;
88 qcom,pre-scaling = <1 3>;
92 reg = <VADC_DIE_TEMP>;
96 reg = <VADC_REF_625MV>;
100 reg = <VADC_REF_1250MV>;
101 label = "ref_1250mv";
104 reg = <VADC_GND_REF>;
107 reg = <VADC_VDD_VADC>;
111 pm8994_gpios: gpios@c000 {
112 compatible = "qcom,pm8994-gpio", "qcom,spmi-gpio";
115 gpio-ranges = <&pm8994_gpios 0 0 22>;
117 interrupt-controller;
118 #interrupt-cells = <2>;
121 pm8994_mpps: mpps@a000 {
122 compatible = "qcom,pm8994-mpp", "qcom,spmi-mpp";
126 gpio-ranges = <&pm8994_mpps 0 0 8>;
127 interrupt-controller;
128 #interrupt-cells = <2>;
133 compatible = "qcom,pm8994", "qcom,spmi-pmic";
134 reg = <0x1 SPMI_USID>;
135 #address-cells = <1>;
139 compatible = "qcom,pm8994-lpg";
141 #address-cells = <1>;
148 pm8994_spmi_regulators: regulators {
149 compatible = "qcom,pm8994-regulators";