xref: /linux/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
13f5117beSDavid Heidelberg# SPDX-License-Identifier: GPL-2.0-only
23f5117beSDavid Heidelberg%YAML 1.2
33f5117beSDavid Heidelberg---
43f5117beSDavid Heidelberg$id: http://devicetree.org/schemas/mfd/qcom,spmi-pmic.yaml#
53f5117beSDavid Heidelberg$schema: http://devicetree.org/meta-schemas/core.yaml#
63f5117beSDavid Heidelberg
73f5117beSDavid Heidelbergtitle: Qualcomm SPMI PMICs multi-function device
83f5117beSDavid Heidelberg
93f5117beSDavid Heidelbergdescription: |
103f5117beSDavid Heidelberg  Some Qualcomm PMICs used with the Snapdragon series SoCs are interfaced
113f5117beSDavid Heidelberg  to the chip via the SPMI (System Power Management Interface) bus.
123f5117beSDavid Heidelberg  Support for multiple independent functions are implemented by splitting the
133f5117beSDavid Heidelberg  16-bit SPMI peripheral address space into 256 smaller fixed-size regions, 256 bytes
143f5117beSDavid Heidelberg  each. A function can consume one or more of these fixed-size register regions.
153f5117beSDavid Heidelberg
163f5117beSDavid Heidelberg  The Qualcomm SPMI series includes the PM8941, PM8841, PMA8084, PM8998 and other
173f5117beSDavid Heidelberg  PMICs.  These PMICs use a "QPNP" scheme through SPMI interface.
183f5117beSDavid Heidelberg  QPNP is effectively a partitioning scheme for dividing the SPMI extended
193f5117beSDavid Heidelberg  register space up into logical pieces, and set of fixed register
203f5117beSDavid Heidelberg  locations/definitions within these regions, with some of these regions
213f5117beSDavid Heidelberg  specifically used for interrupt handling.
223f5117beSDavid Heidelberg
233f5117beSDavid Heidelbergmaintainers:
243f5117beSDavid Heidelberg  - Stephen Boyd <sboyd@kernel.org>
253f5117beSDavid Heidelberg
263f5117beSDavid Heidelbergproperties:
273f5117beSDavid Heidelberg  $nodename:
283f5117beSDavid Heidelberg    oneOf:
293f5117beSDavid Heidelberg      - pattern: '^pmic@.*$'
303f5117beSDavid Heidelberg      - pattern: '^pm(a|s)?[0-9]*@.*$'
313f5117beSDavid Heidelberg        deprecated: true
323f5117beSDavid Heidelberg
333f5117beSDavid Heidelberg  compatible:
343f5117beSDavid Heidelberg    items:
353f5117beSDavid Heidelberg      - enum:
3644604617SKonrad Dybcio          - qcom,pm2250
373da503c2SMarijn Suijten          - qcom,pm6125
383f5117beSDavid Heidelberg          - qcom,pm6150
393f5117beSDavid Heidelberg          - qcom,pm6150l
403f5117beSDavid Heidelberg          - qcom,pm6350
4162a0261cSLuca Weiss          - qcom,pm660
4262a0261cSLuca Weiss          - qcom,pm660l
4362a0261cSLuca Weiss          - qcom,pm7250b
4487bcc53dSRohit Agarwal          - qcom,pm7550ba
453f5117beSDavid Heidelberg          - qcom,pm7325
463f5117beSDavid Heidelberg          - qcom,pm8004
473f5117beSDavid Heidelberg          - qcom,pm8005
483f5117beSDavid Heidelberg          - qcom,pm8009
49725a2acdSNeil Armstrong          - qcom,pm8010
503f5117beSDavid Heidelberg          - qcom,pm8019
510a6df9f1SKrzysztof Kozlowski          - qcom,pm8028
523f5117beSDavid Heidelberg          - qcom,pm8110
533f5117beSDavid Heidelberg          - qcom,pm8150
543f5117beSDavid Heidelberg          - qcom,pm8150b
550a6df9f1SKrzysztof Kozlowski          - qcom,pm8150c
563f5117beSDavid Heidelberg          - qcom,pm8150l
573f5117beSDavid Heidelberg          - qcom,pm8226
583f5117beSDavid Heidelberg          - qcom,pm8350
593f5117beSDavid Heidelberg          - qcom,pm8350b
603f5117beSDavid Heidelberg          - qcom,pm8350c
61ea927f19SDmitry Baryshkov          - qcom,pm8450
62725a2acdSNeil Armstrong          - qcom,pm8550
63725a2acdSNeil Armstrong          - qcom,pm8550b
64725a2acdSNeil Armstrong          - qcom,pm8550ve
65725a2acdSNeil Armstrong          - qcom,pm8550vs
663f5117beSDavid Heidelberg          - qcom,pm8841
673f5117beSDavid Heidelberg          - qcom,pm8909
683f5117beSDavid Heidelberg          - qcom,pm8916
692f7cae55SDang Huynh          - qcom,pm8937
703f5117beSDavid Heidelberg          - qcom,pm8941
713f5117beSDavid Heidelberg          - qcom,pm8950
720a6df9f1SKrzysztof Kozlowski          - qcom,pm8953
733f5117beSDavid Heidelberg          - qcom,pm8994
743f5117beSDavid Heidelberg          - qcom,pm8998
753f5117beSDavid Heidelberg          - qcom,pma8084
76506fbc6bSKrzysztof Kozlowski          - qcom,pmc8180
77506fbc6bSKrzysztof Kozlowski          - qcom,pmc8180c
78*5bbd03dbSKonrad Dybcio          - qcom,pmc8380
793f5117beSDavid Heidelberg          - qcom,pmd9635
80e7c3044fSLuca Weiss          - qcom,pmi632
813f5117beSDavid Heidelberg          - qcom,pmi8950
823f5117beSDavid Heidelberg          - qcom,pmi8962
833f5117beSDavid Heidelberg          - qcom,pmi8994
843f5117beSDavid Heidelberg          - qcom,pmi8998
850a6df9f1SKrzysztof Kozlowski          - qcom,pmk8002
863f5117beSDavid Heidelberg          - qcom,pmk8350
87725a2acdSNeil Armstrong          - qcom,pmk8550
883f5117beSDavid Heidelberg          - qcom,pmm8155au
893e0475ecSBartosz Golaszewski          - qcom,pmm8654au
90ce436a30SRobert Marko          - qcom,pmp8074
913f5117beSDavid Heidelberg          - qcom,pmr735a
923f5117beSDavid Heidelberg          - qcom,pmr735b
93725a2acdSNeil Armstrong          - qcom,pmr735d
943f5117beSDavid Heidelberg          - qcom,pms405
953f5117beSDavid Heidelberg          - qcom,pmx55
963f5117beSDavid Heidelberg          - qcom,pmx65
97c5773e5dSRohit Agarwal          - qcom,pmx75
983f5117beSDavid Heidelberg          - qcom,smb2351
99b5f743b1SAbel Vesa          - qcom,smb2360
1003f5117beSDavid Heidelberg      - const: qcom,spmi-pmic
1013f5117beSDavid Heidelberg
1023f5117beSDavid Heidelberg  reg:
1033f5117beSDavid Heidelberg    minItems: 1
1043f5117beSDavid Heidelberg    maxItems: 2
1053f5117beSDavid Heidelberg
1063f5117beSDavid Heidelberg  '#address-cells':
1073f5117beSDavid Heidelberg    const: 1
1083f5117beSDavid Heidelberg
1093f5117beSDavid Heidelberg  '#size-cells':
1103f5117beSDavid Heidelberg    const: 0
1113f5117beSDavid Heidelberg
1123f5117beSDavid Heidelberg  labibb:
1133f5117beSDavid Heidelberg    type: object
1143f5117beSDavid Heidelberg    $ref: /schemas/regulator/qcom-labibb-regulator.yaml#
1153f5117beSDavid Heidelberg
1163f5117beSDavid Heidelberg  regulators:
1173f5117beSDavid Heidelberg    type: object
118ea0dd0dfSKrzysztof Kozlowski    $ref: /schemas/regulator/qcom,spmi-regulator.yaml#
1193f5117beSDavid Heidelberg
120763ab986SBryan O'Donoghue  pwm:
121763ab986SBryan O'Donoghue    type: object
122763ab986SBryan O'Donoghue    $ref: /schemas/leds/leds-qcom-lpg.yaml#
123763ab986SBryan O'Donoghue
1243f5117beSDavid HeidelbergpatternProperties:
1253f5117beSDavid Heidelberg  "^adc@[0-9a-f]+$":
1263f5117beSDavid Heidelberg    type: object
127ba215dd6SLuca Weiss    oneOf:
128ba215dd6SLuca Weiss      - $ref: /schemas/iio/adc/qcom,spmi-iadc.yaml#
129b09ed62fSKonrad Dybcio      - $ref: /schemas/iio/adc/qcom,spmi-rradc.yaml#
130ba215dd6SLuca Weiss      - $ref: /schemas/iio/adc/qcom,spmi-vadc.yaml#
1313f5117beSDavid Heidelberg
1323f5117beSDavid Heidelberg  "^adc-tm@[0-9a-f]+$":
1333f5117beSDavid Heidelberg    type: object
134f4b632daSKrzysztof Kozlowski    # ref depends on compatible, see allOf below
1353f5117beSDavid Heidelberg
1363f5117beSDavid Heidelberg  "^audio-codec@[0-9a-f]+$":
1373f5117beSDavid Heidelberg    type: object
138d85746abSKonrad Dybcio    $ref: /schemas/sound/qcom,pm8916-wcd-analog-codec.yaml#
1393f5117beSDavid Heidelberg
1407ac5241eSNikita Travkin  "^battery@[0-9a-f]+$":
1417ac5241eSNikita Travkin    type: object
1427ac5241eSNikita Travkin    oneOf:
1437ac5241eSNikita Travkin      - $ref: /schemas/power/supply/qcom,pm8916-bms-vm.yaml#
1447ac5241eSNikita Travkin
145ba215dd6SLuca Weiss  "^charger@[0-9a-f]+$":
1463f5117beSDavid Heidelberg    type: object
147ba215dd6SLuca Weiss    oneOf:
1487ac5241eSNikita Travkin      - $ref: /schemas/power/supply/qcom,pm8916-lbc.yaml#
149ba215dd6SLuca Weiss      - $ref: /schemas/power/supply/qcom,pm8941-charger.yaml#
150ba215dd6SLuca Weiss      - $ref: /schemas/power/supply/qcom,pm8941-coincell.yaml#
1514a6598c4SCaleb Connolly      - $ref: /schemas/power/supply/qcom,pmi8998-charger.yaml#
1523f5117beSDavid Heidelberg
1534bef4d51SKrzysztof Kozlowski  "gpio@[0-9a-f]+$":
1543f5117beSDavid Heidelberg    type: object
1553f5117beSDavid Heidelberg    $ref: /schemas/pinctrl/qcom,pmic-gpio.yaml#
1563f5117beSDavid Heidelberg
1579f0184acSKrzysztof Kozlowski  "^led-controller@[0-9a-f]+$":
1589f0184acSKrzysztof Kozlowski    type: object
1599f0184acSKrzysztof Kozlowski    $ref: /schemas/leds/qcom,spmi-flash-led.yaml#
1609f0184acSKrzysztof Kozlowski
161fb9d4960SJohan Hovold  "^nvram@[0-9a-f]+$":
162fb9d4960SJohan Hovold    type: object
163fb9d4960SJohan Hovold    $ref: /schemas/nvmem/qcom,spmi-sdam.yaml#
164fb9d4960SJohan Hovold
1656cb72bd4SLuca Weiss  "^pbs@[0-9a-f]+$":
1666cb72bd4SLuca Weiss    type: object
1676cb72bd4SLuca Weiss    $ref: /schemas/soc/qcom/qcom,pbs.yaml#
1686cb72bd4SLuca Weiss
16976b4a24dSAbel Vesa  "phy@[0-9a-f]+$":
17076b4a24dSAbel Vesa    type: object
17176b4a24dSAbel Vesa    $ref: /schemas/phy/qcom,snps-eusb2-repeater.yaml#
17276b4a24dSAbel Vesa
1733f5117beSDavid Heidelberg  "pon@[0-9a-f]+$":
1743f5117beSDavid Heidelberg    type: object
1753f5117beSDavid Heidelberg    $ref: /schemas/power/reset/qcom,pon.yaml#
1763f5117beSDavid Heidelberg
1773f5117beSDavid Heidelberg  "^rtc@[0-9a-f]+$":
1783f5117beSDavid Heidelberg    type: object
1793f5117beSDavid Heidelberg    $ref: /schemas/rtc/qcom-pm8xxx-rtc.yaml#
1803f5117beSDavid Heidelberg
1813f5117beSDavid Heidelberg  "^temp-alarm@[0-9a-f]+$":
1823f5117beSDavid Heidelberg    type: object
1833f5117beSDavid Heidelberg    $ref: /schemas/thermal/qcom,spmi-temp-alarm.yaml#
1843f5117beSDavid Heidelberg
1850202e408SBryan O'Donoghue  "^typec@[0-9a-f]+$":
1860202e408SBryan O'Donoghue    type: object
1870202e408SBryan O'Donoghue    $ref: /schemas/usb/qcom,pmic-typec.yaml#
1880202e408SBryan O'Donoghue
1890867c491SLuca Weiss  "^usb-detect@[0-9a-f]+$":
1900867c491SLuca Weiss    type: object
1910867c491SLuca Weiss    $ref: /schemas/extcon/qcom,pm8941-misc.yaml#
1920867c491SLuca Weiss
193ba215dd6SLuca Weiss  "^usb-vbus-regulator@[0-9a-f]+$":
194ba215dd6SLuca Weiss    type: object
195ba215dd6SLuca Weiss    $ref: /schemas/regulator/qcom,usb-vbus-regulator.yaml#
196ba215dd6SLuca Weiss
1973f5117beSDavid Heidelberg  "^vibrator@[0-9a-f]+$":
1983f5117beSDavid Heidelberg    type: object
199ba215dd6SLuca Weiss    $ref: /schemas/input/qcom,pm8xxx-vib.yaml#
2003f5117beSDavid Heidelberg
2013f5117beSDavid Heidelberg  "^mpps@[0-9a-f]+$":
2023f5117beSDavid Heidelberg    type: object
2033f5117beSDavid Heidelberg    $ref: /schemas/pinctrl/qcom,pmic-mpp.yaml#
2043f5117beSDavid Heidelberg
2053f5117beSDavid Heidelberg  "(.*)?(wled|leds)@[0-9a-f]+$":
2063f5117beSDavid Heidelberg    type: object
2073f5117beSDavid Heidelberg    $ref: /schemas/leds/backlight/qcom-wled.yaml#
2083f5117beSDavid Heidelberg    unevaluatedProperties: false
2093f5117beSDavid Heidelberg
2103f5117beSDavid Heidelbergrequired:
2113f5117beSDavid Heidelberg  - compatible
2123f5117beSDavid Heidelberg  - reg
2133f5117beSDavid Heidelberg
214f4b632daSKrzysztof KozlowskiallOf:
215f4b632daSKrzysztof Kozlowski  - if:
216f4b632daSKrzysztof Kozlowski      properties:
217f4b632daSKrzysztof Kozlowski        compatible:
218f4b632daSKrzysztof Kozlowski          contains:
219f4b632daSKrzysztof Kozlowski            enum:
220f4b632daSKrzysztof Kozlowski              - qcom,pm8998
221f4b632daSKrzysztof Kozlowski    then:
222f4b632daSKrzysztof Kozlowski      patternProperties:
223f4b632daSKrzysztof Kozlowski        "^adc-tm@[0-9a-f]+$":
224f4b632daSKrzysztof Kozlowski          $ref: /schemas/thermal/qcom-spmi-adc-tm-hc.yaml#
225f4b632daSKrzysztof Kozlowski    else:
226f4b632daSKrzysztof Kozlowski      patternProperties:
227f4b632daSKrzysztof Kozlowski        "^adc-tm@[0-9a-f]+$":
228f4b632daSKrzysztof Kozlowski          $ref: /schemas/thermal/qcom-spmi-adc-tm5.yaml#
229f4b632daSKrzysztof Kozlowski
2303f5117beSDavid HeidelbergadditionalProperties: false
2313f5117beSDavid Heidelberg
2323f5117beSDavid Heidelbergexamples:
2333f5117beSDavid Heidelberg  - |
2343f5117beSDavid Heidelberg    #include <dt-bindings/spmi/spmi.h>
2353f5117beSDavid Heidelberg    #include <dt-bindings/interrupt-controller/irq.h>
2363f5117beSDavid Heidelberg    #include <dt-bindings/interrupt-controller/arm-gic.h>
2373f5117beSDavid Heidelberg
2383f5117beSDavid Heidelberg    spmi@c440000 {
2393f5117beSDavid Heidelberg        compatible = "qcom,spmi-pmic-arb";
2403f5117beSDavid Heidelberg        reg = <0x0c440000 0x1100>,
2413f5117beSDavid Heidelberg              <0x0c600000 0x2000000>,
2423f5117beSDavid Heidelberg              <0x0e600000 0x100000>,
2433f5117beSDavid Heidelberg              <0x0e700000 0xa0000>,
2443f5117beSDavid Heidelberg              <0x0c40a000 0x26000>;
2453f5117beSDavid Heidelberg        reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
2463f5117beSDavid Heidelberg        interrupt-names = "periph_irq";
2473f5117beSDavid Heidelberg        interrupts = <GIC_SPI 481 IRQ_TYPE_LEVEL_HIGH>;
2483f5117beSDavid Heidelberg        qcom,ee = <0>;
2493f5117beSDavid Heidelberg        qcom,channel = <0>;
2503f5117beSDavid Heidelberg        #address-cells = <2>;
2513f5117beSDavid Heidelberg        #size-cells = <0>;
2523f5117beSDavid Heidelberg        interrupt-controller;
2533f5117beSDavid Heidelberg        #interrupt-cells = <4>;
2543f5117beSDavid Heidelberg
255aaca37aeSLuca Weiss        pmic@2 {
2563f5117beSDavid Heidelberg            compatible = "qcom,pmi8998", "qcom,spmi-pmic";
2573f5117beSDavid Heidelberg            reg = <0x2 SPMI_USID>;
2583f5117beSDavid Heidelberg            #address-cells = <1>;
2593f5117beSDavid Heidelberg            #size-cells = <0>;
2603f5117beSDavid Heidelberg
261aaca37aeSLuca Weiss            gpio@c000 {
2623f5117beSDavid Heidelberg                compatible = "qcom,pmi8998-gpio", "qcom,spmi-gpio";
2633f5117beSDavid Heidelberg                reg = <0xc000>;
2643f5117beSDavid Heidelberg                gpio-controller;
2653f5117beSDavid Heidelberg                gpio-ranges = <&pmi8998_gpio 0 0 14>;
2663f5117beSDavid Heidelberg                #gpio-cells = <2>;
2673f5117beSDavid Heidelberg                interrupt-controller;
2683f5117beSDavid Heidelberg                #interrupt-cells = <2>;
2693f5117beSDavid Heidelberg            };
2703f5117beSDavid Heidelberg        };
2713f5117beSDavid Heidelberg    };
2726f42a14bSKrzysztof Kozlowski
2736f42a14bSKrzysztof Kozlowski  - |
2746f42a14bSKrzysztof Kozlowski    #include <dt-bindings/input/input.h>
2756f42a14bSKrzysztof Kozlowski    #include <dt-bindings/interrupt-controller/irq.h>
2766f42a14bSKrzysztof Kozlowski    #include <dt-bindings/interrupt-controller/arm-gic.h>
2776f42a14bSKrzysztof Kozlowski    #include <dt-bindings/iio/qcom,spmi-vadc.h>
2786f42a14bSKrzysztof Kozlowski    #include <dt-bindings/spmi/spmi.h>
2796f42a14bSKrzysztof Kozlowski
2806f42a14bSKrzysztof Kozlowski    pmic@0 {
2816f42a14bSKrzysztof Kozlowski        compatible = "qcom,pm6150", "qcom,spmi-pmic";
2826f42a14bSKrzysztof Kozlowski        reg = <0x0 SPMI_USID>;
2836f42a14bSKrzysztof Kozlowski        #address-cells = <1>;
2846f42a14bSKrzysztof Kozlowski        #size-cells = <0>;
2856f42a14bSKrzysztof Kozlowski
2866f42a14bSKrzysztof Kozlowski        pon@800 {
2876f42a14bSKrzysztof Kozlowski            compatible = "qcom,pm8998-pon";
2886f42a14bSKrzysztof Kozlowski            reg = <0x800>;
2896f42a14bSKrzysztof Kozlowski            mode-bootloader = <0x2>;
2906f42a14bSKrzysztof Kozlowski            mode-recovery = <0x1>;
2916f42a14bSKrzysztof Kozlowski
2926f42a14bSKrzysztof Kozlowski            pwrkey {
2936f42a14bSKrzysztof Kozlowski                compatible = "qcom,pm8941-pwrkey";
2946f42a14bSKrzysztof Kozlowski                interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
2956f42a14bSKrzysztof Kozlowski                debounce = <15625>;
2966f42a14bSKrzysztof Kozlowski                bias-pull-up;
2976f42a14bSKrzysztof Kozlowski                linux,code = <KEY_POWER>;
2986f42a14bSKrzysztof Kozlowski            };
2996f42a14bSKrzysztof Kozlowski        };
3006f42a14bSKrzysztof Kozlowski
3016f42a14bSKrzysztof Kozlowski        temp-alarm@2400 {
3026f42a14bSKrzysztof Kozlowski            compatible = "qcom,spmi-temp-alarm";
3036f42a14bSKrzysztof Kozlowski            reg = <0x2400>;
3046f42a14bSKrzysztof Kozlowski            interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
3056f42a14bSKrzysztof Kozlowski            io-channels = <&pm6150_adc ADC5_DIE_TEMP>;
3066f42a14bSKrzysztof Kozlowski            io-channel-names = "thermal";
3076f42a14bSKrzysztof Kozlowski            #thermal-sensor-cells = <0>;
3086f42a14bSKrzysztof Kozlowski        };
3096f42a14bSKrzysztof Kozlowski
3106f42a14bSKrzysztof Kozlowski        pm6150_adc: adc@3100 {
3116f42a14bSKrzysztof Kozlowski            compatible = "qcom,spmi-adc5";
3126f42a14bSKrzysztof Kozlowski            reg = <0x3100>;
3136f42a14bSKrzysztof Kozlowski            interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
3146f42a14bSKrzysztof Kozlowski            #address-cells = <1>;
3156f42a14bSKrzysztof Kozlowski            #size-cells = <0>;
3166f42a14bSKrzysztof Kozlowski            #io-channel-cells = <1>;
3176f42a14bSKrzysztof Kozlowski
318b24e335bSMarijn Suijten            channel@6 {
3196f42a14bSKrzysztof Kozlowski                reg = <ADC5_DIE_TEMP>;
3206f42a14bSKrzysztof Kozlowski                label = "die_temp";
3216f42a14bSKrzysztof Kozlowski            };
3226f42a14bSKrzysztof Kozlowski
323b24e335bSMarijn Suijten            channel@4f {
3246f42a14bSKrzysztof Kozlowski                reg = <ADC5_AMUX_THM3_100K_PU>;
3256f42a14bSKrzysztof Kozlowski                qcom,ratiometric;
3266f42a14bSKrzysztof Kozlowski                qcom,hw-settle-time = <200>;
3276f42a14bSKrzysztof Kozlowski            };
3286f42a14bSKrzysztof Kozlowski        };
3296f42a14bSKrzysztof Kozlowski
3306f42a14bSKrzysztof Kozlowski        adc-tm@3500 {
3316f42a14bSKrzysztof Kozlowski            compatible = "qcom,spmi-adc-tm5";
3326f42a14bSKrzysztof Kozlowski            reg = <0x3500>;
3336f42a14bSKrzysztof Kozlowski            interrupts = <0x0 0x35 0x0 IRQ_TYPE_EDGE_RISING>;
3346f42a14bSKrzysztof Kozlowski            #thermal-sensor-cells = <1>;
3356f42a14bSKrzysztof Kozlowski            #address-cells = <1>;
3366f42a14bSKrzysztof Kozlowski            #size-cells = <0>;
3376f42a14bSKrzysztof Kozlowski
3386f42a14bSKrzysztof Kozlowski            charger-thermistor@0 {
3396f42a14bSKrzysztof Kozlowski                reg = <0>;
3406f42a14bSKrzysztof Kozlowski                io-channels = <&pm6150_adc ADC5_AMUX_THM3_100K_PU>;
3416f42a14bSKrzysztof Kozlowski                qcom,ratiometric;
3426f42a14bSKrzysztof Kozlowski                qcom,hw-settle-time-us = <200>;
3436f42a14bSKrzysztof Kozlowski            };
3446f42a14bSKrzysztof Kozlowski        };
3456f42a14bSKrzysztof Kozlowski
346aaca37aeSLuca Weiss        gpio@c000 {
3476f42a14bSKrzysztof Kozlowski            compatible = "qcom,pm6150-gpio", "qcom,spmi-gpio";
3486f42a14bSKrzysztof Kozlowski            reg = <0xc000>;
3496f42a14bSKrzysztof Kozlowski            gpio-controller;
3506f42a14bSKrzysztof Kozlowski            gpio-ranges = <&pm6150_gpio 0 0 10>;
3516f42a14bSKrzysztof Kozlowski            #gpio-cells = <2>;
3526f42a14bSKrzysztof Kozlowski            interrupt-controller;
3536f42a14bSKrzysztof Kozlowski            #interrupt-cells = <2>;
3546f42a14bSKrzysztof Kozlowski        };
3556f42a14bSKrzysztof Kozlowski    };
356