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,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>;
29 pm8941_gpios: gpios@c000 {
30 compatible = "qcom,pm8941-gpio";
31 reg = <0xc000 0x2400>;
34 interrupts = <0 0xc0 0 IRQ_TYPE_NONE>,
35 <0 0xc1 0 IRQ_TYPE_NONE>,
36 <0 0xc2 0 IRQ_TYPE_NONE>,
37 <0 0xc3 0 IRQ_TYPE_NONE>,
38 <0 0xc4 0 IRQ_TYPE_NONE>,
39 <0 0xc5 0 IRQ_TYPE_NONE>,
40 <0 0xc6 0 IRQ_TYPE_NONE>,
41 <0 0xc7 0 IRQ_TYPE_NONE>,
42 <0 0xc8 0 IRQ_TYPE_NONE>,
43 <0 0xc9 0 IRQ_TYPE_NONE>,
44 <0 0xca 0 IRQ_TYPE_NONE>,
45 <0 0xcb 0 IRQ_TYPE_NONE>,
46 <0 0xcc 0 IRQ_TYPE_NONE>,
47 <0 0xcd 0 IRQ_TYPE_NONE>,
48 <0 0xce 0 IRQ_TYPE_NONE>,
49 <0 0xcf 0 IRQ_TYPE_NONE>,
50 <0 0xd0 0 IRQ_TYPE_NONE>,
51 <0 0xd1 0 IRQ_TYPE_NONE>,
52 <0 0xd2 0 IRQ_TYPE_NONE>,
53 <0 0xd3 0 IRQ_TYPE_NONE>,
54 <0 0xd4 0 IRQ_TYPE_NONE>,
55 <0 0xd5 0 IRQ_TYPE_NONE>,
56 <0 0xd6 0 IRQ_TYPE_NONE>,
57 <0 0xd7 0 IRQ_TYPE_NONE>,
58 <0 0xd8 0 IRQ_TYPE_NONE>,
59 <0 0xd9 0 IRQ_TYPE_NONE>,
60 <0 0xda 0 IRQ_TYPE_NONE>,
61 <0 0xdb 0 IRQ_TYPE_NONE>,
62 <0 0xdc 0 IRQ_TYPE_NONE>,
63 <0 0xdd 0 IRQ_TYPE_NONE>,
64 <0 0xde 0 IRQ_TYPE_NONE>,
65 <0 0xdf 0 IRQ_TYPE_NONE>,
66 <0 0xe0 0 IRQ_TYPE_NONE>,
67 <0 0xe1 0 IRQ_TYPE_NONE>,
68 <0 0xe2 0 IRQ_TYPE_NONE>,
69 <0 0xe3 0 IRQ_TYPE_NONE>;
72 pm8941_mpps: mpps@a000 {
73 compatible = "qcom,pm8941-mpp";
77 interrupts = <0 0xa0 0 IRQ_TYPE_NONE>,
78 <0 0xa1 0 IRQ_TYPE_NONE>,
79 <0 0xa2 0 IRQ_TYPE_NONE>,
80 <0 0xa3 0 IRQ_TYPE_NONE>,
81 <0 0xa4 0 IRQ_TYPE_NONE>,
82 <0 0xa5 0 IRQ_TYPE_NONE>,
83 <0 0xa6 0 IRQ_TYPE_NONE>,
84 <0 0xa7 0 IRQ_TYPE_NONE>;
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_DIE_TEMP>;
108 reg = <VADC_REF_625MV>;
111 reg = <VADC_REF_1250MV>;
114 reg = <VADC_GND_REF>;
117 reg = <VADC_VDD_VADC>;
121 pm8941_iadc: iadc@3600 {
122 compatible = "qcom,pm8941-iadc", "qcom,spmi-iadc";
123 reg = <0x3600 0x100>,
125 interrupts = <0x0 0x36 0x0 IRQ_TYPE_EDGE_RISING>;
126 qcom,external-resistor-micro-ohms = <10000>;
130 compatible = "qcom,pm8941-coincell";
137 compatible = "qcom,spmi-pmic";
138 reg = <0x1 SPMI_USID>;
139 #address-cells = <1>;
143 compatible = "qcom,pm8941-wled";
144 reg = <0xd800 0x100>;
148 qcom,current-limit = <20>;
149 qcom,current-boost-limit = <805>;
150 qcom,switching-freq = <1600>;
152 qcom,num-strings = <2>;