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 = <&pm8150l_temp>;
21 temperature = <95000>;
27 temperature = <115000>;
33 temperature = <145000>;
44 compatible = "qcom,pm8150l", "qcom,spmi-pmic";
45 reg = <0x4 SPMI_USID>;
50 compatible = "qcom,pm8916-pon";
56 pm8150l_temp: temp-alarm@2400 {
57 compatible = "qcom,spmi-temp-alarm";
59 interrupts = <0x4 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
60 io-channels = <&pm8150l_adc ADC5_DIE_TEMP>;
61 io-channel-names = "thermal";
62 #thermal-sensor-cells = <0>;
65 pm8150l_adc: adc@3100 {
66 compatible = "qcom,spmi-adc5";
70 #io-channel-cells = <1>;
71 interrupts = <0x4 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
75 qcom,pre-scaling = <1 1>;
80 reg = <ADC5_1P25VREF>;
81 qcom,pre-scaling = <1 1>;
86 reg = <ADC5_DIE_TEMP>;
87 qcom,pre-scaling = <1 1>;
92 pm8150l_adc_tm: adc-tm@3500 {
93 compatible = "qcom,spmi-adc-tm5";
95 interrupts = <0x4 0x35 0x0 IRQ_TYPE_EDGE_RISING>;
96 #thermal-sensor-cells = <1>;
102 pm8150l_gpios: gpio@c000 {
103 compatible = "qcom,pm8150l-gpio", "qcom,spmi-gpio";
106 gpio-ranges = <&pm8150l_gpios 0 0 12>;
108 interrupt-controller;
109 #interrupt-cells = <2>;
114 compatible = "qcom,pm8150l", "qcom,spmi-pmic";
115 reg = <0x5 SPMI_USID>;
116 #address-cells = <1>;
119 pm8150l_flash: led-controller@d300 {
120 compatible = "qcom,pm8150l-flash-led", "qcom,spmi-flash-led";
126 compatible = "qcom,pm8150l-lpg";
128 #address-cells = <1>;
135 pm8150l_wled: leds@d800 {
136 compatible = "qcom,pm8150l-wled";
137 reg = <0xd800>, <0xd900>;
138 interrupts = <0x5 0xd8 0x1 IRQ_TYPE_EDGE_RISING>,
139 <0x5 0xd8 0x2 IRQ_TYPE_EDGE_RISING>;
140 interrupt-names = "ovp", "short";