1 // SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (c) 2019, The Linux Foundation. All rights reserved.
6 #include <dt-bindings/iio/qcom,spmi-vadc.h>
7 #include <dt-bindings/input/linux-event-codes.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
9 #include <dt-bindings/spmi/spmi.h>
10 #include <dt-bindings/thermal/thermal.h>
14 pm6150_thermal: pm6150-thermal {
15 polling-delay-passive = <100>;
17 thermal-sensors = <&pm6150_temp>;
21 temperature = <95000>;
27 temperature = <115000>;
37 pm6150_lsid0: pmic@0 {
38 compatible = "qcom,pm6150", "qcom,spmi-pmic";
39 reg = <0x0 SPMI_USID>;
44 compatible = "qcom,pm8998-pon";
46 mode-bootloader = <0x2>;
47 mode-recovery = <0x1>;
49 pm6150_pwrkey: pwrkey {
50 compatible = "qcom,pm8941-pwrkey";
51 interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
54 linux,code = <KEY_POWER>;
58 compatible = "qcom,pm8941-resin";
59 interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>;
66 pm6150_temp: temp-alarm@2400 {
67 compatible = "qcom,spmi-temp-alarm";
69 interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
70 io-channels = <&pm6150_adc ADC5_DIE_TEMP>;
71 io-channel-names = "thermal";
72 #thermal-sensor-cells = <0>;
75 pm6150_adc: adc@3100 {
76 compatible = "qcom,spmi-adc5";
78 interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
81 #io-channel-cells = <1>;
84 reg = <ADC5_DIE_TEMP>;
89 pm6150_adc_tm: adc-tm@3500 {
90 compatible = "qcom,spmi-adc-tm5";
92 interrupts = <0x0 0x35 0x0 IRQ_TYPE_EDGE_RISING>;
93 #thermal-sensor-cells = <1>;
99 pm6150_rtc: rtc@6000 {
100 compatible = "qcom,pm8941-rtc";
101 reg = <0x6000>, <0x6100>;
102 reg-names = "rtc", "alarm";
103 interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
107 pm6150_gpios: gpio@c000 {
108 compatible = "qcom,pm6150-gpio", "qcom,spmi-gpio";
111 gpio-ranges = <&pm6150_gpios 0 0 10>;
113 interrupt-controller;
114 #interrupt-cells = <2>;
118 pm6150_lsid1: pmic@1 {
119 compatible = "qcom,pm6150", "qcom,spmi-pmic";
120 reg = <0x1 SPMI_USID>;
121 #address-cells = <1>;