1 // SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (c) 2019, The Linux Foundation. All rights reserved.
6 #include <dt-bindings/iio/qcom,spmi-vadc.h>
7 #include <dt-bindings/interrupt-controller/irq.h>
8 #include <dt-bindings/spmi/spmi.h>
13 polling-delay-passive = <0>;
16 thermal-sensors = <&pm6150l_temp>;
20 temperature = <95000>;
26 temperature = <115000>;
32 temperature = <125000>;
42 pm6150l_lsid4: pmic@4 {
43 compatible = "qcom,pm6150l", "qcom,spmi-pmic";
44 reg = <0x4 SPMI_USID>;
48 pm6150l_temp: temp-alarm@2400 {
49 compatible = "qcom,spmi-temp-alarm";
51 interrupts = <0x4 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
52 #thermal-sensor-cells = <0>;
55 pm6150l_adc: adc@3100 {
56 compatible = "qcom,spmi-adc5";
58 interrupts = <0x4 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
61 #io-channel-cells = <1>;
65 qcom,pre-scaling = <1 1>;
70 reg = <ADC5_1P25VREF>;
71 qcom,pre-scaling = <1 1>;
76 reg = <ADC5_DIE_TEMP>;
77 qcom,pre-scaling = <1 1>;
83 qcom,pre-scaling = <1 3>;
88 pm6150l_adc_tm: adc-tm@3500 {
89 compatible = "qcom,spmi-adc-tm5";
91 interrupts = <0x4 0x35 0x0 IRQ_TYPE_EDGE_RISING>;
92 #thermal-sensor-cells = <1>;
98 pm6150l_gpios: gpio@c000 {
99 compatible = "qcom,pm6150l-gpio", "qcom,spmi-gpio";
102 gpio-ranges = <&pm6150l_gpios 0 0 12>;
104 interrupt-controller;
105 #interrupt-cells = <2>;
109 pm6150l_lsid5: pmic@5 {
110 compatible = "qcom,pm6150l", "qcom,spmi-pmic";
111 reg = <0x5 SPMI_USID>;
112 #address-cells = <1>;
115 pm6150l_flash: led-controller@d300 {
116 compatible = "qcom,pm6150l-flash-led", "qcom,spmi-flash-led";
121 pm6150l_wled: leds@d800 {
122 compatible = "qcom,pm6150l-wled";
123 reg = <0xd800>, <0xd900>;
124 interrupts = <0x5 0xd8 0x1 IRQ_TYPE_EDGE_RISING>,
125 <0x5 0xd8 0x2 IRQ_TYPE_EDGE_RISING>;
126 interrupt-names = "ovp", "short";