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>
9 compatible = "qcom,pm8941", "qcom,spmi-pmic";
10 reg = <0x0 SPMI_USID>;
15 compatible = "qcom,pm8941-rtc";
18 reg-names = "rtc", "alarm";
19 interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
23 compatible = "qcom,pm8941-pwrkey";
25 interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
31 compatible = "qcom,pm8941-misc";
33 interrupts = <0x0 0x9 0 IRQ_TYPE_EDGE_BOTH>;
34 interrupt-names = "usb_id";
38 compatible = "qcom,pm8941-charger";
40 interrupts = <0x0 0x10 7 IRQ_TYPE_EDGE_BOTH>,
41 <0x0 0x10 5 IRQ_TYPE_EDGE_BOTH>,
42 <0x0 0x10 4 IRQ_TYPE_EDGE_BOTH>,
43 <0x0 0x12 1 IRQ_TYPE_EDGE_BOTH>,
44 <0x0 0x12 0 IRQ_TYPE_EDGE_BOTH>,
45 <0x0 0x13 2 IRQ_TYPE_EDGE_BOTH>,
46 <0x0 0x13 1 IRQ_TYPE_EDGE_BOTH>,
47 <0x0 0x14 1 IRQ_TYPE_EDGE_BOTH>;
48 interrupt-names = "chg-done",
57 usb-otg-in-supply = <&pm8941_5vs1>;
59 chg_otg: otg-vbus { };
62 pm8941_gpios: gpios@c000 {
63 compatible = "qcom,pm8941-gpio", "qcom,spmi-gpio";
66 gpio-ranges = <&pm8941_gpios 0 0 36>;
69 #interrupt-cells = <2>;
71 boost_bypass_n_pin: boost-bypass {
77 pm8941_mpps: mpps@a000 {
78 compatible = "qcom,pm8941-mpp", "qcom,spmi-mpp";
82 gpio-ranges = <&pm8941_mpps 0 0 8>;
84 #interrupt-cells = <2>;
87 pm8941_temp: temp-alarm@2400 {
88 compatible = "qcom,spmi-temp-alarm";
90 interrupts = <0 0x24 0 IRQ_TYPE_EDGE_RISING>;
91 io-channels = <&pm8941_vadc VADC_DIE_TEMP>;
92 io-channel-names = "thermal";
93 #thermal-sensor-cells = <0>;
96 pm8941_vadc: vadc@3100 {
97 compatible = "qcom,spmi-vadc";
99 interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
100 #address-cells = <1>;
102 #io-channel-cells = <1>;
105 reg = <VADC_LR_MUX1_BAT_THERM>;
108 reg = <VADC_DIE_TEMP>;
111 reg = <VADC_REF_625MV>;
114 reg = <VADC_REF_1250MV>;
117 reg = <VADC_GND_REF>;
120 reg = <VADC_VDD_VADC>;
123 reg = <VADC_VBAT_SNS>;
127 pm8941_iadc: iadc@3600 {
128 compatible = "qcom,pm8941-iadc", "qcom,spmi-iadc";
130 interrupts = <0x0 0x36 0x0 IRQ_TYPE_EDGE_RISING>;
131 qcom,external-resistor-micro-ohms = <10000>;
134 pm8941_coincell: coincell@2800 {
135 compatible = "qcom,pm8941-coincell";
142 compatible = "qcom,pm8941", "qcom,spmi-pmic";
143 reg = <0x1 SPMI_USID>;
144 #address-cells = <1>;
147 pm8941_wled: wled@d800 {
148 compatible = "qcom,pm8941-wled";
156 compatible = "qcom,pm8941-regulators";
157 interrupts = <0x1 0x83 0x2 0>, <0x1 0x84 0x2 0>;
158 interrupt-names = "ocp-5vs1", "ocp-5vs2";
159 vin_5vs-supply = <&pm8941_5v>;
162 regulator-min-microvolt = <5000000>;
163 regulator-max-microvolt = <5000000>;
164 regulator-enable-ramp-delay = <500>;
168 regulator-enable-ramp-delay = <1000>;
170 regulator-over-current-protection;
171 qcom,ocp-max-retries = <10>;
172 qcom,ocp-retry-delay = <30>;
173 qcom,vs-soft-start-strength = <0>;
174 regulator-initial-mode = <1>;
178 regulator-enable-ramp-delay = <1000>;
180 regulator-over-current-protection;
181 qcom,ocp-max-retries = <10>;
182 qcom,ocp-retry-delay = <30>;
183 qcom,vs-soft-start-strength = <0>;
184 regulator-initial-mode = <1>;