1 // SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (c) 2022, AngeloGioacchino Del Regno
4 * <angelogioacchino.delregno@somainline.org>
5 * Copyright (c) 2022, Marijn Suijten <marijn.suijten@somainline.org>
8 #include <dt-bindings/iio/qcom,spmi-vadc.h>
9 #include <dt-bindings/input/linux-event-codes.h>
10 #include <dt-bindings/interrupt-controller/irq.h>
11 #include <dt-bindings/pinctrl/qcom,pmic-mpp.h>
12 #include <dt-bindings/spmi/spmi.h>
16 compatible = "qcom,pm8950", "qcom,spmi-pmic";
17 reg = <0x0 SPMI_USID>;
22 compatible = "qcom,pm8916-pon";
24 mode-bootloader = <0x2>;
25 mode-recovery = <0x1>;
28 compatible = "qcom,pm8941-pwrkey";
29 interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
32 linux,code = <KEY_POWER>;
36 pm8950_temp: temp-alarm@2400 {
37 compatible = "qcom,spmi-temp-alarm";
39 interrupts = <0 0x24 0 IRQ_TYPE_EDGE_RISING>;
40 io-channels = <&pm8950_vadc VADC_DIE_TEMP>;
41 io-channel-names = "thermal";
42 #thermal-sensor-cells = <0>;
45 pm8950_vadc: adc@3100 {
46 compatible = "qcom,spmi-vadc";
48 interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
51 #io-channel-cells = <1>;
55 qcom,pre-scaling = <1 1>;
61 qcom,pre-scaling = <1 1>;
66 reg = <VADC_DIE_TEMP>;
67 qcom,pre-scaling = <1 1>;
72 reg = <VADC_REF_625MV>;
73 qcom,pre-scaling = <1 1>;
78 reg = <VADC_REF_1250MV>;
79 qcom,pre-scaling = <1 1>;
85 qcom,pre-scaling = <1 1>;
86 label = "ref_buf_625mv";
95 reg = <VADC_VDD_VADC>;
100 reg = <VADC_P_MUX2_1_1>;
101 qcom,pre-scaling = <1 1>;
103 qcom,hw-settle-time = <200>;
108 reg = <VADC_P_MUX4_1_1>;
109 qcom,pre-scaling = <1 1>;
111 qcom,hw-settle-time = <200>;
112 label = "case_therm";
116 reg = <VADC_LR_MUX3_XO_THERM>;
117 qcom,pre-scaling = <1 1>;
119 qcom,hw-settle-time = <200>;
124 reg = <VADC_LR_MUX7_HW_ID>;
125 qcom,pre-scaling = <1 1>;
127 qcom,hw-settle-time = <200>;
132 reg = <VADC_LR_MUX3_BUF_XO_THERM>;
133 qcom,pre-scaling = <1 1>;
135 qcom,hw-settle-time = <200>;
136 label = "xo_therm_buf";
141 compatible = "qcom,pm8941-rtc";
142 reg = <0x6000>, <0x6100>;
143 reg-names = "rtc", "alarm";
144 interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>;
147 pm8950_mpps: mpps@a000 {
148 compatible = "qcom,pm8950-mpp", "qcom,spmi-mpp";
151 gpio-ranges = <&pm8950_mpps 0 0 4>;
153 interrupt-controller;
154 #interrupt-cells = <2>;
157 pm8950_gpios: gpio@c000 {
158 compatible = "qcom,pm8950-gpio", "qcom,spmi-gpio";
161 gpio-ranges = <&pm8950_gpios 0 0 8>;
163 interrupt-controller;
164 #interrupt-cells = <2>;
169 compatible = "qcom,pm8950", "qcom,spmi-pmic";
170 reg = <0x1 SPMI_USID>;
171 #address-cells = <1>;
174 pm8950_spmi_regulators: regulators {
175 compatible = "qcom,pm8950-regulators";