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>
12 pm6150_thermal: pm6150-thermal {
13 polling-delay-passive = <100>;
15 thermal-sensors = <&pm6150_temp>;
19 temperature = <95000>;
25 temperature = <115000>;
35 pm6150_lsid0: pmic@0 {
36 compatible = "qcom,pm6150", "qcom,spmi-pmic";
37 reg = <0x0 SPMI_USID>;
42 compatible = "qcom,pm8998-pon";
44 mode-bootloader = <0x2>;
45 mode-recovery = <0x1>;
47 pm6150_pwrkey: pwrkey {
48 compatible = "qcom,pm8941-pwrkey";
49 interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
52 linux,code = <KEY_POWER>;
56 pm6150_temp: temp-alarm@2400 {
57 compatible = "qcom,spmi-temp-alarm";
59 interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
60 io-channels = <&pm6150_adc ADC5_DIE_TEMP>;
61 io-channel-names = "thermal";
62 #thermal-sensor-cells = <0>;
65 pm6150_adc: adc@3100 {
66 compatible = "qcom,spmi-adc5";
68 interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
71 #io-channel-cells = <1>;
74 reg = <ADC5_DIE_TEMP>;
79 pm6150_adc_tm: adc-tm@3500 {
80 compatible = "qcom,spmi-adc-tm5";
82 interrupts = <0x0 0x35 0x0 IRQ_TYPE_EDGE_RISING>;
83 #thermal-sensor-cells = <1>;
89 pm6150_gpio: gpios@c000 {
90 compatible = "qcom,pm6150-gpio", "qcom,spmi-gpio";
93 gpio-ranges = <&pm6150_gpio 0 0 10>;
96 #interrupt-cells = <2>;
100 pm6150_lsid1: pmic@1 {
101 compatible = "qcom,pm6150", "qcom,spmi-pmic";
102 reg = <0x1 SPMI_USID>;
103 #address-cells = <1>;