1 // SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
4 * Copyright (c) 2019, Linaro Limited
7 #include <dt-bindings/iio/qcom,spmi-vadc.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
9 #include <dt-bindings/spmi/spmi.h>
14 polling-delay-passive = <100>;
17 thermal-sensors = <&pm8150b_temp>;
21 temperature = <95000>;
27 temperature = <115000>;
33 temperature = <145000>;
44 compatible = "qcom,pm8150b", "qcom,spmi-pmic";
45 reg = <0x2 SPMI_USID>;
50 compatible = "qcom,pm8916-pon";
56 pm8150b_vbus: usb-vbus-regulator@1100 {
57 compatible = "qcom,pm8150b-vbus-reg";
62 pm8150b_typec: typec@1500 {
63 compatible = "qcom,pm8150b-typec";
67 interrupts = <0x2 0x15 0x00 IRQ_TYPE_EDGE_RISING>,
68 <0x2 0x15 0x01 IRQ_TYPE_EDGE_BOTH>,
69 <0x2 0x15 0x02 IRQ_TYPE_EDGE_RISING>,
70 <0x2 0x15 0x03 IRQ_TYPE_EDGE_BOTH>,
71 <0x2 0x15 0x04 IRQ_TYPE_EDGE_RISING>,
72 <0x2 0x15 0x05 IRQ_TYPE_EDGE_RISING>,
73 <0x2 0x15 0x06 IRQ_TYPE_EDGE_BOTH>,
74 <0x2 0x15 0x07 IRQ_TYPE_EDGE_RISING>,
75 <0x2 0x17 0x00 IRQ_TYPE_EDGE_RISING>,
76 <0x2 0x17 0x01 IRQ_TYPE_EDGE_RISING>,
77 <0x2 0x17 0x02 IRQ_TYPE_EDGE_RISING>,
78 <0x2 0x17 0x03 IRQ_TYPE_EDGE_RISING>,
79 <0x2 0x17 0x04 IRQ_TYPE_EDGE_RISING>,
80 <0x2 0x17 0x05 IRQ_TYPE_EDGE_RISING>,
81 <0x2 0x17 0x06 IRQ_TYPE_EDGE_RISING>,
82 <0x2 0x17 0x07 IRQ_TYPE_EDGE_RISING>;
83 interrupt-names = "or-rid-detect-change",
89 "legacy-cable-detect",
99 vdd-vbus-supply = <&pm8150b_vbus>;
102 pm8150b_temp: temp-alarm@2400 {
103 compatible = "qcom,spmi-temp-alarm";
105 interrupts = <0x2 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
106 io-channels = <&pm8150b_adc ADC5_DIE_TEMP>;
107 io-channel-names = "thermal";
108 #thermal-sensor-cells = <0>;
111 pm8150b_adc: adc@3100 {
112 compatible = "qcom,spmi-adc5";
114 #address-cells = <1>;
116 #io-channel-cells = <1>;
117 interrupts = <0x2 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
120 reg = <ADC5_REF_GND>;
121 qcom,pre-scaling = <1 1>;
126 reg = <ADC5_1P25VREF>;
127 qcom,pre-scaling = <1 1>;
132 reg = <ADC5_DIE_TEMP>;
133 qcom,pre-scaling = <1 1>;
138 reg = <ADC5_CHG_TEMP>;
139 qcom,pre-scaling = <1 1>;
144 pm8150b_adc_tm: adc-tm@3500 {
145 compatible = "qcom,spmi-adc-tm5";
147 interrupts = <0x2 0x35 0x0 IRQ_TYPE_EDGE_RISING>;
148 #thermal-sensor-cells = <1>;
149 #address-cells = <1>;
154 pm8150b_gpios: gpio@c000 {
155 compatible = "qcom,pm8150b-gpio", "qcom,spmi-gpio";
158 gpio-ranges = <&pm8150b_gpios 0 0 12>;
160 interrupt-controller;
161 #interrupt-cells = <2>;
166 compatible = "qcom,pm8150b", "qcom,spmi-pmic";
167 reg = <0x3 SPMI_USID>;
168 #address-cells = <1>;
172 compatible = "qcom,pm8150b-lpg";
174 #address-cells = <1>;