blob: ea1ca166165c0b0ea8f8be9c1943e8debca9cb32 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001// SPDX-License-Identifier: GPL-2.0
Ivan T. Ivanov89347522015-04-20 10:45:37 +03002#include <dt-bindings/iio/qcom,spmi-vadc.h>
3#include <dt-bindings/interrupt-controller/irq.h>
Ivan T. Ivanove321cbb2015-02-03 14:18:00 +02004#include <dt-bindings/spmi/spmi.h>
5
6&spmi_bus {
7
Stephen Boyd134c5442015-11-20 15:31:20 -08008 pma8084_0: pma8084@0 {
9 compatible = "qcom,pma8084", "qcom,spmi-pmic";
Ivan T. Ivanove321cbb2015-02-03 14:18:00 +020010 reg = <0x0 SPMI_USID>;
11 #address-cells = <1>;
12 #size-cells = <0>;
Ivan T. Ivanov89347522015-04-20 10:45:37 +030013
14 rtc@6000 {
15 compatible = "qcom,pm8941-rtc";
Andy Grossa537b8d2016-05-19 00:00:19 -050016 reg = <0x6000>,
17 <0x6100>;
Ivan T. Ivanov89347522015-04-20 10:45:37 +030018 reg-names = "rtc", "alarm";
19 interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
20 };
21
Andy Gross71c0ed72016-05-19 00:00:20 -050022 pwrkey@800 {
23 compatible = "qcom,pm8941-pwrkey";
24 reg = <0x800>;
25 interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
26 debounce = <15625>;
27 bias-pull-up;
28 };
29
Ivan T. Ivanov89347522015-04-20 10:45:37 +030030 pma8084_gpios: gpios@c000 {
Stephen Boyd2ca9c2a42015-11-20 17:49:46 -080031 compatible = "qcom,pma8084-gpio", "qcom,spmi-gpio";
Andy Grossa537b8d2016-05-19 00:00:19 -050032 reg = <0xc000>;
Ivan T. Ivanov89347522015-04-20 10:45:37 +030033 gpio-controller;
Brian Masney05d86a02019-03-05 19:53:12 -050034 gpio-ranges = <&pma8084_gpios 0 0 22>;
Ivan T. Ivanov89347522015-04-20 10:45:37 +030035 #gpio-cells = <2>;
Brian Masneyc9a0ef52019-01-19 15:42:46 -050036 interrupt-controller;
37 #interrupt-cells = <2>;
Ivan T. Ivanov89347522015-04-20 10:45:37 +030038 };
39
40 pma8084_mpps: mpps@a000 {
Stephen Boyd2ca9c2a42015-11-20 17:49:46 -080041 compatible = "qcom,pma8084-mpp", "qcom,spmi-mpp";
Andy Grossa537b8d2016-05-19 00:00:19 -050042 reg = <0xa000>;
Ivan T. Ivanov89347522015-04-20 10:45:37 +030043 gpio-controller;
44 #gpio-cells = <2>;
45 interrupts = <0 0xa0 0 IRQ_TYPE_NONE>,
46 <0 0xa1 0 IRQ_TYPE_NONE>,
47 <0 0xa2 0 IRQ_TYPE_NONE>,
48 <0 0xa3 0 IRQ_TYPE_NONE>,
49 <0 0xa4 0 IRQ_TYPE_NONE>,
50 <0 0xa5 0 IRQ_TYPE_NONE>,
51 <0 0xa6 0 IRQ_TYPE_NONE>,
52 <0 0xa7 0 IRQ_TYPE_NONE>;
53 };
54
55 pma8084_temp: temp-alarm@2400 {
56 compatible = "qcom,spmi-temp-alarm";
Andy Grossa537b8d2016-05-19 00:00:19 -050057 reg = <0x2400>;
Ivan T. Ivanov89347522015-04-20 10:45:37 +030058 interrupts = <0 0x24 0 IRQ_TYPE_EDGE_RISING>;
59 #thermal-sensor-cells = <0>;
60 io-channels = <&pma8084_vadc VADC_DIE_TEMP>;
61 io-channel-names = "thermal";
62 };
63
64 pma8084_vadc: vadc@3100 {
65 compatible = "qcom,spmi-vadc";
Andy Grossa537b8d2016-05-19 00:00:19 -050066 reg = <0x3100>;
Ivan T. Ivanov89347522015-04-20 10:45:37 +030067 interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
68 #address-cells = <1>;
69 #size-cells = <0>;
70 #io-channel-cells = <1>;
71 io-channel-ranges;
72
73 die_temp {
74 reg = <VADC_DIE_TEMP>;
75 };
76 ref_625mv {
77 reg = <VADC_REF_625MV>;
78 };
79 ref_1250v {
80 reg = <VADC_REF_1250MV>;
81 };
82 ref_buf_625mv {
83 reg = <VADC_SPARE1>;
84 };
85 ref_gnd {
86 reg = <VADC_GND_REF>;
87 };
88 ref_vdd {
89 reg = <VADC_VDD_VADC>;
90 };
91 };
Ivan T. Ivanove321cbb2015-02-03 14:18:00 +020092 };
93
Stephen Boyd134c5442015-11-20 15:31:20 -080094 pma8084_1: pma8084@1 {
95 compatible = "qcom,pma8084", "qcom,spmi-pmic";
Ivan T. Ivanove321cbb2015-02-03 14:18:00 +020096 reg = <0x1 SPMI_USID>;
97 #address-cells = <1>;
98 #size-cells = <0>;
99 };
100};