1 // SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (C) 2023 Luca Weiss <luca@z3ntu.xyz>
6 #include <dt-bindings/iio/qcom,spmi-vadc.h>
7 #include <dt-bindings/interrupt-controller/irq.h>
8 #include <dt-bindings/spmi/spmi.h>
13 polling-delay-passive = <100>;
16 thermal-sensors = <&pmi632_temp>;
20 temperature = <95000>;
26 temperature = <115000>;
32 temperature = <125000>;
43 compatible = "qcom,pmi632", "qcom,spmi-pmic";
44 reg = <0x2 SPMI_USID>;
48 pmi632_temp: temp-alarm@2400 {
49 compatible = "qcom,spmi-temp-alarm";
51 interrupts = <0x2 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
52 #thermal-sensor-cells = <0>;
55 pmi632_adc: adc@3100 {
56 compatible = "qcom,spmi-adc5";
60 #io-channel-cells = <1>;
61 interrupts = <0x2 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
65 qcom,pre-scaling = <1 1>;
70 reg = <ADC5_1P25VREF>;
71 qcom,pre-scaling = <1 1>;
76 reg = <ADC5_DIE_TEMP>;
77 qcom,pre-scaling = <1 1>;
82 reg = <ADC5_USB_IN_I>;
83 qcom,pre-scaling = <1 1>;
84 label = "usb_in_i_uv";
88 reg = <ADC5_USB_IN_V_16>;
89 qcom,pre-scaling = <1 16>;
90 label = "usb_in_v_div_16";
94 reg = <ADC5_CHG_TEMP>;
95 qcom,pre-scaling = <1 1>;
100 reg = <ADC5_BAT_ID_100K_PU>;
101 qcom,hw-settle-time = <200>;
102 qcom,pre-scaling = <1 1>;
108 reg = <ADC5_VPH_PWR>;
109 qcom,pre-scaling = <1 3>;
114 reg = <ADC5_VBAT_SNS>;
115 qcom,pre-scaling = <1 3>;
120 pmi632_adc_tm: adc-tm@3500 {
121 compatible = "qcom,spmi-adc-tm5";
123 interrupts = <0x2 0x35 0x0 IRQ_TYPE_EDGE_RISING>;
124 #thermal-sensor-cells = <1>;
125 #address-cells = <1>;
130 pmi632_sdam_7: nvram@b600 {
131 compatible = "qcom,spmi-sdam";
133 #address-cells = <1>;
135 ranges = <0 0xb600 0x100>;
138 pmi632_gpios: gpio@c000 {
139 compatible = "qcom,pmi632-gpio", "qcom,spmi-gpio";
142 gpio-ranges = <&pmi632_gpios 0 0 8>;
144 interrupt-controller;
145 #interrupt-cells = <2>;
150 compatible = "qcom,pmi632", "qcom,spmi-pmic";
151 reg = <0x3 SPMI_USID>;
152 #address-cells = <1>;
156 compatible = "qcom,pmi632-lpg";
158 #address-cells = <1>;