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]*@.*$'
98 - const: qcom,spmi-pmic
112 $ref: /schemas/regulator/qcom-labibb-regulator.yaml#
116 $ref: /schemas/regulator/qcom,spmi-regulator.yaml#
120 $ref: /schemas/leds/leds-qcom-lpg.yaml#
126 - $ref: /schemas/iio/adc/qcom,spmi-iadc.yaml#
127 - $ref: /schemas/iio/adc/qcom,spmi-rradc.yaml#
128 - $ref: /schemas/iio/adc/qcom,spmi-vadc.yaml#
130 "^adc-tm@[0-9a-f]+$":
132 # ref depends on compatible, see allOf below
134 "^audio-codec@[0-9a-f]+$":
136 $ref: /schemas/sound/qcom,pm8916-wcd-analog-codec.yaml#
138 "^battery@[0-9a-f]+$":
141 - $ref: /schemas/power/supply/qcom,pm8916-bms-vm.yaml#
143 "^charger@[0-9a-f]+$":
146 - $ref: /schemas/power/supply/qcom,pm8916-lbc.yaml#
147 - $ref: /schemas/power/supply/qcom,pm8941-charger.yaml#
148 - $ref: /schemas/power/supply/qcom,pm8941-coincell.yaml#
149 - $ref: /schemas/power/supply/qcom,pmi8998-charger.yaml#
153 $ref: /schemas/pinctrl/qcom,pmic-gpio.yaml#
155 "^led-controller@[0-9a-f]+$":
157 $ref: /schemas/leds/qcom,spmi-flash-led.yaml#
161 $ref: /schemas/nvmem/qcom,spmi-sdam.yaml#
165 $ref: /schemas/phy/qcom,snps-eusb2-repeater.yaml#
169 $ref: /schemas/power/reset/qcom,pon.yaml#
173 $ref: /schemas/rtc/qcom-pm8xxx-rtc.yaml#
175 "^temp-alarm@[0-9a-f]+$":
177 $ref: /schemas/thermal/qcom,spmi-temp-alarm.yaml#
181 $ref: /schemas/usb/qcom,pmic-typec.yaml#
183 "^usb-detect@[0-9a-f]+$":
185 $ref: /schemas/extcon/qcom,pm8941-misc.yaml#
187 "^usb-vbus-regulator@[0-9a-f]+$":
189 $ref: /schemas/regulator/qcom,usb-vbus-regulator.yaml#
191 "^vibrator@[0-9a-f]+$":
193 $ref: /schemas/input/qcom,pm8xxx-vib.yaml#
197 $ref: /schemas/pinctrl/qcom,pmic-mpp.yaml#
199 "(.*)?(wled|leds)@[0-9a-f]+$":
201 $ref: /schemas/leds/backlight/qcom-wled.yaml#
202 unevaluatedProperties: false
217 "^adc-tm@[0-9a-f]+$":
218 $ref: /schemas/thermal/qcom-spmi-adc-tm-hc.yaml#
221 "^adc-tm@[0-9a-f]+$":
222 $ref: /schemas/thermal/qcom-spmi-adc-tm5.yaml#
224 additionalProperties: false
228 #include <dt-bindings/spmi/spmi.h>
229 #include <dt-bindings/interrupt-controller/irq.h>
230 #include <dt-bindings/interrupt-controller/arm-gic.h>
233 compatible = "qcom,spmi-pmic-arb";
234 reg = <0x0c440000 0x1100>,
235 <0x0c600000 0x2000000>,
236 <0x0e600000 0x100000>,
237 <0x0e700000 0xa0000>,
238 <0x0c40a000 0x26000>;
239 reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
240 interrupt-names = "periph_irq";
241 interrupts = <GIC_SPI 481 IRQ_TYPE_LEVEL_HIGH>;
244 #address-cells = <2>;
246 interrupt-controller;
247 #interrupt-cells = <4>;
250 compatible = "qcom,pmi8998", "qcom,spmi-pmic";
251 reg = <0x2 SPMI_USID>;
252 #address-cells = <1>;
256 compatible = "qcom,pmi8998-gpio", "qcom,spmi-gpio";
259 gpio-ranges = <&pmi8998_gpio 0 0 14>;
261 interrupt-controller;
262 #interrupt-cells = <2>;
268 #include <dt-bindings/input/input.h>
269 #include <dt-bindings/interrupt-controller/irq.h>
270 #include <dt-bindings/interrupt-controller/arm-gic.h>
271 #include <dt-bindings/iio/qcom,spmi-vadc.h>
272 #include <dt-bindings/spmi/spmi.h>
275 compatible = "qcom,pm6150", "qcom,spmi-pmic";
276 reg = <0x0 SPMI_USID>;
277 #address-cells = <1>;
281 compatible = "qcom,pm8998-pon";
283 mode-bootloader = <0x2>;
284 mode-recovery = <0x1>;
287 compatible = "qcom,pm8941-pwrkey";
288 interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
291 linux,code = <KEY_POWER>;
296 compatible = "qcom,spmi-temp-alarm";
298 interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
299 io-channels = <&pm6150_adc ADC5_DIE_TEMP>;
300 io-channel-names = "thermal";
301 #thermal-sensor-cells = <0>;
304 pm6150_adc: adc@3100 {
305 compatible = "qcom,spmi-adc5";
307 interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
308 #address-cells = <1>;
310 #io-channel-cells = <1>;
313 reg = <ADC5_DIE_TEMP>;
318 reg = <ADC5_AMUX_THM3_100K_PU>;
320 qcom,hw-settle-time = <200>;
325 compatible = "qcom,spmi-adc-tm5";
327 interrupts = <0x0 0x35 0x0 IRQ_TYPE_EDGE_RISING>;
328 #thermal-sensor-cells = <1>;
329 #address-cells = <1>;
332 charger-thermistor@0 {
334 io-channels = <&pm6150_adc ADC5_AMUX_THM3_100K_PU>;
336 qcom,hw-settle-time-us = <200>;
341 compatible = "qcom,pm6150-gpio", "qcom,spmi-gpio";
344 gpio-ranges = <&pm6150_gpio 0 0 10>;
346 interrupt-controller;
347 #interrupt-cells = <2>;