1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /* Copyright 2018 Google LLC. */
4 #include <dt-bindings/iio/qcom,spmi-vadc.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>
8 #include <dt-bindings/thermal/thermal.h>
13 polling-delay-passive = <250>;
14 polling-delay = <1000>;
16 thermal-sensors = <&pm8998_temp>;
19 pm8998_alert0: pm8998-alert0 {
20 temperature = <105000>;
24 pm8998_crit: pm8998-crit {
25 temperature = <125000>;
35 pm8998_lsid0: pmic@0 {
36 compatible = "qcom,pm8998", "qcom,spmi-pmic";
37 reg = <0x0 SPMI_USID>;
42 compatible = "qcom,pm8998-pon";
45 mode-bootloader = <0x2>;
46 mode-recovery = <0x1>;
49 compatible = "qcom,pm8941-pwrkey";
50 interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
53 linux,code = <KEY_POWER>;
57 pm8998_temp: temp-alarm@2400 {
58 compatible = "qcom,spmi-temp-alarm";
60 interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
61 io-channels = <&pm8998_adc ADC5_DIE_TEMP>;
62 io-channel-names = "thermal";
63 #thermal-sensor-cells = <0>;
66 pm8998_coincell: coincell@2800 {
67 compatible = "qcom,pm8941-coincell";
73 pm8998_adc: adc@3100 {
74 compatible = "qcom,spmi-adc-rev2";
76 interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
79 #io-channel-cells = <1>;
82 reg = <ADC5_DIE_TEMP>;
88 compatible = "qcom,pm8941-rtc";
89 reg = <0x6000>, <0x6100>;
90 reg-names = "rtc", "alarm";
91 interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
94 pm8998_gpio: gpios@c000 {
95 compatible = "qcom,pm8998-gpio", "qcom,spmi-gpio";
98 gpio-ranges = <&pm8998_gpio 0 0 26>;
100 interrupt-controller;
101 #interrupt-cells = <2>;
106 pm8998_lsid1: pmic@1 {
107 compatible = "qcom,pm8998", "qcom,spmi-pmic";
108 reg = <0x1 SPMI_USID>;
109 #address-cells = <1>;