1 #include <dt-bindings/iio/qcom,spmi-vadc.h>
2 #include <dt-bindings/interrupt-controller/irq.h>
3 #include <dt-bindings/spmi/spmi.h>
8 compatible = "qcom,pm8941", "qcom,spmi-pmic";
14 compatible = "qcom,pm8941-rtc";
17 reg-names = "rtc", "alarm";
18 interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
22 compatible = "qcom,pm8941-pwrkey";
24 interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
30 compatible = "qcom,pm8941-misc";
32 interrupts = <0x0 0x9 0 IRQ_TYPE_EDGE_BOTH>;
33 interrupt-names = "usb_id";
37 compatible = "qcom,pm8941-charger";
39 interrupts = <0x0 0x10 7 IRQ_TYPE_EDGE_BOTH>,
40 <0x0 0x10 5 IRQ_TYPE_EDGE_BOTH>,
41 <0x0 0x10 4 IRQ_TYPE_EDGE_BOTH>,
42 <0x0 0x12 1 IRQ_TYPE_EDGE_BOTH>,
43 <0x0 0x12 0 IRQ_TYPE_EDGE_BOTH>,
44 <0x0 0x13 2 IRQ_TYPE_EDGE_BOTH>,
45 <0x0 0x13 1 IRQ_TYPE_EDGE_BOTH>,
46 <0x0 0x14 1 IRQ_TYPE_EDGE_BOTH>;
47 interrupt-names = "chg-done",
56 usb-otg-in-supply = <&pm8941_5vs1>;
58 chg_otg: otg-vbus { };
61 pm8941_gpios: gpios@c000 {
62 compatible = "qcom,pm8941-gpio", "qcom,spmi-gpio";
66 interrupts = <0 0xc0 0 IRQ_TYPE_NONE>,
67 <0 0xc1 0 IRQ_TYPE_NONE>,
68 <0 0xc2 0 IRQ_TYPE_NONE>,
69 <0 0xc3 0 IRQ_TYPE_NONE>,
70 <0 0xc4 0 IRQ_TYPE_NONE>,
71 <0 0xc5 0 IRQ_TYPE_NONE>,
72 <0 0xc6 0 IRQ_TYPE_NONE>,
73 <0 0xc7 0 IRQ_TYPE_NONE>,
74 <0 0xc8 0 IRQ_TYPE_NONE>,
75 <0 0xc9 0 IRQ_TYP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_TYPE_NONE>;
124 pm8941_temp: temp-alarm@2400 {
125 compatible = "qcom,spmi-temp-alarm";
127 interrupts = <0 0x24 0 IRQ_TYPE_EDGE_RISING>;
128 io-channels = <&pm8941_vadc VADC_DIE_TEMP>;
129 io-channel-names = "thermal";
130 #thermal-sensor-cells = <0>;
133 pm8941_vadc: vadc@3100 {
134 compatible = "qcom,spmi-vadc";
136 interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
137 #address-cells = <1>;
139 #io-channel-cells = <1>;
142 reg = <VADC_DIE_TEMP>;
145 reg = <VADC_REF_625MV>;
148 reg = <VADC_REF_1250MV>;
151 reg = <VADC_GND_REF>;
154 reg = <VADC_VDD_VADC>;
158 pm8941_iadc: iadc@3600 {
159 compatible = "qcom,pm8941-iadc", "qcom,spmi-iadc";
161 interrupts = <0x0 0x36 0x0 IRQ_TYPE_EDGE_RISING>;
162 qcom,external-resistor-micro-ohms = <10000>;
166 compatible = "qcom,pm8941-coincell";
173 compatible = "qcom,pm8941", "qcom,spmi-pmic";
174 reg = <0x1 SPMI_USID>;
175 #address-cells = <1>;
178 pm8941_wled: wled@d800 {
179 compatible = "qcom,pm8941-wled";
187 compatible = "qcom,pm8941-regulators";
188 interrupts = <0x1 0x83 0x2 0>, <0x1 0x84 0x2 0>;
189 interrupt-names = "ocp-5vs1", "ocp-5vs2";
190 vin_5vs-supply = <&pm8941_5v>;
193 regulator-min-microvolt = <5000000>;
194 regulator-max-microvolt = <5000000>;
195 regulator-enable-ramp-delay = <500>;
199 regulator-enable-ramp-delay = <1000>;
201 regulator-over-current-protection;
202 qcom,ocp-max-retries = <10>;
203 qcom,ocp-retry-delay = <30>;
204 qcom,vs-soft-start-strength = <0>;
205 regulator-initial-mode = <1>;