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,spmi-pmic";
36 reg = <0x0 SPMI_USID>;
40 pms405_gpios: gpio@c000 {
41 compatible = "qcom,pms405-gpio";
45 interrupts = <0 0xc0 0 IRQ_TYPE_NONE>,
46 <0 0xc1 0 IRQ_TYPE_NONE>,
47 <0 0xc2 0 IRQ_TYPE_NONE>,
48 <0 0xc3 0 IRQ_TYPE_NONE>,
49 <0 0xc4 0 IRQ_TYPE_NONE>,
50 <0 0xc5 0 IRQ_TYPE_NONE>,
51 <0 0xc6 0 IRQ_TYPE_NONE>,
52 <0 0xc7 0 IRQ_TYPE_NONE>,
53 <0 0xc8 0 IRQ_TYPE_NONE>,
54 <0 0xc9 0 IRQ_TYPE_NONE>,
55 <0 0xca 0 IRQ_TYPE_NONE>,
56 <0 0xcb 0 IRQ_TYPE_NONE>;
60 compatible = "qcom,pms405-pon";
62 mode-bootloader = <0x2>;
63 mode-recovery = <0x1>;
66 compatible = "qcom,pm8941-pwrkey";
67 interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
70 linux,code = <KEY_POWER>;
74 pms405_temp: temp-alarm@2400 {
75 compatible = "qcom,spmi-temp-alarm";
77 interrupts = <0 0x24 0 IRQ_TYPE_EDGE_RISING>;
78 io-channels = <&pms405_adc ADC5_DIE_TEMP>;
79 io-channel-names = "thermal";
80 #thermal-sensor-cells = <0>;
83 pms405_adc: adc@3100 {
84 compatible = "qcom,pms405-adc", "qcom,spmi-adc-rev2";
86 interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
89 #io-channel-cells = <1>;
93 qcom,pre-scaling = <1 1>;
97 reg = <ADC5_1P25VREF>;
98 qcom,pre-scaling = <1 1>;
102 reg = <ADC5_VPH_PWR>;
103 qcom,pre-scaling = <1 3>;
107 reg = <ADC5_DIE_TEMP>;
108 qcom,pre-scaling = <1 1>;
111 pa_therm1: thermistor1@77 {
112 reg = <ADC5_AMUX_THM1_100K_PU>;
114 qcom,hw-settle-time = <200>;
115 qcom,pre-scaling = <1 1>;
118 pa_therm3: thermistor3@79 {
119 reg = <ADC5_AMUX_THM3_100K_PU>;
121 qcom,hw-settle-time = <200>;
122 qcom,pre-scaling = <1 1>;
125 xo_therm: xo_temp@76 {
126 reg = <ADC5_XO_THERM_100K_PU>;
128 qcom,hw-settle-time = <200>;
129 qcom,pre-scaling = <1 1>;
134 compatible = "qcom,pm8941-rtc";
136 reg-names = "rtc", "alarm";
137 interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>;
142 compatible = "qcom,spmi-pmic";
143 reg = <0x1 SPMI_USID>;
145 pms405_spmi_regulators: regulators {
146 compatible = "qcom,pms405-regulators";