1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2018, Linaro Limited
6 #include <dt-bindings/spmi/spmi.h>
7 #include <dt-bindings/input/linux-event-codes.h>
8 #include <dt-bindings/iio/qcom,spmi-vadc.h>
9 #include <dt-bindings/thermal/thermal.h>
14 polling-delay-passive = <250>;
15 polling-delay = <1000>;
17 thermal-sensors = <&pms405_temp>;
20 pms405_alert0: pms405-alert0 {
21 temperature = <105000>;
25 pms405_crit: pms405-crit {
26 temperature = <125000>;
37 compatible = "qcom,pms405", "qcom,spmi-pmic";
38 reg = <0x0 SPMI_USID>;
42 pms405_gpios: gpio@c000 {
43 compatible = "qcom,pms405-gpio", "qcom,spmi-gpio";
46 gpio-ranges = <&pms405_gpios 0 0 12>;
49 #interrupt-cells = <2>;
53 compatible = "qcom,pms405-pon";
55 mode-bootloader = <0x2>;
56 mode-recovery = <0x1>;
59 compatible = "qcom,pm8941-pwrkey";
60 interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
63 linux,code = <KEY_POWER>;
67 pms405_temp: temp-alarm@2400 {
68 compatible = "qcom,spmi-temp-alarm";
70 interrupts = <0 0x24 0 IRQ_TYPE_EDGE_RISING>;
71 io-channels = <&pms405_adc ADC5_DIE_TEMP>;
72 io-channel-names = "thermal";
73 #thermal-sensor-cells = <0>;
76 pms405_adc: adc@3100 {
77 compatible = "qcom,pms405-adc", "qcom,spmi-adc-rev2";
79 interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
82 #io-channel-cells = <1>;
86 qcom,pre-scaling = <1 1>;
90 reg = <ADC5_1P25VREF>;
91 qcom,pre-scaling = <1 1>;
96 qcom,pre-scaling = <1 3>;
100 reg = <ADC5_DIE_TEMP>;
101 qcom,pre-scaling = <1 1>;
104 pa_therm1: thermistor1@77 {
105 reg = <ADC5_AMUX_THM1_100K_PU>;
107 qcom,hw-settle-time = <200>;
108 qcom,pre-scaling = <1 1>;
111 pa_therm3: thermistor3@79 {
112 reg = <ADC5_AMUX_THM3_100K_PU>;
114 qcom,hw-settle-time = <200>;
115 qcom,pre-scaling = <1 1>;
118 xo_therm: xo_temp@76 {
119 reg = <ADC5_XO_THERM_100K_PU>;
121 qcom,hw-settle-time = <200>;
122 qcom,pre-scaling = <1 1>;
127 compatible = "qcom,pm8941-rtc";
129 reg-names = "rtc", "alarm";
130 interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>;
135 compatible = "qcom,pms405", "qcom,spmi-pmic";
136 reg = <0x1 SPMI_USID>;
138 pms405_spmi_regulators: regulators {
139 compatible = "qcom,pms405-regulators";