pma8084.dtsi (a23e1966932464e1c5226cb9ac4ce1d5fc10ba22) pma8084.dtsi (611cd69fe4c737c37a79ef7b99a2f15aff252d1d)
1// SPDX-License-Identifier: GPL-2.0
2#include <dt-bindings/iio/qcom,spmi-vadc.h>
1// SPDX-License-Identifier: GPL-2.0
2#include <dt-bindings/iio/qcom,spmi-vadc.h>
3#include <dt-bindings/input/linux-event-codes.h>
3#include <dt-bindings/interrupt-controller/irq.h>
4#include <dt-bindings/spmi/spmi.h>
5
6&spmi_bus {
7
8 pma8084_0: pma8084@0 {
9 compatible = "qcom,pma8084", "qcom,spmi-pmic";
10 reg = <0x0 SPMI_USID>;
11 #address-cells = <1>;
12 #size-cells = <0>;
13
14 rtc@6000 {
15 compatible = "qcom,pm8941-rtc";
16 reg = <0x6000>,
17 <0x6100>;
18 reg-names = "rtc", "alarm";
19 interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
20 };
21
4#include <dt-bindings/interrupt-controller/irq.h>
5#include <dt-bindings/spmi/spmi.h>
6
7&spmi_bus {
8
9 pma8084_0: pma8084@0 {
10 compatible = "qcom,pma8084", "qcom,spmi-pmic";
11 reg = <0x0 SPMI_USID>;
12 #address-cells = <1>;
13 #size-cells = <0>;
14
15 rtc@6000 {
16 compatible = "qcom,pm8941-rtc";
17 reg = <0x6000>,
18 <0x6100>;
19 reg-names = "rtc", "alarm";
20 interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
21 };
22
22 pwrkey@800 {
23 compatible = "qcom,pm8941-pwrkey";
23 pon@800 {
24 compatible = "qcom,pm8941-pon";
24 reg = <0x800>;
25 reg = <0x800>;
25 interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
26 debounce = <15625>;
27 bias-pull-up;
26
27 pwrkey {
28 compatible = "qcom,pm8941-pwrkey";
29 interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
30 debounce = <15625>;
31 bias-pull-up;
32 linux,code = <KEY_POWER>;
33 };
28 };
29
30 pma8084_gpios: gpio@c000 {
31 compatible = "qcom,pma8084-gpio", "qcom,spmi-gpio";
32 reg = <0xc000>;
33 gpio-controller;
34 gpio-ranges = <&pma8084_gpios 0 0 22>;
35 #gpio-cells = <2>;

--- 64 unchanged lines hidden ---
34 };
35
36 pma8084_gpios: gpio@c000 {
37 compatible = "qcom,pma8084-gpio", "qcom,spmi-gpio";
38 reg = <0xc000>;
39 gpio-controller;
40 gpio-ranges = <&pma8084_gpios 0 0 22>;
41 #gpio-cells = <2>;

--- 64 unchanged lines hidden ---