1 // SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (c) 2021, Linaro Limited
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/interrupt-controller/irq.h>
8 #include <dt-bindings/spmi/spmi.h>
13 polling-delay-passive = <100>;
16 thermal-sensors = <&pmm8155au_2_temp>;
20 temperature = <95000>;
26 temperature = <115000>;
32 temperature = <145000>;
43 compatible = "qcom,pmm8155au", "qcom,spmi-pmic";
44 reg = <0x4 SPMI_USID>;
49 compatible = "qcom,pm8916-pon";
55 pmm8155au_2_temp: temp-alarm@2400 {
56 compatible = "qcom,spmi-temp-alarm";
58 interrupts = <0x4 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
59 io-channels = <&pmm8155au_2_adc ADC5_DIE_TEMP>;
60 io-channel-names = "thermal";
61 #thermal-sensor-cells = <0>;
64 pmm8155au_2_adc: adc@3100 {
65 compatible = "qcom,spmi-adc5";
69 #io-channel-cells = <1>;
70 interrupts = <0x4 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
74 qcom,pre-scaling = <1 1>;
79 reg = <ADC5_1P25VREF>;
80 qcom,pre-scaling = <1 1>;
85 reg = <ADC5_DIE_TEMP>;
86 qcom,pre-scaling = <1 1>;
91 pmm8155au_2_gpios: gpio@c000 {
92 compatible = "qcom,pmm8155au-gpio", "qcom,spmi-gpio";
96 gpio-ranges = <&pmm8155au_2_gpios 0 0 10>;
98 #interrupt-cells = <2>;
103 compatible = "qcom,pmm8155au", "qcom,spmi-pmic";
104 reg = <0x5 SPMI_USID>;
105 #address-cells = <1>;