1 // SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (C) 2022 Luca Weiss <luca.weiss@fairphone.com>
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 = <&pm7250b_temp>;
20 temperature = <95000>;
26 temperature = <115000>;
32 temperature = <145000>;
43 compatible = "qcom,pm7250b", "qcom,spmi-pmic";
44 reg = <PM7250B_SID SPMI_USID>;
48 pm7250b_temp: temp-alarm@2400 {
49 compatible = "qcom,spmi-temp-alarm";
51 interrupts = <PM7250B_SID 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
52 io-channels = <&pm7250b_adc ADC5_DIE_TEMP>;
53 io-channel-names = "thermal";
54 #thermal-sensor-cells = <0>;
57 pm7250b_adc: adc@3100 {
58 compatible = "qcom,spmi-adc5";
62 #io-channel-cells = <1>;
63 interrupts = <PM7250B_SID 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
67 qcom,pre-scaling = <1 1>;
72 reg = <ADC5_1P25VREF>;
73 qcom,pre-scaling = <1 1>;
78 reg = <ADC5_DIE_TEMP>;
79 qcom,pre-scaling = <1 1>;
84 reg = <ADC5_USB_IN_I>;
85 qcom,pre-scaling = <1 1>;
86 label = "usb_in_i_uv";
90 reg = <ADC5_USB_IN_V_16>;
91 qcom,pre-scaling = <1 16>;
92 label = "usb_in_v_div_16";
96 reg = <ADC5_CHG_TEMP>;
97 qcom,pre-scaling = <1 1>;
102 reg = <ADC5_AMUX_THM2>;
103 qcom,hw-settle-time = <200>;
104 qcom,pre-scaling = <1 1>;
105 label = "smb1390_therm";
109 reg = <ADC5_MID_CHG_DIV6>;
110 qcom,pre-scaling = <1 6>;
115 reg = <ADC5_BAT_ID_100K_PU>;
116 qcom,hw-settle-time = <200>;
117 qcom,pre-scaling = <1 1>;
123 reg = <ADC5_VPH_PWR>;
124 qcom,pre-scaling = <1 3>;
129 reg = <ADC5_VBAT_SNS>;
130 qcom,pre-scaling = <1 3>;
136 qcom,pre-scaling = <1 3>;
141 pm7250b_adc_tm: adc-tm@3500 {
142 compatible = "qcom,spmi-adc-tm5";
144 interrupts = <PM7250B_SID 0x35 0x0 IRQ_TYPE_EDGE_RISING>;
145 #thermal-sensor-cells = <1>;
146 #address-cells = <1>;
151 pm7250b_gpios: pinctrl@c000 {
152 compatible = "qcom,pm7250b-gpio", "qcom,spmi-gpio";
155 gpio-ranges = <&pm7250b_gpios 0 0 12>;
157 interrupt-controller;
158 #interrupt-cells = <2>;
163 compatible = "qcom,pm7250b", "qcom,spmi-pmic";
164 reg = <PM7250B_SID1 SPMI_USID>;
165 #address-cells = <1>;