1 // SPDX-License-Identifier: BSD-3-Clause
2 /* Copyright (c) 2022, The Linux Foundation. All rights reserved. */
4 #include <dt-bindings/iio/qcom,spmi-vadc.h>
5 #include <dt-bindings/interrupt-controller/irq.h>
6 #include <dt-bindings/input/linux-event-codes.h>
7 #include <dt-bindings/spmi/spmi.h>
12 polling-delay-passive = <0>;
15 thermal-sensors = <&pm8953_temp>;
19 temperature = <105000>;
25 temperature = <125000>;
31 temperature = <145000>;
42 compatible = "qcom,pm8953", "qcom,spmi-pmic";
48 compatible = "qcom,pm8916-pon";
50 mode-bootloader = <0x2>;
51 mode-recovery = <0x1>;
54 compatible = "qcom,pm8941-pwrkey";
55 interrupts = <0x00 0x08 0 IRQ_TYPE_EDGE_BOTH>;
58 linux,code = <KEY_POWER>;
62 compatible = "qcom,pm8941-resin";
63 interrupts = <0x00 0x08 1 IRQ_TYPE_EDGE_BOTH>;
70 pm8953_temp: temp-alarm@2400 {
71 compatible = "qcom,spmi-temp-alarm";
73 interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
74 io-channels = <&pm8953_vadc VADC_DIE_TEMP>;
75 io-channel-names = "thermal";
76 #thermal-sensor-cells = <0>;
79 pm8953_vadc: adc@3100 {
80 compatible = "qcom,spmi-vadc";
82 interrupts = <0x00 0x31 0x00 0x01>;
85 #io-channel-cells = <1>;
88 reg = <VADC_DIE_TEMP>;
91 reg = <VADC_REF_625MV>;
94 reg = <VADC_REF_1250MV>;
100 reg = <VADC_GND_REF>;
103 reg = <VADC_VDD_VADC>;
108 compatible = "qcom,pm8941-rtc";
109 reg = <0x6000>, <0x6100>;
110 reg-names = "rtc", "alarm";
111 interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
114 pm8953_gpios: gpio@c000 {
115 compatible = "qcom,pm8953-gpio", "qcom,spmi-gpio";
118 gpio-ranges = <&pm8953_gpios 0 0 8>;
120 interrupt-controller;
121 #interrupt-cells = <2>;
126 compatible = "qcom,pm8953", "qcom,spmi-pmic";
128 #address-cells = <1>;