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>
11 compatible = "qcom,pm8953", "qcom,spmi-pmic";
17 compatible = "qcom,pm8916-pon";
19 mode-bootloader = <0x2>;
20 mode-recovery = <0x1>;
23 compatible = "qcom,pm8941-pwrkey";
24 interrupts = <0x00 0x08 0 IRQ_TYPE_EDGE_BOTH>;
27 linux,code = <KEY_POWER>;
31 compatible = "qcom,pm8941-resin";
32 interrupts = <0x00 0x08 1 IRQ_TYPE_EDGE_BOTH>;
40 compatible = "qcom,spmi-temp-alarm";
42 interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
43 io-channels = <&pm8953_vadc VADC_DIE_TEMP>;
44 io-channel-names = "thermal";
45 #thermal-sensor-cells = <0>;
48 pm8953_vadc: adc@3100 {
49 compatible = "qcom,spmi-vadc";
51 interrupts = <0x00 0x31 0x00 0x01>;
54 #io-channel-cells = <1>;
57 reg = <VADC_DIE_TEMP>;
60 reg = <VADC_REF_625MV>;
63 reg = <VADC_REF_1250MV>;
72 reg = <VADC_VDD_VADC>;
77 compatible = "qcom,pm8941-rtc";
78 reg = <0x6000>, <0x6100>;
79 reg-names = "rtc", "alarm";
80 interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
85 compatible = "qcom,pm8953", "qcom,spmi-pmic";