xref: /freebsd/sys/contrib/device-tree/Bindings/mfd/qcom,spmi-pmic.yaml (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
1b97ee269SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only
2b97ee269SEmmanuel Vadot%YAML 1.2
3b97ee269SEmmanuel Vadot---
4b97ee269SEmmanuel Vadot$id: http://devicetree.org/schemas/mfd/qcom,spmi-pmic.yaml#
5b97ee269SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6b97ee269SEmmanuel Vadot
7b97ee269SEmmanuel Vadottitle: Qualcomm SPMI PMICs multi-function device
8b97ee269SEmmanuel Vadot
9b97ee269SEmmanuel Vadotdescription: |
10b97ee269SEmmanuel Vadot  Some Qualcomm PMICs used with the Snapdragon series SoCs are interfaced
11b97ee269SEmmanuel Vadot  to the chip via the SPMI (System Power Management Interface) bus.
12b97ee269SEmmanuel Vadot  Support for multiple independent functions are implemented by splitting the
13b97ee269SEmmanuel Vadot  16-bit SPMI peripheral address space into 256 smaller fixed-size regions, 256 bytes
14b97ee269SEmmanuel Vadot  each. A function can consume one or more of these fixed-size register regions.
15b97ee269SEmmanuel Vadot
16b97ee269SEmmanuel Vadot  The Qualcomm SPMI series includes the PM8941, PM8841, PMA8084, PM8998 and other
17b97ee269SEmmanuel Vadot  PMICs.  These PMICs use a "QPNP" scheme through SPMI interface.
18b97ee269SEmmanuel Vadot  QPNP is effectively a partitioning scheme for dividing the SPMI extended
19b97ee269SEmmanuel Vadot  register space up into logical pieces, and set of fixed register
20b97ee269SEmmanuel Vadot  locations/definitions within these regions, with some of these regions
21b97ee269SEmmanuel Vadot  specifically used for interrupt handling.
22b97ee269SEmmanuel Vadot
23b97ee269SEmmanuel Vadotmaintainers:
24b97ee269SEmmanuel Vadot  - Stephen Boyd <sboyd@kernel.org>
25b97ee269SEmmanuel Vadot
26b97ee269SEmmanuel Vadotproperties:
27b97ee269SEmmanuel Vadot  $nodename:
28b97ee269SEmmanuel Vadot    oneOf:
29b97ee269SEmmanuel Vadot      - pattern: '^pmic@.*$'
30b97ee269SEmmanuel Vadot      - pattern: '^pm(a|s)?[0-9]*@.*$'
31b97ee269SEmmanuel Vadot        deprecated: true
32b97ee269SEmmanuel Vadot
33b97ee269SEmmanuel Vadot  compatible:
34b97ee269SEmmanuel Vadot    items:
35b97ee269SEmmanuel Vadot      - enum:
36fac71e4eSEmmanuel Vadot          - qcom,pm2250
378bab661aSEmmanuel Vadot          - qcom,pm6125
38b97ee269SEmmanuel Vadot          - qcom,pm6150
39b97ee269SEmmanuel Vadot          - qcom,pm6150l
40b97ee269SEmmanuel Vadot          - qcom,pm6350
417ef62cebSEmmanuel Vadot          - qcom,pm660
427ef62cebSEmmanuel Vadot          - qcom,pm660l
437ef62cebSEmmanuel Vadot          - qcom,pm7250b
44aa1a8ff2SEmmanuel Vadot          - qcom,pm7550ba
45b97ee269SEmmanuel Vadot          - qcom,pm7325
46b97ee269SEmmanuel Vadot          - qcom,pm8004
47b97ee269SEmmanuel Vadot          - qcom,pm8005
48b97ee269SEmmanuel Vadot          - qcom,pm8009
49cb7aa33aSEmmanuel Vadot          - qcom,pm8010
50b97ee269SEmmanuel Vadot          - qcom,pm8019
517ef62cebSEmmanuel Vadot          - qcom,pm8028
52b97ee269SEmmanuel Vadot          - qcom,pm8110
53b97ee269SEmmanuel Vadot          - qcom,pm8150
54b97ee269SEmmanuel Vadot          - qcom,pm8150b
557ef62cebSEmmanuel Vadot          - qcom,pm8150c
56b97ee269SEmmanuel Vadot          - qcom,pm8150l
57b97ee269SEmmanuel Vadot          - qcom,pm8226
58b97ee269SEmmanuel Vadot          - qcom,pm8350
59b97ee269SEmmanuel Vadot          - qcom,pm8350b
60b97ee269SEmmanuel Vadot          - qcom,pm8350c
6184943d6fSEmmanuel Vadot          - qcom,pm8450
62cb7aa33aSEmmanuel Vadot          - qcom,pm8550
63cb7aa33aSEmmanuel Vadot          - qcom,pm8550b
64cb7aa33aSEmmanuel Vadot          - qcom,pm8550ve
65cb7aa33aSEmmanuel Vadot          - qcom,pm8550vs
66b97ee269SEmmanuel Vadot          - qcom,pm8841
67b97ee269SEmmanuel Vadot          - qcom,pm8909
68b97ee269SEmmanuel Vadot          - qcom,pm8916
69*8d13bc63SEmmanuel Vadot          - qcom,pm8937
70b97ee269SEmmanuel Vadot          - qcom,pm8941
71b97ee269SEmmanuel Vadot          - qcom,pm8950
727ef62cebSEmmanuel Vadot          - qcom,pm8953
73b97ee269SEmmanuel Vadot          - qcom,pm8994
74b97ee269SEmmanuel Vadot          - qcom,pm8998
75b97ee269SEmmanuel Vadot          - qcom,pma8084
76aa1a8ff2SEmmanuel Vadot          - qcom,pmc8180
77aa1a8ff2SEmmanuel Vadot          - qcom,pmc8180c
78b97ee269SEmmanuel Vadot          - qcom,pmd9635
79f126890aSEmmanuel Vadot          - qcom,pmi632
80b97ee269SEmmanuel Vadot          - qcom,pmi8950
81b97ee269SEmmanuel Vadot          - qcom,pmi8962
82b97ee269SEmmanuel Vadot          - qcom,pmi8994
83b97ee269SEmmanuel Vadot          - qcom,pmi8998
847ef62cebSEmmanuel Vadot          - qcom,pmk8002
85b97ee269SEmmanuel Vadot          - qcom,pmk8350
86cb7aa33aSEmmanuel Vadot          - qcom,pmk8550
87b97ee269SEmmanuel Vadot          - qcom,pmm8155au
88fac71e4eSEmmanuel Vadot          - qcom,pmm8654au
897ef62cebSEmmanuel Vadot          - qcom,pmp8074
90b97ee269SEmmanuel Vadot          - qcom,pmr735a
91b97ee269SEmmanuel Vadot          - qcom,pmr735b
92cb7aa33aSEmmanuel Vadot          - qcom,pmr735d
93b97ee269SEmmanuel Vadot          - qcom,pms405
94b97ee269SEmmanuel Vadot          - qcom,pmx55
95b97ee269SEmmanuel Vadot          - qcom,pmx65
96aa1a8ff2SEmmanuel Vadot          - qcom,pmx75
97b97ee269SEmmanuel Vadot          - qcom,smb2351
98b97ee269SEmmanuel Vadot      - const: qcom,spmi-pmic
99b97ee269SEmmanuel Vadot
100b97ee269SEmmanuel Vadot  reg:
101b97ee269SEmmanuel Vadot    minItems: 1
102b97ee269SEmmanuel Vadot    maxItems: 2
103b97ee269SEmmanuel Vadot
104b97ee269SEmmanuel Vadot  '#address-cells':
105b97ee269SEmmanuel Vadot    const: 1
106b97ee269SEmmanuel Vadot
107b97ee269SEmmanuel Vadot  '#size-cells':
108b97ee269SEmmanuel Vadot    const: 0
109b97ee269SEmmanuel Vadot
110b97ee269SEmmanuel Vadot  labibb:
111b97ee269SEmmanuel Vadot    type: object
112b97ee269SEmmanuel Vadot    $ref: /schemas/regulator/qcom-labibb-regulator.yaml#
113b97ee269SEmmanuel Vadot
114b97ee269SEmmanuel Vadot  regulators:
115b97ee269SEmmanuel Vadot    type: object
1167ef62cebSEmmanuel Vadot    $ref: /schemas/regulator/qcom,spmi-regulator.yaml#
117b97ee269SEmmanuel Vadot
1188bab661aSEmmanuel Vadot  pwm:
1198bab661aSEmmanuel Vadot    type: object
1208bab661aSEmmanuel Vadot    $ref: /schemas/leds/leds-qcom-lpg.yaml#
1218bab661aSEmmanuel Vadot
122b97ee269SEmmanuel VadotpatternProperties:
123b97ee269SEmmanuel Vadot  "^adc@[0-9a-f]+$":
124b97ee269SEmmanuel Vadot    type: object
1258bab661aSEmmanuel Vadot    oneOf:
1268bab661aSEmmanuel Vadot      - $ref: /schemas/iio/adc/qcom,spmi-iadc.yaml#
127fac71e4eSEmmanuel Vadot      - $ref: /schemas/iio/adc/qcom,spmi-rradc.yaml#
1288bab661aSEmmanuel Vadot      - $ref: /schemas/iio/adc/qcom,spmi-vadc.yaml#
129b97ee269SEmmanuel Vadot
130b97ee269SEmmanuel Vadot  "^adc-tm@[0-9a-f]+$":
131b97ee269SEmmanuel Vadot    type: object
1327ef62cebSEmmanuel Vadot    # ref depends on compatible, see allOf below
133b97ee269SEmmanuel Vadot
134b97ee269SEmmanuel Vadot  "^audio-codec@[0-9a-f]+$":
135b97ee269SEmmanuel Vadot    type: object
136aa1a8ff2SEmmanuel Vadot    $ref: /schemas/sound/qcom,pm8916-wcd-analog-codec.yaml#
137b97ee269SEmmanuel Vadot
138*8d13bc63SEmmanuel Vadot  "^battery@[0-9a-f]+$":
139*8d13bc63SEmmanuel Vadot    type: object
140*8d13bc63SEmmanuel Vadot    oneOf:
141*8d13bc63SEmmanuel Vadot      - $ref: /schemas/power/supply/qcom,pm8916-bms-vm.yaml#
142*8d13bc63SEmmanuel Vadot
1438bab661aSEmmanuel Vadot  "^charger@[0-9a-f]+$":
144b97ee269SEmmanuel Vadot    type: object
1458bab661aSEmmanuel Vadot    oneOf:
146*8d13bc63SEmmanuel Vadot      - $ref: /schemas/power/supply/qcom,pm8916-lbc.yaml#
1478bab661aSEmmanuel Vadot      - $ref: /schemas/power/supply/qcom,pm8941-charger.yaml#
1488bab661aSEmmanuel Vadot      - $ref: /schemas/power/supply/qcom,pm8941-coincell.yaml#
149f126890aSEmmanuel Vadot      - $ref: /schemas/power/supply/qcom,pmi8998-charger.yaml#
150b97ee269SEmmanuel Vadot
1518bab661aSEmmanuel Vadot  "gpio@[0-9a-f]+$":
152b97ee269SEmmanuel Vadot    type: object
153b97ee269SEmmanuel Vadot    $ref: /schemas/pinctrl/qcom,pmic-gpio.yaml#
154b97ee269SEmmanuel Vadot
155fac71e4eSEmmanuel Vadot  "^led-controller@[0-9a-f]+$":
156fac71e4eSEmmanuel Vadot    type: object
157fac71e4eSEmmanuel Vadot    $ref: /schemas/leds/qcom,spmi-flash-led.yaml#
158fac71e4eSEmmanuel Vadot
159fac71e4eSEmmanuel Vadot  "^nvram@[0-9a-f]+$":
160fac71e4eSEmmanuel Vadot    type: object
161fac71e4eSEmmanuel Vadot    $ref: /schemas/nvmem/qcom,spmi-sdam.yaml#
162fac71e4eSEmmanuel Vadot
163f126890aSEmmanuel Vadot  "phy@[0-9a-f]+$":
164f126890aSEmmanuel Vadot    type: object
165f126890aSEmmanuel Vadot    $ref: /schemas/phy/qcom,snps-eusb2-repeater.yaml#
166f126890aSEmmanuel Vadot
167b97ee269SEmmanuel Vadot  "pon@[0-9a-f]+$":
168b97ee269SEmmanuel Vadot    type: object
169b97ee269SEmmanuel Vadot    $ref: /schemas/power/reset/qcom,pon.yaml#
170b97ee269SEmmanuel Vadot
171b97ee269SEmmanuel Vadot  "^rtc@[0-9a-f]+$":
172b97ee269SEmmanuel Vadot    type: object
173b97ee269SEmmanuel Vadot    $ref: /schemas/rtc/qcom-pm8xxx-rtc.yaml#
174b97ee269SEmmanuel Vadot
175b97ee269SEmmanuel Vadot  "^temp-alarm@[0-9a-f]+$":
176b97ee269SEmmanuel Vadot    type: object
177b97ee269SEmmanuel Vadot    $ref: /schemas/thermal/qcom,spmi-temp-alarm.yaml#
178b97ee269SEmmanuel Vadot
17984943d6fSEmmanuel Vadot  "^typec@[0-9a-f]+$":
18084943d6fSEmmanuel Vadot    type: object
18184943d6fSEmmanuel Vadot    $ref: /schemas/usb/qcom,pmic-typec.yaml#
18284943d6fSEmmanuel Vadot
1838bab661aSEmmanuel Vadot  "^usb-detect@[0-9a-f]+$":
1848bab661aSEmmanuel Vadot    type: object
1858bab661aSEmmanuel Vadot    $ref: /schemas/extcon/qcom,pm8941-misc.yaml#
1868bab661aSEmmanuel Vadot
1878bab661aSEmmanuel Vadot  "^usb-vbus-regulator@[0-9a-f]+$":
1888bab661aSEmmanuel Vadot    type: object
1898bab661aSEmmanuel Vadot    $ref: /schemas/regulator/qcom,usb-vbus-regulator.yaml#
1908bab661aSEmmanuel Vadot
191b97ee269SEmmanuel Vadot  "^vibrator@[0-9a-f]+$":
192b97ee269SEmmanuel Vadot    type: object
1938bab661aSEmmanuel Vadot    $ref: /schemas/input/qcom,pm8xxx-vib.yaml#
194b97ee269SEmmanuel Vadot
195b97ee269SEmmanuel Vadot  "^mpps@[0-9a-f]+$":
196b97ee269SEmmanuel Vadot    type: object
197b97ee269SEmmanuel Vadot    $ref: /schemas/pinctrl/qcom,pmic-mpp.yaml#
198b97ee269SEmmanuel Vadot
199b97ee269SEmmanuel Vadot  "(.*)?(wled|leds)@[0-9a-f]+$":
200b97ee269SEmmanuel Vadot    type: object
201b97ee269SEmmanuel Vadot    $ref: /schemas/leds/backlight/qcom-wled.yaml#
202b97ee269SEmmanuel Vadot    unevaluatedProperties: false
203b97ee269SEmmanuel Vadot
204b97ee269SEmmanuel Vadotrequired:
205b97ee269SEmmanuel Vadot  - compatible
206b97ee269SEmmanuel Vadot  - reg
207b97ee269SEmmanuel Vadot
2087ef62cebSEmmanuel VadotallOf:
2097ef62cebSEmmanuel Vadot  - if:
2107ef62cebSEmmanuel Vadot      properties:
2117ef62cebSEmmanuel Vadot        compatible:
2127ef62cebSEmmanuel Vadot          contains:
2137ef62cebSEmmanuel Vadot            enum:
2147ef62cebSEmmanuel Vadot              - qcom,pm8998
2157ef62cebSEmmanuel Vadot    then:
2167ef62cebSEmmanuel Vadot      patternProperties:
2177ef62cebSEmmanuel Vadot        "^adc-tm@[0-9a-f]+$":
2187ef62cebSEmmanuel Vadot          $ref: /schemas/thermal/qcom-spmi-adc-tm-hc.yaml#
2197ef62cebSEmmanuel Vadot    else:
2207ef62cebSEmmanuel Vadot      patternProperties:
2217ef62cebSEmmanuel Vadot        "^adc-tm@[0-9a-f]+$":
2227ef62cebSEmmanuel Vadot          $ref: /schemas/thermal/qcom-spmi-adc-tm5.yaml#
2237ef62cebSEmmanuel Vadot
224b97ee269SEmmanuel VadotadditionalProperties: false
225b97ee269SEmmanuel Vadot
226b97ee269SEmmanuel Vadotexamples:
227b97ee269SEmmanuel Vadot  - |
228b97ee269SEmmanuel Vadot    #include <dt-bindings/spmi/spmi.h>
229b97ee269SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
230b97ee269SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
231b97ee269SEmmanuel Vadot
232b97ee269SEmmanuel Vadot    spmi@c440000 {
233b97ee269SEmmanuel Vadot        compatible = "qcom,spmi-pmic-arb";
234b97ee269SEmmanuel Vadot        reg = <0x0c440000 0x1100>,
235b97ee269SEmmanuel Vadot              <0x0c600000 0x2000000>,
236b97ee269SEmmanuel Vadot              <0x0e600000 0x100000>,
237b97ee269SEmmanuel Vadot              <0x0e700000 0xa0000>,
238b97ee269SEmmanuel Vadot              <0x0c40a000 0x26000>;
239b97ee269SEmmanuel Vadot        reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
240b97ee269SEmmanuel Vadot        interrupt-names = "periph_irq";
241b97ee269SEmmanuel Vadot        interrupts = <GIC_SPI 481 IRQ_TYPE_LEVEL_HIGH>;
242b97ee269SEmmanuel Vadot        qcom,ee = <0>;
243b97ee269SEmmanuel Vadot        qcom,channel = <0>;
244b97ee269SEmmanuel Vadot        #address-cells = <2>;
245b97ee269SEmmanuel Vadot        #size-cells = <0>;
246b97ee269SEmmanuel Vadot        interrupt-controller;
247b97ee269SEmmanuel Vadot        #interrupt-cells = <4>;
248b97ee269SEmmanuel Vadot
24984943d6fSEmmanuel Vadot        pmic@2 {
250b97ee269SEmmanuel Vadot            compatible = "qcom,pmi8998", "qcom,spmi-pmic";
251b97ee269SEmmanuel Vadot            reg = <0x2 SPMI_USID>;
252b97ee269SEmmanuel Vadot            #address-cells = <1>;
253b97ee269SEmmanuel Vadot            #size-cells = <0>;
254b97ee269SEmmanuel Vadot
25584943d6fSEmmanuel Vadot            gpio@c000 {
256b97ee269SEmmanuel Vadot                compatible = "qcom,pmi8998-gpio", "qcom,spmi-gpio";
257b97ee269SEmmanuel Vadot                reg = <0xc000>;
258b97ee269SEmmanuel Vadot                gpio-controller;
259b97ee269SEmmanuel Vadot                gpio-ranges = <&pmi8998_gpio 0 0 14>;
260b97ee269SEmmanuel Vadot                #gpio-cells = <2>;
261b97ee269SEmmanuel Vadot                interrupt-controller;
262b97ee269SEmmanuel Vadot                #interrupt-cells = <2>;
263b97ee269SEmmanuel Vadot            };
264b97ee269SEmmanuel Vadot        };
265b97ee269SEmmanuel Vadot    };
2667ef62cebSEmmanuel Vadot
2677ef62cebSEmmanuel Vadot  - |
2687ef62cebSEmmanuel Vadot    #include <dt-bindings/input/input.h>
2697ef62cebSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
2707ef62cebSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
2717ef62cebSEmmanuel Vadot    #include <dt-bindings/iio/qcom,spmi-vadc.h>
2727ef62cebSEmmanuel Vadot    #include <dt-bindings/spmi/spmi.h>
2737ef62cebSEmmanuel Vadot
2747ef62cebSEmmanuel Vadot    pmic@0 {
2757ef62cebSEmmanuel Vadot        compatible = "qcom,pm6150", "qcom,spmi-pmic";
2767ef62cebSEmmanuel Vadot        reg = <0x0 SPMI_USID>;
2777ef62cebSEmmanuel Vadot        #address-cells = <1>;
2787ef62cebSEmmanuel Vadot        #size-cells = <0>;
2797ef62cebSEmmanuel Vadot
2807ef62cebSEmmanuel Vadot        pon@800 {
2817ef62cebSEmmanuel Vadot            compatible = "qcom,pm8998-pon";
2827ef62cebSEmmanuel Vadot            reg = <0x800>;
2837ef62cebSEmmanuel Vadot            mode-bootloader = <0x2>;
2847ef62cebSEmmanuel Vadot            mode-recovery = <0x1>;
2857ef62cebSEmmanuel Vadot
2867ef62cebSEmmanuel Vadot            pwrkey {
2877ef62cebSEmmanuel Vadot                compatible = "qcom,pm8941-pwrkey";
2887ef62cebSEmmanuel Vadot                interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
2897ef62cebSEmmanuel Vadot                debounce = <15625>;
2907ef62cebSEmmanuel Vadot                bias-pull-up;
2917ef62cebSEmmanuel Vadot                linux,code = <KEY_POWER>;
2927ef62cebSEmmanuel Vadot            };
2937ef62cebSEmmanuel Vadot        };
2947ef62cebSEmmanuel Vadot
2957ef62cebSEmmanuel Vadot        temp-alarm@2400 {
2967ef62cebSEmmanuel Vadot            compatible = "qcom,spmi-temp-alarm";
2977ef62cebSEmmanuel Vadot            reg = <0x2400>;
2987ef62cebSEmmanuel Vadot            interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
2997ef62cebSEmmanuel Vadot            io-channels = <&pm6150_adc ADC5_DIE_TEMP>;
3007ef62cebSEmmanuel Vadot            io-channel-names = "thermal";
3017ef62cebSEmmanuel Vadot            #thermal-sensor-cells = <0>;
3027ef62cebSEmmanuel Vadot        };
3037ef62cebSEmmanuel Vadot
3047ef62cebSEmmanuel Vadot        pm6150_adc: adc@3100 {
3057ef62cebSEmmanuel Vadot            compatible = "qcom,spmi-adc5";
3067ef62cebSEmmanuel Vadot            reg = <0x3100>;
3077ef62cebSEmmanuel Vadot            interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
3087ef62cebSEmmanuel Vadot            #address-cells = <1>;
3097ef62cebSEmmanuel Vadot            #size-cells = <0>;
3107ef62cebSEmmanuel Vadot            #io-channel-cells = <1>;
3117ef62cebSEmmanuel Vadot
312fac71e4eSEmmanuel Vadot            channel@6 {
3137ef62cebSEmmanuel Vadot                reg = <ADC5_DIE_TEMP>;
3147ef62cebSEmmanuel Vadot                label = "die_temp";
3157ef62cebSEmmanuel Vadot            };
3167ef62cebSEmmanuel Vadot
317fac71e4eSEmmanuel Vadot            channel@4f {
3187ef62cebSEmmanuel Vadot                reg = <ADC5_AMUX_THM3_100K_PU>;
3197ef62cebSEmmanuel Vadot                qcom,ratiometric;
3207ef62cebSEmmanuel Vadot                qcom,hw-settle-time = <200>;
3217ef62cebSEmmanuel Vadot            };
3227ef62cebSEmmanuel Vadot        };
3237ef62cebSEmmanuel Vadot
3247ef62cebSEmmanuel Vadot        adc-tm@3500 {
3257ef62cebSEmmanuel Vadot            compatible = "qcom,spmi-adc-tm5";
3267ef62cebSEmmanuel Vadot            reg = <0x3500>;
3277ef62cebSEmmanuel Vadot            interrupts = <0x0 0x35 0x0 IRQ_TYPE_EDGE_RISING>;
3287ef62cebSEmmanuel Vadot            #thermal-sensor-cells = <1>;
3297ef62cebSEmmanuel Vadot            #address-cells = <1>;
3307ef62cebSEmmanuel Vadot            #size-cells = <0>;
3317ef62cebSEmmanuel Vadot
3327ef62cebSEmmanuel Vadot            charger-thermistor@0 {
3337ef62cebSEmmanuel Vadot                reg = <0>;
3347ef62cebSEmmanuel Vadot                io-channels = <&pm6150_adc ADC5_AMUX_THM3_100K_PU>;
3357ef62cebSEmmanuel Vadot                qcom,ratiometric;
3367ef62cebSEmmanuel Vadot                qcom,hw-settle-time-us = <200>;
3377ef62cebSEmmanuel Vadot            };
3387ef62cebSEmmanuel Vadot        };
3397ef62cebSEmmanuel Vadot
34084943d6fSEmmanuel Vadot        gpio@c000 {
3417ef62cebSEmmanuel Vadot            compatible = "qcom,pm6150-gpio", "qcom,spmi-gpio";
3427ef62cebSEmmanuel Vadot            reg = <0xc000>;
3437ef62cebSEmmanuel Vadot            gpio-controller;
3447ef62cebSEmmanuel Vadot            gpio-ranges = <&pm6150_gpio 0 0 10>;
3457ef62cebSEmmanuel Vadot            #gpio-cells = <2>;
3467ef62cebSEmmanuel Vadot            interrupt-controller;
3477ef62cebSEmmanuel Vadot            #interrupt-cells = <2>;
3487ef62cebSEmmanuel Vadot        };
3497ef62cebSEmmanuel Vadot    };
350