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>;
91 reg = <ADC5_1P25VREF>;
92 qcom,pre-scaling = <1 1>;
98 qcom,pre-scaling = <1 3>;
103 reg = <ADC5_DIE_TEMP>;
104 qcom,pre-scaling = <1 1>;
109 reg = <ADC5_AMUX_THM1_100K_PU>;
111 qcom,hw-settle-time = <200>;
112 qcom,pre-scaling = <1 1>;
117 reg = <ADC5_AMUX_THM3_100K_PU>;
119 qcom,hw-settle-time = <200>;
120 qcom,pre-scaling = <1 1>;
125 reg = <ADC5_XO_THERM_100K_PU>;
127 qcom,hw-settle-time = <200>;
128 qcom,pre-scaling = <1 1>;
134 compatible = "qcom,pm8941-rtc";
135 reg = <0x6000>, <0x6100>;
136 reg-names = "rtc", "alarm";
137 interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>;
142 compatible = "qcom,pms405", "qcom,spmi-pmic";
143 reg = <0x1 SPMI_USID>;
145 pms405_spmi_regulators: regulators {
146 compatible = "qcom,pms405-regulators";