1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2018, Linaro Limited
4 #include <dt-bindings/spmi/spmi.h>
5 #include <dt-bindings/input/linux-event-codes.h>
6 #include <dt-bindings/iio/qcom,spmi-vadc.h>
7 #include <dt-bindings/thermal/thermal.h>
12 polling-delay-passive = <250>;
13 polling-delay = <1000>;
15 thermal-sensors = <&pms405_temp>;
18 pms405_alert0: pms405-alert0 {
19 temperature = <105000>;
23 pms405_crit: pms405-crit {
24 temperature = <125000>;
35 compatible = "qcom,pms405", "qcom,spmi-pmic";
36 reg = <0x0 SPMI_USID>;
40 pms405_gpios: gpio@c000 {
41 compatible = "qcom,pms405-gpio", "qcom,spmi-gpio";
44 gpio-ranges = <&pms405_gpios 0 0 12>;
47 #interrupt-cells = <2>;
51 compatible = "qcom,pms405-pon";
53 mode-bootloader = <0x2>;
54 mode-recovery = <0x1>;
57 compatible = "qcom,pm8941-pwrkey";
58 interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
61 linux,code = <KEY_POWER>;
65 pms405_temp: temp-alarm@2400 {
66 compatible = "qcom,spmi-temp-alarm";
68 interrupts = <0 0x24 0 IRQ_TYPE_EDGE_RISING>;
69 io-channels = <&pms405_adc ADC5_DIE_TEMP>;
70 io-channel-names = "thermal";
71 #thermal-sensor-cells = <0>;
74 pms405_adc: adc@3100 {
75 compatible = "qcom,pms405-adc", "qcom,spmi-adc-rev2";
77 interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
80 #io-channel-cells = <1>;
84 qcom,pre-scaling = <1 1>;
88 reg = <ADC5_1P25VREF>;
89 qcom,pre-scaling = <1 1>;
94 qcom,pre-scaling = <1 3>;
98 reg = <ADC5_DIE_TEMP>;
99 qcom,pre-scaling = <1 1>;
102 pa_therm1: thermistor1@77 {
103 reg = <ADC5_AMUX_THM1_100K_PU>;
105 qcom,hw-settle-time = <200>;
106 qcom,pre-scaling = <1 1>;
109 pa_therm3: thermistor3@79 {
110 reg = <ADC5_AMUX_THM3_100K_PU>;
112 qcom,hw-settle-time = <200>;
113 qcom,pre-scaling = <1 1>;
116 xo_therm: xo_temp@76 {
117 reg = <ADC5_XO_THERM_100K_PU>;
119 qcom,hw-settle-time = <200>;
120 qcom,pre-scaling = <1 1>;
125 compatible = "qcom,pm8941-rtc";
127 reg-names = "rtc", "alarm";
128 interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>;
133 compatible = "qcom,pms405", "qcom,spmi-pmic";
134 reg = <0x1 SPMI_USID>;
136 pms405_spmi_regulators: regulators {
137 compatible = "qcom,pms405-regulators";