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]*@.*$'
81 - const: qcom,spmi-pmic
95 $ref: /schemas/regulator/qcom-labibb-regulator.yaml#
99 $ref: /schemas/regulator/qcom,spmi-regulator.yaml#
103 $ref: /schemas/leds/leds-qcom-lpg.yaml#
108 $ref: /schemas/iio/adc/qcom,spmi-vadc.yaml#
110 "^adc-tm@[0-9a-f]+$":
112 # ref depends on compatible, see allOf below
114 "^audio-codec@[0-9a-f]+$":
116 additionalProperties: true # FIXME qcom,pm8916-wcd-analog-codec binding not converted yet
120 $ref: /schemas/extcon/qcom,pm8941-misc.yaml#
122 "gpio(s)?@[0-9a-f]+$":
124 $ref: /schemas/pinctrl/qcom,pmic-gpio.yaml#
128 $ref: /schemas/power/reset/qcom,pon.yaml#
132 $ref: /schemas/rtc/qcom-pm8xxx-rtc.yaml#
134 "^temp-alarm@[0-9a-f]+$":
136 $ref: /schemas/thermal/qcom,spmi-temp-alarm.yaml#
138 "^vibrator@[0-9a-f]+$":
140 additionalProperties: true # FIXME qcom,pm8916-vib binding not converted yet
144 $ref: /schemas/pinctrl/qcom,pmic-mpp.yaml#
146 "(.*)?(wled|leds)@[0-9a-f]+$":
148 $ref: /schemas/leds/backlight/qcom-wled.yaml#
149 unevaluatedProperties: false
164 "^adc-tm@[0-9a-f]+$":
165 $ref: /schemas/thermal/qcom-spmi-adc-tm-hc.yaml#
168 "^adc-tm@[0-9a-f]+$":
169 $ref: /schemas/thermal/qcom-spmi-adc-tm5.yaml#
171 additionalProperties: false
175 #include <dt-bindings/spmi/spmi.h>
176 #include <dt-bindings/interrupt-controller/irq.h>
177 #include <dt-bindings/interrupt-controller/arm-gic.h>
180 compatible = "qcom,spmi-pmic-arb";
181 reg = <0x0c440000 0x1100>,
182 <0x0c600000 0x2000000>,
183 <0x0e600000 0x100000>,
184 <0x0e700000 0xa0000>,
185 <0x0c40a000 0x26000>;
186 reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
187 interrupt-names = "periph_irq";
188 interrupts = <GIC_SPI 481 IRQ_TYPE_LEVEL_HIGH>;
191 #address-cells = <2>;
193 interrupt-controller;
194 #interrupt-cells = <4>;
196 pmi8998_lsid0: pmic@2 {
197 compatible = "qcom,pmi8998", "qcom,spmi-pmic";
198 reg = <0x2 SPMI_USID>;
199 #address-cells = <1>;
202 pmi8998_gpio: gpios@c000 {
203 compatible = "qcom,pmi8998-gpio", "qcom,spmi-gpio";
206 gpio-ranges = <&pmi8998_gpio 0 0 14>;
208 interrupt-controller;
209 #interrupt-cells = <2>;
215 #include <dt-bindings/input/input.h>
216 #include <dt-bindings/interrupt-controller/irq.h>
217 #include <dt-bindings/interrupt-controller/arm-gic.h>
218 #include <dt-bindings/iio/qcom,spmi-vadc.h>
219 #include <dt-bindings/spmi/spmi.h>
222 compatible = "qcom,pm6150", "qcom,spmi-pmic";
223 reg = <0x0 SPMI_USID>;
224 #address-cells = <1>;
228 compatible = "qcom,pm8998-pon";
230 mode-bootloader = <0x2>;
231 mode-recovery = <0x1>;
234 compatible = "qcom,pm8941-pwrkey";
235 interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
238 linux,code = <KEY_POWER>;
243 compatible = "qcom,spmi-temp-alarm";
245 interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
246 io-channels = <&pm6150_adc ADC5_DIE_TEMP>;
247 io-channel-names = "thermal";
248 #thermal-sensor-cells = <0>;
251 pm6150_adc: adc@3100 {
252 compatible = "qcom,spmi-adc5";
254 interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
255 #address-cells = <1>;
257 #io-channel-cells = <1>;
260 reg = <ADC5_DIE_TEMP>;
265 reg = <ADC5_AMUX_THM3_100K_PU>;
267 qcom,hw-settle-time = <200>;
272 compatible = "qcom,spmi-adc-tm5";
274 interrupts = <0x0 0x35 0x0 IRQ_TYPE_EDGE_RISING>;
275 #thermal-sensor-cells = <1>;
276 #address-cells = <1>;
279 charger-thermistor@0 {
281 io-channels = <&pm6150_adc ADC5_AMUX_THM3_100K_PU>;
283 qcom,hw-settle-time-us = <200>;
287 pm6150_gpio: gpios@c000 {
288 compatible = "qcom,pm6150-gpio", "qcom,spmi-gpio";
291 gpio-ranges = <&pm6150_gpio 0 0 10>;
293 interrupt-controller;
294 #interrupt-cells = <2>;