1 # SPDX-License-Identifier: GPL-2.0-only
4 $id: http://devicetree.org/schemas/mfd/qcom,spmi-pmic.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm SPMI PMICs multi-function device
10 Some Qualcomm PMICs used with the Snapdragon series SoCs are interfaced
11 to the chip via the SPMI (System Power Management Interface) bus.
12 Support for multiple independent functions are implemented by splitting the
13 16-bit SPMI peripheral address space into 256 smaller fixed-size regions, 256 bytes
14 each. A function can consume one or more of these fixed-size register regions.
16 The Qualcomm SPMI series includes the PM8941, PM8841, PMA8084, PM8998 and other
17 PMICs. These PMICs use a "QPNP" scheme through SPMI interface.
18 QPNP is effectively a partitioning scheme for dividing the SPMI extended
19 register space up into logical pieces, and set of fixed register
20 locations/definitions within these regions, with some of these regions
21 specifically used for interrupt handling.
24 - Stephen Boyd <sboyd@kernel.org>
29 - pattern: '^pmic@.*$'
30 - pattern: '^pm(a|s)?[0-9]*@.*$'
79 - const: qcom,spmi-pmic
93 $ref: /schemas/regulator/qcom-labibb-regulator.yaml#
97 $ref: /schemas/regulator/qcom,spmi-regulator.yaml#
102 $ref: /schemas/iio/adc/qcom,spmi-vadc.yaml#
104 "^adc-tm@[0-9a-f]+$":
106 $ref: /schemas/thermal/qcom-spmi-adc-tm5.yaml#
108 "^audio-codec@[0-9a-f]+$":
110 additionalProperties: true # FIXME qcom,pm8916-wcd-analog-codec binding not converted yet
114 $ref: /schemas/extcon/qcom,pm8941-misc.yaml#
116 "gpio(s)?@[0-9a-f]+$":
118 $ref: /schemas/pinctrl/qcom,pmic-gpio.yaml#
122 $ref: /schemas/power/reset/qcom,pon.yaml#
126 $ref: /schemas/leds/leds-qcom-lpg.yaml#
130 $ref: /schemas/rtc/qcom-pm8xxx-rtc.yaml#
132 "^temp-alarm@[0-9a-f]+$":
134 $ref: /schemas/thermal/qcom,spmi-temp-alarm.yaml#
136 "^vibrator@[0-9a-f]+$":
138 additionalProperties: true # FIXME qcom,pm8916-vib binding not converted yet
142 $ref: /schemas/pinctrl/qcom,pmic-mpp.yaml#
144 "(.*)?(wled|leds)@[0-9a-f]+$":
146 $ref: /schemas/leds/backlight/qcom-wled.yaml#
147 unevaluatedProperties: false
153 additionalProperties: false
157 #include <dt-bindings/spmi/spmi.h>
158 #include <dt-bindings/interrupt-controller/irq.h>
159 #include <dt-bindings/interrupt-controller/arm-gic.h>
162 compatible = "qcom,spmi-pmic-arb";
163 reg = <0x0c440000 0x1100>,
164 <0x0c600000 0x2000000>,
165 <0x0e600000 0x100000>,
166 <0x0e700000 0xa0000>,
167 <0x0c40a000 0x26000>;
168 reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
169 interrupt-names = "periph_irq";
170 interrupts = <GIC_SPI 481 IRQ_TYPE_LEVEL_HIGH>;
173 #address-cells = <2>;
175 interrupt-controller;
176 #interrupt-cells = <4>;
178 pmi8998_lsid0: pmic@2 {
179 compatible = "qcom,pmi8998", "qcom,spmi-pmic";
180 reg = <0x2 SPMI_USID>;
181 #address-cells = <1>;
184 pmi8998_gpio: gpios@c000 {
185 compatible = "qcom,pmi8998-gpio", "qcom,spmi-gpio";
188 gpio-ranges = <&pmi8998_gpio 0 0 14>;
190 interrupt-controller;
191 #interrupt-cells = <2>;
197 #include <dt-bindings/input/input.h>
198 #include <dt-bindings/interrupt-controller/irq.h>
199 #include <dt-bindings/interrupt-controller/arm-gic.h>
200 #include <dt-bindings/iio/qcom,spmi-vadc.h>
201 #include <dt-bindings/spmi/spmi.h>
204 compatible = "qcom,pm6150", "qcom,spmi-pmic";
205 reg = <0x0 SPMI_USID>;
206 #address-cells = <1>;
210 compatible = "qcom,pm8998-pon";
212 mode-bootloader = <0x2>;
213 mode-recovery = <0x1>;
216 compatible = "qcom,pm8941-pwrkey";
217 interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
220 linux,code = <KEY_POWER>;
225 compatible = "qcom,spmi-temp-alarm";
227 interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
228 io-channels = <&pm6150_adc ADC5_DIE_TEMP>;
229 io-channel-names = "thermal";
230 #thermal-sensor-cells = <0>;
233 pm6150_adc: adc@3100 {
234 compatible = "qcom,spmi-adc5";
236 interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
237 #address-cells = <1>;
239 #io-channel-cells = <1>;
242 reg = <ADC5_DIE_TEMP>;
247 reg = <ADC5_AMUX_THM3_100K_PU>;
249 qcom,hw-settle-time = <200>;
254 compatible = "qcom,spmi-adc-tm5";
256 interrupts = <0x0 0x35 0x0 IRQ_TYPE_EDGE_RISING>;
257 #thermal-sensor-cells = <1>;
258 #address-cells = <1>;
261 charger-thermistor@0 {
263 io-channels = <&pm6150_adc ADC5_AMUX_THM3_100K_PU>;
265 qcom,hw-settle-time-us = <200>;
269 pm6150_gpio: gpios@c000 {
270 compatible = "qcom,pm6150-gpio", "qcom,spmi-gpio";
273 gpio-ranges = <&pm6150_gpio 0 0 10>;
275 interrupt-controller;
276 #interrupt-cells = <2>;