1 // SPDX-License-Identifier: BSD-3-Clause
3 #include <dt-bindings/iio/qcom,spmi-vadc.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/input/linux-event-codes.h>
6 #include <dt-bindings/interrupt-controller/irq.h>
7 #include <dt-bindings/spmi/spmi.h>
12 polling-delay-passive = <100>;
15 thermal-sensors = <&pm6125_temp>;
19 temperature = <95000>;
25 temperature = <115000>;
31 temperature = <145000>;
42 compatible = "qcom,pm6125", "qcom,spmi-pmic";
43 reg = <0x0 SPMI_USID>;
48 compatible = "qcom,pm8998-pon";
50 mode-bootloader = <0x2>;
51 mode-recovery = <0x1>;
54 compatible = "qcom,pm8941-pwrkey";
55 interrupts = <0x0 0x8 0x0 IRQ_TYPE_EDGE_BOTH>;
57 linux,code = <KEY_POWER>;
63 compatible = "qcom,pm8941-resin";
64 interrupts = <0x0 0x8 0x1 IRQ_TYPE_EDGE_BOTH>;
71 pm6125_temp: temp-alarm@2400 {
72 compatible = "qcom,spmi-temp-alarm";
74 interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
75 io-channels = <&pm6125_adc ADC5_DIE_TEMP>;
76 io-channel-names = "thermal";
77 #thermal-sensor-cells = <0>;
80 pm6125_adc: adc@3100 {
81 compatible = "qcom,spmi-adc5";
85 interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
86 #io-channel-cells = <1>;
90 qcom,pre-scaling = <1 1>;
95 reg = <ADC5_1P25VREF>;
96 qcom,pre-scaling = <1 1>;
101 reg = <ADC5_DIE_TEMP>;
102 qcom,pre-scaling = <1 1>;
107 reg = <ADC5_VPH_PWR>;
108 qcom,pre-scaling = <1 3>;
114 qcom,pre-scaling = <1 3>;
119 reg = <ADC5_XO_THERM_100K_PU>;
120 qcom,pre-scaling = <1 1>;
121 qcom,hw-settle-time = <200>;
127 pm6125_adc_tm: adc-tm@3500 {
128 compatible = "qcom,spmi-adc-tm5";
130 interrupts = <0x0 0x35 0x0 IRQ_TYPE_EDGE_RISING>;
131 #address-cells = <1>;
133 #thermal-sensor-cells = <1>;
137 pm6125_rtc: rtc@6000 {
138 compatible = "qcom,pm8941-rtc";
139 reg = <0x6000>, <0x6100>;
140 reg-names = "rtc", "alarm";
141 interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
145 pm6125_gpios: gpio@c000 {
146 compatible = "qcom,pm6125-gpio", "qcom,spmi-gpio";
149 gpio-ranges = <&pm6125_gpios 0 0 9>;
151 interrupt-controller;
152 #interrupt-cells = <2>;
157 compatible = "qcom,pm6125", "qcom,spmi-pmic";
158 reg = <0x1 SPMI_USID>;