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]*@.*$'
97 - const: qcom,spmi-pmic
111 $ref: /schemas/regulator/qcom-labibb-regulator.yaml#
115 $ref: /schemas/regulator/qcom,spmi-regulator.yaml#
119 $ref: /schemas/leds/leds-qcom-lpg.yaml#
125 - $ref: /schemas/iio/adc/qcom,spmi-iadc.yaml#
126 - $ref: /schemas/iio/adc/qcom,spmi-rradc.yaml#
127 - $ref: /schemas/iio/adc/qcom,spmi-vadc.yaml#
129 "^adc-tm@[0-9a-f]+$":
131 # ref depends on compatible, see allOf below
133 "^audio-codec@[0-9a-f]+$":
135 $ref: /schemas/sound/qcom,pm8916-wcd-analog-codec.yaml#
137 "^charger@[0-9a-f]+$":
140 - $ref: /schemas/power/supply/qcom,pm8941-charger.yaml#
141 - $ref: /schemas/power/supply/qcom,pm8941-coincell.yaml#
142 - $ref: /schemas/power/supply/qcom,pmi8998-charger.yaml#
146 $ref: /schemas/pinctrl/qcom,pmic-gpio.yaml#
148 "^led-controller@[0-9a-f]+$":
150 $ref: /schemas/leds/qcom,spmi-flash-led.yaml#
154 $ref: /schemas/nvmem/qcom,spmi-sdam.yaml#
158 $ref: /schemas/phy/qcom,snps-eusb2-repeater.yaml#
162 $ref: /schemas/power/reset/qcom,pon.yaml#
166 $ref: /schemas/rtc/qcom-pm8xxx-rtc.yaml#
168 "^temp-alarm@[0-9a-f]+$":
170 $ref: /schemas/thermal/qcom,spmi-temp-alarm.yaml#
174 $ref: /schemas/usb/qcom,pmic-typec.yaml#
176 "^usb-detect@[0-9a-f]+$":
178 $ref: /schemas/extcon/qcom,pm8941-misc.yaml#
180 "^usb-vbus-regulator@[0-9a-f]+$":
182 $ref: /schemas/regulator/qcom,usb-vbus-regulator.yaml#
184 "^vibrator@[0-9a-f]+$":
186 $ref: /schemas/input/qcom,pm8xxx-vib.yaml#
190 $ref: /schemas/pinctrl/qcom,pmic-mpp.yaml#
192 "(.*)?(wled|leds)@[0-9a-f]+$":
194 $ref: /schemas/leds/backlight/qcom-wled.yaml#
195 unevaluatedProperties: false
210 "^adc-tm@[0-9a-f]+$":
211 $ref: /schemas/thermal/qcom-spmi-adc-tm-hc.yaml#
214 "^adc-tm@[0-9a-f]+$":
215 $ref: /schemas/thermal/qcom-spmi-adc-tm5.yaml#
217 additionalProperties: false
221 #include <dt-bindings/spmi/spmi.h>
222 #include <dt-bindings/interrupt-controller/irq.h>
223 #include <dt-bindings/interrupt-controller/arm-gic.h>
226 compatible = "qcom,spmi-pmic-arb";
227 reg = <0x0c440000 0x1100>,
228 <0x0c600000 0x2000000>,
229 <0x0e600000 0x100000>,
230 <0x0e700000 0xa0000>,
231 <0x0c40a000 0x26000>;
232 reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
233 interrupt-names = "periph_irq";
234 interrupts = <GIC_SPI 481 IRQ_TYPE_LEVEL_HIGH>;
237 #address-cells = <2>;
239 interrupt-controller;
240 #interrupt-cells = <4>;
243 compatible = "qcom,pmi8998", "qcom,spmi-pmic";
244 reg = <0x2 SPMI_USID>;
245 #address-cells = <1>;
249 compatible = "qcom,pmi8998-gpio", "qcom,spmi-gpio";
252 gpio-ranges = <&pmi8998_gpio 0 0 14>;
254 interrupt-controller;
255 #interrupt-cells = <2>;
261 #include <dt-bindings/input/input.h>
262 #include <dt-bindings/interrupt-controller/irq.h>
263 #include <dt-bindings/interrupt-controller/arm-gic.h>
264 #include <dt-bindings/iio/qcom,spmi-vadc.h>
265 #include <dt-bindings/spmi/spmi.h>
268 compatible = "qcom,pm6150", "qcom,spmi-pmic";
269 reg = <0x0 SPMI_USID>;
270 #address-cells = <1>;
274 compatible = "qcom,pm8998-pon";
276 mode-bootloader = <0x2>;
277 mode-recovery = <0x1>;
280 compatible = "qcom,pm8941-pwrkey";
281 interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
284 linux,code = <KEY_POWER>;
289 compatible = "qcom,spmi-temp-alarm";
291 interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
292 io-channels = <&pm6150_adc ADC5_DIE_TEMP>;
293 io-channel-names = "thermal";
294 #thermal-sensor-cells = <0>;
297 pm6150_adc: adc@3100 {
298 compatible = "qcom,spmi-adc5";
300 interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
301 #address-cells = <1>;
303 #io-channel-cells = <1>;
306 reg = <ADC5_DIE_TEMP>;
311 reg = <ADC5_AMUX_THM3_100K_PU>;
313 qcom,hw-settle-time = <200>;
318 compatible = "qcom,spmi-adc-tm5";
320 interrupts = <0x0 0x35 0x0 IRQ_TYPE_EDGE_RISING>;
321 #thermal-sensor-cells = <1>;
322 #address-cells = <1>;
325 charger-thermistor@0 {
327 io-channels = <&pm6150_adc ADC5_AMUX_THM3_100K_PU>;
329 qcom,hw-settle-time-us = <200>;
334 compatible = "qcom,pm6150-gpio", "qcom,spmi-gpio";
337 gpio-ranges = <&pm6150_gpio 0 0 10>;
339 interrupt-controller;
340 #interrupt-cells = <2>;