1 // SPDX-License-Identifier: GPL-2.0
2 #include <dt-bindings/iio/qcom,spmi-vadc.h>
3 #include <dt-bindings/interrupt-controller/irq.h>
4 #include <dt-bindings/spmi/spmi.h>
10 polling-delay-passive = <100>;
12 thermal-sensors = <&pm8941_temp>;
16 temperature = <105000>;
22 temperature = <125000>;
28 temperature = <145000>;
40 compatible = "qcom,pm8941", "qcom,spmi-pmic";
41 reg = <0x0 SPMI_USID>;
46 compatible = "qcom,pm8941-rtc";
49 reg-names = "rtc", "alarm";
50 interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
54 compatible = "qcom,pm8941-pon";
58 compatible = "qcom,pm8941-pwrkey";
59 interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
65 compatible = "qcom,pm8941-resin";
66 interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>;
73 usb_id: usb-detect@900 {
74 compatible = "qcom,pm8941-misc";
76 interrupts = <0x0 0x9 0 IRQ_TYPE_EDGE_BOTH>;
77 interrupt-names = "usb_id";
81 compatible = "qcom,pm8941-charger";
83 interrupts = <0x0 0x10 7 IRQ_TYPE_EDGE_BOTH>,
84 <0x0 0x10 5 IRQ_TYPE_EDGE_BOTH>,
85 <0x0 0x10 4 IRQ_TYPE_EDGE_BOTH>,
86 <0x0 0x12 1 IRQ_TYPE_EDGE_BOTH>,
87 <0x0 0x12 0 IRQ_TYPE_EDGE_BOTH>,
88 <0x0 0x13 2 IRQ_TYPE_EDGE_BOTH>,
89 <0x0 0x13 1 IRQ_TYPE_EDGE_BOTH>,
90 <0x0 0x14 1 IRQ_TYPE_EDGE_BOTH>;
91 interrupt-names = "chg-done",
100 usb-otg-in-supply = <&pm8941_5vs1>;
104 chg_otg: otg-vbus { };
107 pm8941_gpios: gpio@c000 {
108 compatible = "qcom,pm8941-gpio", "qcom,spmi-gpio";
111 gpio-ranges = <&pm8941_gpios 0 0 36>;
113 interrupt-controller;
114 #interrupt-cells = <2>;
116 boost_bypass_n_pin: boost-bypass-state {
122 pm8941_mpps: mpps@a000 {
123 compatible = "qcom,pm8941-mpp", "qcom,spmi-mpp";
127 gpio-ranges = <&pm8941_mpps 0 0 8>;
128 interrupt-controller;
129 #interrupt-cells = <2>;
132 pm8941_temp: temp-alarm@2400 {
133 compatible = "qcom,spmi-temp-alarm";
135 interrupts = <0 0x24 0 IRQ_TYPE_EDGE_RISING>;
136 io-channels = <&pm8941_vadc VADC_DIE_TEMP>;
137 io-channel-names = "thermal";
138 #thermal-sensor-cells = <0>;
141 pm8941_vadc: adc@3100 {
142 compatible = "qcom,spmi-vadc";
144 interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
145 #address-cells = <1>;
147 #io-channel-cells = <1>;
151 reg = <VADC_VBAT_SNS>;
155 reg = <VADC_DIE_TEMP>;
159 reg = <VADC_REF_625MV>;
163 reg = <VADC_REF_1250MV>;
167 reg = <VADC_GND_REF>;
171 reg = <VADC_VDD_VADC>;
175 reg = <VADC_LR_MUX1_BAT_THERM>;
179 pm8941_iadc: adc@3600 {
180 compatible = "qcom,pm8941-iadc", "qcom,spmi-iadc";
182 interrupts = <0x0 0x36 0x0 IRQ_TYPE_EDGE_RISING>;
183 qcom,external-resistor-micro-ohms = <10000>;
186 pm8941_coincell: charger@2800 {
187 compatible = "qcom,pm8941-coincell";
194 compatible = "qcom,pm8941", "qcom,spmi-pmic";
195 reg = <0x1 SPMI_USID>;
196 #address-cells = <1>;
200 compatible = "qcom,pm8941-lpg";
202 #address-cells = <1>;
209 pm8941_vib: vibrator@c000 {
210 compatible = "qcom,pm8916-vib";
215 pm8941_wled: wled@d800 {
216 compatible = "qcom,pm8941-wled";
224 compatible = "qcom,pm8941-regulators";
225 interrupts = <0x1 0x83 0x2 0>, <0x1 0x84 0x2 0>;
226 interrupt-names = "ocp-5vs1", "ocp-5vs2";
227 vin_5vs-supply = <&pm8941_5v>;
230 regulator-min-microvolt = <5000000>;
231 regulator-max-microvolt = <5000000>;
232 regulator-enable-ramp-delay = <500>;
236 regulator-enable-ramp-delay = <1000>;
238 regulator-over-current-protection;
239 qcom,ocp-max-retries = <10>;
240 qcom,ocp-retry-delay = <30>;
241 qcom,vs-soft-start-strength = <0>;
242 regulator-initial-mode = <1>;
246 regulator-enable-ramp-delay = <1000>;
248 regulator-over-current-protection;
249 qcom,ocp-max-retries = <10>;
250 qcom,ocp-retry-delay = <30>;
251 qcom,vs-soft-start-strength = <0>;
252 regulator-initial-mode = <1>;