1 // SPDX-License-Identifier: BSD-3-Clause
2 // Copyright (c) 2019, The Linux Foundation. All rights reserved.
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>
11 pm6150_lsid0: pmic@0 {
12 compatible = "qcom,pm6150", "qcom,spmi-pmic";
13 reg = <0x0 SPMI_USID>;
18 compatible = "qcom,pm8998-pon";
20 mode-bootloader = <0x2>;
21 mode-recovery = <0x1>;
23 pm6150_pwrkey: pwrkey {
24 compatible = "qcom,pm8941-pwrkey";
25 interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
28 linux,code = <KEY_POWER>;
32 pm6150_temp: temp-alarm@2400 {
33 compatible = "qcom,spmi-temp-alarm";
35 interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
36 io-channels = <&pm6150_adc ADC5_DIE_TEMP>;
37 io-channel-names = "thermal";
38 #thermal-sensor-cells = <0>;
41 pm6150_adc: adc@3100 {
42 compatible = "qcom,spmi-adc5";
44 interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
47 #io-channel-cells = <1>;
50 reg = <ADC5_DIE_TEMP>;
55 pm6150_adc_tm: adc-tm@3500 {
56 compatible = "qcom,spmi-adc-tm5";
58 interrupts = <0x0 0x35 0x0 IRQ_TYPE_EDGE_RISING>;
59 #thermal-sensor-cells = <1>;
65 pm6150_gpio: gpios@c000 {
66 compatible = "qcom,pm6150-gpio", "qcom,spmi-gpio";
69 gpio-ranges = <&pm6150_gpio 0 0 10>;
72 #interrupt-cells = <2>;
76 pm6150_lsid1: pmic@1 {
77 compatible = "qcom,pm6150", "qcom,spmi-pmic";
78 reg = <0x1 SPMI_USID>;